Edit report at http://bugs.php.net/bug.php?id=52725&edit=1

 ID:                 52725
 Patch added by:     f...@php.net
 Reported by:        fedora at famillecollet dot com
 Summary:            undefined reference to
                     `__sync_bool_compare_and_swap_4'
 Status:             Assigned
 Type:               Bug
 Package:            FPM related
 Operating System:   GNU/Linux (RHEL 5.5)
 PHP Version:        5.3SVN-2010-08-28 (snap)
 Assigned To:        fat
 Block user comment: N

 New Comment:

The following patch has been added/updated:

Patch Name: fpm_builtin_atomic.patch
Revision:   1283175955
URL:       
http://bugs.php.net/patch-display.php?bug=52725&patch=fpm_builtin_atomic.patch&revision=1283175955


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

Reply via email to