From: Operating system: HP-UX 11.11 PHP version: 5.3.6 Package: Compile Failure Bug Type: Bug Bug description:Unresolved symbol strtoull
Description: ------------ I've compiled PHP 5.3.6 on HP-UX 11.11 with following parameters : ./configure --disable-cli --with-config-file-path=/path/to/etc/php --with-sybase-ct=/path/to/sybase --with-imap=/path/to/imap --with-imap-ssl=/usr --with-libxml-dir=/path/to/libxml2 --with-gd --with-png-dir=/path/to/libpng --with-jpeg-dir=/path/to/jpeg --with-freetype-dir=/path/to/freetype --with-ldap --prefix=/path/to/php --with-apxs=/path/to/apache/bin/apxs When I start apache, I've the following error : /usr/lib/dld.sl: Unresolved symbol: strtoull (code) from /path/to/apache/libexec/libphp5.so If I compile without the option "--disable-cli", the error appears at compile time. According to this page : http://gcc.gnu.org/ml/libstdc++/2002-03/msg00164.html, HP-UX does not provide strtoll or strtoull functions in libc in 64 bit mode since they are the same as strtol and strtoul so we define the libstdc++ functions to call strtol and strtoul. I've resolved the situation with replacing all "strtoull" terms by "strtoul" on the file ext/fileinfo/libmagic/apprentice.c -- Edit bug report at http://bugs.php.net/bug.php?id=54934&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54934&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54934&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54934&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54934&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54934&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54934&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54934&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54934&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54934&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54934&r=support Expected behavior: http://bugs.php.net/fix.php?id=54934&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54934&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54934&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54934&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54934&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54934&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54934&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54934&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54934&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54934&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54934&r=mysqlcfg