From:             
Operating system: GNU/Linux (RHEL 5.5)
PHP version:      5.3SVN-2010-08-28 (snap)
Package:          FPM related
Bug Type:         Bug
Bug description:undefined reference to `__sync_bool_compare_and_swap_4'

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 bug report at http://bugs.php.net/bug.php?id=52725&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=52725&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=52725&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=52725&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=52725&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=52725&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=52725&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=52725&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=52725&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=52725&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=52725&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=52725&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=52725&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=52725&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=52725&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=52725&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=52725&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=52725&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=52725&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=52725&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=52725&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=52725&r=mysqlcfg

Reply via email to