From: [EMAIL PROTECTED]
Operating system: Linux (Suse 6.1)
PHP version: 4.2.3
PHP Bug Type: Compile Failure
Bug description: Compilation fails with undefined reference to `__log1p'
I am attempting to compile PHP under Linux with
egcs-1.1.2.
If I compile php as a DSO module it compiles fine but
apache won't load it complaining of unresolved symbols.
If I try and compile it into apache I get the following
compilation errors :
-o httpd buildmark.o modules.o
modules/standard/libstandard.a modules/proxy/libproxy.a
modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a
ap/libap.a -Wl,-rpath,/usr/local/mysql/lib -rdynamic
-L/usr/local/mysql/lib -Lmodules/php4 -L../modules/php4
-L../../modules/php4 -lmodphp4 -lmysqlclient -lz -lcrypt
-lresolv -lm -ldl -lnsl -lresolv -lcrypt -lm -lcrypt
-lndbm -lexpat
modules/php4/libphp4.a(zend_ini_scanner.lo): warning:
multiple common of `yytext'
modules/php4/libphp4.a(zend_language_scanner.lo): warning:
previous common is here
modules/php4/libphp4.a(math.lo): In function `zif_atanh':
/usr/include/__math.h:426: undefined reference to
`__log1p'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/home/pkett/apache_1.3.26/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/home/pkett/apache_1.3.26'
make: *** [build] Error 2
I have tried with 4.2.2 and 4.2.3 with the same results -
I suspect it's due to using egcs and not a more recent
version of gcc but can anyone confirm this?
--
Edit bug report at http://bugs.php.net/?id=19572&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19572&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19572&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19572&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19572&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19572&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19572&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19572&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19572&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19572&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19572&r=globals