Bug #52725 [Opn->Asn]: undefined reference to `__sync_bool_compare_and_swap_4'
| From: | felipe@php.net | Date: | Sat, 28 Aug 2010 22:35:34 +0000 |
| Subject: | Bug #52725 [Opn->Asn]: undefined reference to `__sync_bool_compare_and_swap_4' | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-153887@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52725&edit=1
ID: 52725
Updated by: felipe@php.net
Reported by: fedora at famillecollet dot com
Summary: undefined reference to
`__sync_bool_compare_and_swap_4'
-Status: Open
+Status: Assigned
Type: Bug
Package: FPM related
Operating System: GNU/Linux (RHEL 5.5)
PHP Version: 5.3SVN-2010-08-28 (snap)
-Assigned To:
+Assigned To: fat
Block user comment: N
Previous Comments:
------------------------------------------------------------------------
[2010-08-28 22:37:23] fedora at famillecollet dot com
Description:
------------
Build fails on RHEL/Centos 5 (gcc-4.1.2)
sapi/fpm/fpm/fpm_shm_slots.o: In function `fpm_spinlock':
/builddir/build/BUILD/php5.3-201008281230/sapi/fpm/fpm/fpm_atomic.h:148:
undefined reference to `__sync_bool_compare_and_swap_4'
/builddir/build/BUILD/php5.3-201008281230/sapi/fpm/fpm/fpm_atomic.h:143:
undefined reference to `__sync_bool_compare_and_swap_4'
This seems linked to commit 302600
http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/sapi/fpm/fpm/fpm_atomic.h?r1=299794&r2=302600
Changing the test fixes the issue
#if (__GNUC__) && (__GNUC__ >= 4 && __GNUC_MINOR__ >= 2)
I don't know which is the correct value.
Build ok on fedora 12 (gcc-4.4.4) and fedora 13 (gcc-4.4.4)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52725&edit=1