php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
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 02:59 UTC] 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-27 03:00 UTC] felipe@php.net
-Status: Open +Status: Feedback
 [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
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-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.


 [2012-04-18 09:50 UTC] laruence@php.net
Automatic comment on behalf of felipe
Revision: http://git.php.net/?p=php-src.git;a=commit;h=3dcb2569199097c76c5d80118fe3c6acf1fa47a5
Log: - Fixed bug #54934 (Unresolved symbol strtoull in HP-UX 11.11)
 [2012-07-24 23:41 UTC] rasmus@php.net
Automatic comment on behalf of felipe
Revision: http://git.php.net/?p=php-src.git;a=commit;h=3dcb2569199097c76c5d80118fe3c6acf1fa47a5
Log: - Fixed bug #54934 (Unresolved symbol strtoull in HP-UX 11.11)
 [2013-11-17 09:38 UTC] laruence@php.net
Automatic comment on behalf of felipe
Revision: http://git.php.net/?p=php-src.git;a=commit;h=3dcb2569199097c76c5d80118fe3c6acf1fa47a5
Log: - Fixed bug #54934 (Unresolved symbol strtoull in HP-UX 11.11)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Oct 09 07:01:28 2024 UTC