Bug #54934 [Fbk->Opn]: Unresolved symbol strtoull
| From: | php at dactar dot ch | Date: | Fri, 27 May 2011 16:41:34 +0000 |
| Subject: | Bug #54934 [Fbk->Opn]: Unresolved symbol strtoull | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-161005@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54934&edit=1
ID: 54934
User updated by: php at dactar dot ch
Reported by: php at dactar dot ch
Summary: Unresolved symbol strtoull
-Status: Feedback
+Status: Open
Type: Bug
Package: Compile Failure
Operating System: HP-UX 11.11
PHP Version: 5.3.6
Block user comment: N
Private report: N
New Comment:
I've tested the patch, result is OK :)
Previous Comments:
------------------------------------------------------------------------
[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