Bug #54934 [Opn->Csd]: Unresolved symbol strtoull in HP-UX 11.11
Edit report at http://bugs.php.net/bug.php?id=54934&edit=1
ID: 54934
Updated by: felipe@php.net
Reported by: php at dactar dot ch
-Summary: Unresolved symbol strtoull
+Summary: Unresolved symbol strtoull in HP-UX 11.11
-Status: Open
+Status: Closed
Type: Bug
Package: Compile Failure
Operating System: HP-UX 11.11
PHP Version: 5.3.6
-Assigned To:
+Assigned To: felipe
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2011-05-28 01:31:32] felipe@php.net
Automatic comment from SVN on behalf of felipe
Revision: http://svn.php.net/viewvc/?view=revision&revision=311517
Log: - Fixed bug #54934 (Unresolved symbol strtoull in HP-UX 11.11)
------------------------------------------------------------------------
[2011-05-27 18:41:34] php at dactar dot ch
I've tested the patch, result is OK :)
------------------------------------------------------------------------
[2011-05-27 03:00:06] felipe@php.net
Can you test the attached patch, please?
------------------------------------------------------------------------
[2011-05-27 02:59:08] felipe@php.net
The following patch has been added/updated:
Patch Name: fix-build
Revision: 1306457948
URL:
http://bugs.php.net/patch-display.php?bug=54934&patch=fix-build&revision=1306457948
------------------------------------------------------------------------
[2011-05-26 09:58:31] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54934&edit=1
Thread (5 messages)