[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PLEASE HELP !



Martin Madlik - System Admin wrote:
  > I think, tha this is simple, but I can't move with it for 6 hours.
  > I'v dowloaded php3 script and apache 1.2.5, and I want to recompile php3 as
      > an module
  > ./configure --with-apache=/usr/local/apache_1.2.5  It creastes Makefile and
      > so on.
  > make   It works fine
  > make install    good
  > but now if I want to recompile apache on the end ( while linking httpd ) it
      > writes :
  > ./libphp3.a(math.o):In function `php_acos':
  > /root/sources/php-3.0RC3/functions/math.c:196: undefined reference to `acos
      >'
  > 
  > and this message is same for tan, ceil, floor, rint, sin ...
  > 

It sounds as if you need to link with -lm (math library).  Find the library
definition in the Makefile and add -lm to the end of it.  As a result,
-lm should appear at the end of the gcc command that the makefile runs.

If it's already there, I can't help...

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver

PGP key from public servers; key ID 32B8FAA1

                 ========================================
    Come to me, all you who labour and are heavily laden, and I will
    give you rest. Take my yoke upon you, and learn from me; for I am
    meek and lowly in heart, and you shall find rest for your souls.
    For my yoke is easy and my burden is light.    (Matthew 11: 28-30)



--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: