Unresolved symbol strtoull in HP-UX 11.11

Bug #54934 Unresolved symbol strtoull in HP-UX 11.11
Submitted: 2011-05-26 09:58 UTC Modified: 2011-05-28 01:31 UTC
From: php at dactar dot ch Assigned: felipe (profile)
Status: Closed Package: Compile Failure
PHP Version: 5.3.6 OS: HP-UX 11.11
Private report: No CVE-ID: None

 [2011-05-26 09:58 UTC] php at dactar dot ch

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


Patches

fix-build (last revision 2011-05-27 00:59 UTC by felipe@php.net)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports

 [2011-05-27 03:00 UTC] felipe@php.net

Can you test the attached patch, please?

 [2011-05-27 18:41 UTC] php at dactar dot ch

-Status: Feedback +Status: Open

 [2011-05-27 18:41 UTC] php at dactar dot ch

I've tested the patch, result is OK :)

 [2011-05-28 01:31 UTC] felipe@php.net

-Summary: Unresolved symbol strtoull +Summary: Unresolved symbol strtoull in HP-UX 11.11 -Status: Open +Status: Closed -Assigned To: +Assigned To: felipe

 [2011-05-28 01:31 UTC] felipe@php.net

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.