Needing assistance with a maybe an ld issue that has gotten away from me.😃
I am a bit embarrassed asking for assistance but sometimes the brain is not quite linked in.
Installing php-4.3.0 on Solaris 8.
I have the Solaris Companion CD installed so default PATHs are following the /opt/sfw sequence.
I recently installed the following:
make-3.80
gd-2.0.11
binutils-2.13
libpng-1.2.4
jpeg-6b
freetype-2.1.2
Very close to the above order.
My environment in sh as root is set as:
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/opt/sfw/bin:/usr/dt/bin:/etc
LD_LIBRARY_PATH=/lib:/usr/lib:/usr/share/lib:/etc/lib:/opt/sfw/lib:/usr/ccs/lib:/opt/sfw/sparc-sun-solaris2.8/lib
Using the following command for configure:
./configure --prefix=/opt/sfw --with-apxs=/usr/apache/bin/apxs \
--with-mysql=/opt/sfw/mysql --with-gd --with-png-dir=/opt/sfw \
--with-zlib-dir=/opt/sfw
and when I execute a "make all" I hit the following error with ld:
dn_skipname ext/standard/dns.lo
getservbyname ext/mysql/php_mysql.lo (symbol belongs to implicit dependency /lib/libsocket.so.1)
gethostbyaddr ext/standard/dns.lo (symbol belongs to implicit dependency /lib/libnsl.so.1)
floor ext/gd/libgd/gd.lo (symbol belongs to implicit dependency /lib/libm.so.1)
inet_aton ext/standard/fsock.lo
getsockopt main/network.lo (symbol belongs to implicit dependency /lib/libsocket.so.1)
inet_pton ext/standard/dns.lo (symbol belongs to implicit dependency /lib/libnsl.so.1)
inet_addr ext/standard/basic_functions.lo (symbol belongs to implicit dependency /lib/libnsl.so.1)
fmod ext/standard/math.lo (symbol belongs to implicit dependency /lib/libm.so.1)
atan2 ext/gd/libgd/gd.lo (symbol belongs to implicit dependency /lib/libm.so.1)
asinh ext/standard/math.lo (symbol belongs to implicit dependency /lib/libm.so.1)
exp ext/standard/math.lo (symbol belongs to implicit dependency /lib/libm.so.1)
atanh ext/standard/math.lo (symbol belongs to implicit dependency /lib/libm.so.1)
inet_ntoa ext/standard/basic_functions.lo (symbol belongs to implicit dependency /lib/libnsl.so.1)
shutdown main/network.lo (symbol belongs to implicit dependency /lib/libsocket.so.1)
asin ext/standard/math.lo (symbol belongs to implicit dependency /lib/libm.so.1)
acos ext/standard/math.lo (symbol belongs to implicit dependency /lib/libm.so.1)
dlsym ext/standard/dl.lo (symbol belongs to implicit dependency /lib/libdl.so.1)
dlopen ext/standard/dl.lo (symbol belongs to implicit dependency /lib/libdl.so.1)
atan ext/standard/math.lo (symbol belongs to implicit dependency /lib/libm.so.1)
res_search ext/standard/dns.lo
dlerror ext/standard/dl.lo (symbol belongs to implicit dependency /lib/libdl.so.1)
sin ext/gd/libgd/gd.lo (symbol belongs to implicit dependency /lib/libm.so.1)
getservbyport ext/standard/basic_functions.lo (symbol belongs to implicit dependency /lib/libsocket.so.1)
cosh ext/standard/math.lo (symbol belongs to implicit dependency /lib/libm.so.1)
cos ext/gd/libgd/gd.lo (symbol belongs to implicit dependency /lib/libm.so.1)
connect main/network.lo (symbol belongs to implicit dependency /lib/libsocket.so.1)
ld: fatal: Symbol referencing errors. No output written to sapi/cli/.libs/php
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
If you need the top portion of the of the error I can share it with you, but it reads kind of the same.
It's as though I am missing a path to /lib in an environment variable or something that is escaping me.
Please help.