ID:               36026
 User updated by:  brian dot bream at comcast dot net
 Reported By:      brian dot bream at comcast dot net
 Status:           Bogus
 Bug Type:         Compile Failure
 Operating System: Solaris 10
 PHP Version:      5.1.2
 New Comment:

My apologies then, I thought that it may be a Solaris 10 "non-global"
zone 64-bit compile error as I have used this same procedure to build
on Solaris 9 in 32 bit.

The interesting parts to me at least were.
 ld.so.1: conftest: fatal: libgcc_s.so.1: open failed
Yet it is clearly there
webzone# find / -name libgcc_s.so.1
/usr/lib/AdobeReader/Reader/sparcsolaris/lib/libgcc_s.so.1
/usr/lib/libgcc_s.so.1
/usr/sfw/lib/libgcc_s.so.1
/usr/sfw/lib/sparcv9/libgcc_s.so.1
/usr/local/lib/sparcv9/libgcc_s.so.1
/usr/local/lib/libgcc_s.so.1

crle tells it that they are there
Default Library Path (ELF):  
/lib:/usr/lib:/usr/local/mysql/lib/mysql:/usr/local/ssl/lib:/usr/local/l
ib

Thanks.......


Previous Comments:
------------------------------------------------------------------------

[2006-01-16 09:03:09] [EMAIL PROTECTED]

Like the error says:
"relocations based on the ABS44 coding model can not be used in
building a shared object"

And missing / not found in LD_LIBRARY_PATH libraries are not PHP bug
either.


------------------------------------------------------------------------

[2006-01-16 03:18:06] brian dot bream at comcast dot net

Description:
------------
End of make
ld: fatal: relocation error: R_SPARC_H44: file
/usr/local/ssl/lib/libssl.a(s2_srvr.o): symbol <unknown>: relocations
based on the ABS44 coding model can not be used in building a shared
object
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
make: *** Waiting for unfinished jobs....

Tail of debug.log
gcc -o conftest -I/usr/local/include -m64  -D_POSIX_PTHREAD_SEMANTICS
-L/usr/local/lib -m64 -R/usr/ucblib
 -L/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2
-L/usr/local/lib/gcc-lib/sparc-sun-so
laris2.10/3.3.2 -R/usr/local/lib -L/usr/local/lib -R/usr/local/ssl/lib
-L/usr/local/ssl/lib -R/usr/local/
mysql/lib/mysql -L/usr/local/mysql/lib/mysql conftest.c -lrt
-lmysqlclient -lmcrypt -lintl -lfreetype -lX
11 -lXpm -lpng -lz -ljpeg -lssl -lcrypto -lcurl -lz -lresolv -lm -lnsl
-lsocket  -lgcc -lxml2 -lz -liconv
 -lm -lsocket -lnsl -lcurl -lsocket -lnsl -lz -lxml2 -lz -liconv -lm
-lsocket -lnsl -lmysqlclient -lz -lp
osix4 -lcrypt -lgen -lsocket -lnsl -lm -lssl -lcrypto -lxml2 -lz
-liconv -lm -lsocket -lnsl 1>&5
ld.so.1: conftest: fatal: libgcc_s.so.1: open failed: No such file or
directory

webzone# find / -name libgcc_s.so.1
/usr/lib/AdobeReader/Reader/sparcsolaris/lib/libgcc_s.so.1
/usr/lib/libgcc_s.so.1
/usr/sfw/lib/libgcc_s.so.1
/usr/sfw/lib/sparcv9/libgcc_s.so.1
/usr/local/lib/sparcv9/libgcc_s.so.1
/usr/local/lib/libgcc_s.so.1

webzone# crle

Configuration file [version 4]: /var/ld/ld.config  
Default Library Path (ELF):  
/lib:/usr/lib:/usr/local/mysql/lib/mysql:/usr/local/ssl/lib:/usr/local/lib
Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system
default)

webzone# uname -a
SunOS webzone 5.10 Generic_118822-25 sun4v sparc SUNW,Sun-Fire-T200

Packages comliled (64bit) or installed
webzone# ls
autoconf-2.59                        libiconv-1.8
bison-1.875d                         libmcrypt-2.5.7
curl-7.12.2                          libpng-1.2.8
expat-1.95.5                         libxml2-2.6.20
flex-2.5.4                           m4-1.4.2
fontconfig-2.2.98-sol10-sparc-local  make-3.80-sol10-sparc-local
freetype-2.1.10                      mhash-0.9.3
gcc-3.3.2-sol10-sparc-local          mysql-5.0.18
gd-2.0.33                            openssl-0.9.8a
jpeg-6b                              xpm-3.4k-sol10-sparc-local
libgcc-3.3-sol10-sparc-local         zlib-1.2.3

Configure options
CC="gcc"
CPP="gcc -E"
CPPFLAGS="-I/usr/local/include -I/usr/local/ssl/include/openssl
-I/usr/local/mysql/include/mysql"
CXX="gcc"
CFLAGS="-I/usr/local/include -m64 -g -O3 -fno-omit-frame-pointer
-mcpu=v8 -Wa,-xarch=v8plusa"
CXXFLAGS="-m64  -felide-constructors -fno-exceptions -fno-rtti  -O3
-fno-omit-frame-pointer -mcpu=v8 -Wa,
-xarch=v8plusa -g"
LDFLAGS="-L/usr/local/lib -L/usr/local/lib/sparcv9
-L/usr/local/mysql/lib/mysql -L/usr/local/ssl/lib -R/u
sr/local/lib -R/usr/local/ssl/lib -R/usr/local/lib/sparcv9
-R/usr/local/mysql/lib/mysql -m64"
export CC CXX CFLAGS CXXFLADGS LDFLAGS CPP CPPFLAGS
./configure \
--enable-bcmath \
--enable-calendar \
--with-curl \
--with-apxs2=/usr/apache2/bin/apxs \
--enable-libgcc \
--with-dom \
--with-dom-xslt \
--with-dom-exslt \
--enable-exif \
--enable-ftp \
--with-gd \
--with-png-dir=/usr/local \
--with-xpm-dir=/usr/local \
--with-gettext \
--enable-mbstring=all \
--enable-mbstr-enc-trans \
--enable-mbregex \
--with-mcrypt \
--enable-magic-quotes \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-mysql=/usr/local/mysql \
--with-mysql-sock=/tmp/mysql.sock \
--with-openssl=/usr/local/ssl \
--with-openssl-dir=/usr/local/ssl \
--with-xml \
--enable-discard-path \
--with-pear  \
--enable-xslt \
--with-xslt-sablot \
--enable-sockets \
--enable-track-vars \
--with-ttf  \
--with-freetype-dir=/usr/local \
--enable-gd-native-ttf \
--enable-versioning \
--enable-wddx \
--with-xmlrpc \
--with-zip \
--with-zlib-dir=/usr/local \
--enable-xml \
--with-libxml-dir=/usr/local/lib \
--with-jpeg-dir=/usr/local

webzone# openssl
OpenSSL> version
OpenSSL 0.9.8a 11 Oct 2005


 
webzone# more /.profile
ENV=/.kshrc
EDITOR=vi
PS1="`uname -n`# "
EXINIT='set showmode| set ignorecase'
SHELL=/bin/ksh
LD_LIBRARY_PATH=/usr/local/lib
export ENV EDITOR PS1 EXINIT SHELL LD_LIBRARY_PATH

# Set path to include /opt/*/bin if there are any

PATH=.:/opt/SUNWspro/bin:/usr/local/bin:/usr/local/sbin:/usr/local/lib:/usr/local/lib/sparcv9:/usr/local/
bin/gcc:/usr/local/mysql/bin:/usr/local/ssl:/usr/local/ssl/bin:/usr/bin:/usr/sbin:/bin:/usr/sadm/admin/bi
n:/opt/bin:/opt/sbin:/usr/dt/bin:/usr/openwin/bin::/usr/ccs/bin::/usr/local/php/bin

# Set man pages path to include /opt/*/man if there are any
MAN=`echo /opt/*/man | tr ' ' ':'`
if [ "${MAN}" != "/opt/*/man" ] ; then
MANPATH=/usr/man:${MAN}; export MANPATH

Expected result:
----------------
Make complete

Actual result:
--------------
See error report


------------------------------------------------------------------------


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

Reply via email to