From:             
Operating system: SunOS 5.10 Generic_14290
PHP version:      5.3.6
Package:          Compile Failure
Bug Type:         Bug
Bug description:Undefined symbol: __sync_fetch_and_add_4

Description:
------------
__sync_fetch_and_add_4 shouldn't be called on SPARC.



The system is 64 bit with v9 processors but our Oracle libraries are 32 bit
so I'm 

using mcpu=v8.

Test script:
---------------
This is the configure script:



unset LD_LIBRARY_PATH



export CC="gcc"

export CFLAGS="-mcpu=v8 -Wa,-xarch=v8plusa"

export LD_LIBRARY_PATH=/usr/lib:/usr/sfw/lib:/usr/local/lib:/usr/ccs/lib

export LD_LIBRARY_FLAGS="-L/usr/lib -R/usr/lib -L/usr/sfw/lib
-R/usr/sfw/lib -L/usr/local/lib -R/usr/local/lib -L/usr/ccs/lib
-R/usr/ccs/lib"





./configure \

--prefix=/usr/local/php-5.3.6 \

--enable-shared \

--with-apxs2=/usr/local/httpd-2.2.17/bin/apxs \

--with-libxml-dir=/usr/include/libxml2 \

--with-iconv-dir=/usr/local/libiconv-1.12/lib \

--with-zlib \

--enable-exif \

--enable-mbstring \

--enable-calendar \

--enable-bcmath \

--enable-ftp \

--enable-zip \

--with-bz2=/usr/local/lib \

--with-jpeg-dir=/usr/local/lib \

--with-png-dir=/usr/local/lib \

--with-gettext=shared,/opt/sfw \

--enable-sockets \

--with-oci8=/usr/local/php-5.3.1/ORACLE_LIB32 \

--with-gd \

--with-ldap


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

Reply via email to