|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-07-18 08:32 UTC] php at dactar dot ch
Description:
------------
Hello,
I've compiled PHP 5.3.7 RC3 on HP-UX 11.11 with gcc 4.1.2 and following parameters :
./configure --with-config-file-path=/path/to/etc/php --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-ldap --prefix=/path/to/php --with-ncurses=/path/to/ncurses --with-freetype-dir=/path/to/freetype
I've this error after make :
/usr/ccs/bin/ld: Unsatisfied symbols:
__sync_fetch_and_add_4 (first referenced in ext/standard/php_crypt_r.o) (code)
collect2: ld returned 1 exit status
*** Error exit code 1
It works fine with PHP 5.3.6 but not with PHP 5.3.7 RC3.
The diff between 5.3.6 and PHP 5.3.7 RC3 for ext/standard/php_crypt_r.c is :
1c1
< /* $Id: php_crypt_r.c 311390 2011-05-24 13:48:04Z pajoye $ */
---
> /* $Id: php_crypt_r.c 306939 2011-01-01 02:19:59Z felipe $ */
97c97
< #elif (defined(__GNUC__) && (__GNUC__ >= 4 && __GNUC_MINOR__ >= 1))
---
> #elif (defined(__GNUC__) && (__GNUC__ >= 4 && __GNUC_MINOR__ >= 2))
200c200
< dwHashLen = 16;
---
> dwHashLen = pwl + sl + pwl;
I've resolved the situation by return back for line 97 from
#elif (defined(__GNUC__) && (__GNUC__ >= 4 && __GNUC_MINOR__ >= 1))
__sync_fetch_and_add(&initialized, 1);
to
#elif (defined(__GNUC__) && (__GNUC__ >= 4 && __GNUC_MINOR__ >= 2))
__sync_fetch_and_add(&initialized, 1);
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 13:00:01 2025 UTC |
Hello, Sorry, with : #elif (defined(__GNUC__) && (__GNUC__ > 4 || \ (__GNUC__ == 4 && (__GNUC_MINOR__ > 1 || (__GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ > 1))))) it doesn't work ( Unresolved symbol: __sync_fetch_and_add_4 (code) ) I don't have the problem with : #elif (defined(__GNUC__) && (__GNUC__ >= 4 && __GNUC_MINOR__ >= 2)) Thanks @++ JC