LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 07-26-2011, 04:26 PM   #1
pliqui
Member
 
Registered: Feb 2007
Location: Caracas, Venezuela
Distribution: Debian x64
Posts: 156

Rep: Reputation: 17
httpd: fatal: libpng12.so.0: open failed: No such file or directory


Hello all,

I have the following problem, i'm compiling php5 on a solaris 10 sparc box, using solaris studio 12.2, i dont have any problem compiling apache or php, all the procees goes smooth

PHP5 compiling parameters
Code:
CC="/opt/solstudio12.2/bin/cc" CFLAGS="-xtarget=generic -m32" CXX="CC" CXXFLAGS="-xtarget=generic -m32" LDFLAGS="-m32" ./configure --prefix=/opt/php5 --with-apxs2=/opt/apache2/bin/apxs --with-config-file-path=/opt/php5/etc --with-libdir=lib --enable-ftp --with-zlib-dir --enable-mbstring --enable-exif --enable-sockets --with-xmlrpc --enable-soap --with-oci8=instantclient,/opt/instantclient_10_2,10.2.0.5.0 --with-pdo-oci=instantclient,/opt/instantclient_10_2,10.2.0.5.0 --with-openssl=/usr/local/ssl --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --enable-sigchild --with-xml --enable-bcmath --enable-track-vars --enable-trans-sid --enable-calendar --without-pear
but when i try to start the apache i got following error:

Code:
bash-3.00# ./apachectl -k start
httpd: Syntax error on line 101 of /etc/apache2/httpd.conf: Cannot load /opt/apache2/modules/libphp5.so into server: ld.so.1: httpd: fatal: libpng12.so.0: open failed: No such file or directory
But the libphp5.so have all libraries right

Code:
bash-3.00# ldd libphp5.so
        libresolv.so.2 =>        /lib/libresolv.so.2
        librt.so.1 =>    /lib/librt.so.1
        libiconv.so.2 =>         /usr/local/lib/libiconv.so.2
        libfreetype.so.6 =>      /usr/local/lib/libfreetype.so.6
        libpng12.so.0 =>         /usr/local/lib/libpng12.so.0
        libz.so.1 =>     /usr/lib/libz.so.1
        libjpeg.so.8 =>  /usr/local/lib/libjpeg.so.8
        libssl.so.1.0.0 =>       /usr/local/ssl/lib/libssl.so.1.0.0
        libcrypto.so.1.0.0 =>    /usr/local/ssl/lib/libcrypto.so.1.0.0
        libm.so.2 =>     /lib/libm.so.2
        libnsl.so.1 =>   /lib/libnsl.so.1
        libsocket.so.1 =>        /lib/libsocket.so.1
        libxml2.so.2 =>  /usr/lib/libxml2.so.2
        libclntsh.so.10.1 =>     /opt/instantclient_10_2/libclntsh.so.10.1
        libc.so.1 =>     /lib/libc.so.1
        libaio.so.1 =>   /lib/libaio.so.1
        libmd.so.1 =>    /lib/libmd.so.1
        libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
        libdl.so.1 =>    /lib/libdl.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libscf.so.1 =>   /lib/libscf.so.1
        libpthread.so.1 =>       /lib/libpthread.so.1
        libnnz10.so =>   /opt/instantclient_10_2/libnnz10.so
        libkstat.so.1 =>         /lib/libkstat.so.1
        libgen.so.1 =>   /lib/libgen.so.1
        libsched.so.1 =>         /usr/lib/libsched.so.1
        libm.so.1 =>     /lib/libm.so.1
        libdoor.so.1 =>  /lib/libdoor.so.1
        libuutil.so.1 =>         /lib/libuutil.so.1
        /platform/SUNW,SPARC-Enterprise-T5220/lib/libc_psr.so.1
        /platform/SUNW,SPARC-Enterprise-T5220/lib/libmd_psr.so.1
I installed all the requirements package from sunfreeware

Code:
bash-3.00# ls -l /usr/local/lib/libpng12.so.0
lrwxrwxrwx   1 root     root          18 Jun  5 09:15 /usr/local/lib/libpng12.so.0 -> libpng12.so.0.44.0
Versions i'm using:

Apache: 2.2.19
OpenSSL: 1.0.0d*
PHP: 5.3.6
PNG: 1.2.44*
GD: 2.0.35*

*:SunfreeWare packages

Thanks for any tip
 
Old 07-27-2011, 01:10 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
You anticipated my first response: "run ldd on your libPHP5 file".

Perhaps you have a broken link? Or an invalid libpng .so?

"ls -lL" will help answer the first question; "ldd libpng*" the second one.
 
Old 07-27-2011, 06:07 PM   #3
pliqui
Member
 
Registered: Feb 2007
Location: Caracas, Venezuela
Distribution: Debian x64
Posts: 156

Original Poster
Rep: Reputation: 17
Good Night,

Sorry for the late reply, it's been hell today at work, database server stop responding... so imagine.

About the commands you ask for, here is the ls, in blue the libpng

Quote:
bash-3.00# cd /usr/local/lib/
bash-3.00# ls -lL
total 123902
drwxr-xr-x 3 bin bin 3 Jun 5 09:15 gio
drwxr-xr-x 3 bin bin 3 Jun 5 09:15 glib-2.0
drwxr-xr-x 4 bin bin 4 Jun 5 09:15 gtk-2.0
-rw-r--r-- 1 bin bin 113468 May 26 2000 libXpm.a
-rwxr-xr-x 1 bin bin 101520 May 26 2000 libXpm.so
-rwxr-xr-x 1 bin bin 101520 May 26 2000 libXpm.so.4.11
-rw-r--r-- 1 root bin 595320 Mar 4 2005 libXrender.a
-rwxr-xr-x 1 root bin 1028 Mar 4 2005 libXrender.la
-rwxr-xr-x 1 root bin 51596 Mar 4 2005 libXrender.so
-rwxr-xr-x 1 root bin 51596 Mar 4 2005 libXrender.so.1
-rwxr-xr-x 1 root bin 51596 Mar 4 2005 libXrender.so.1.2.2
-rwxr-xr-x 1 bin bin 1066 Oct 7 2007 libatk-1.0.la
-rwxr-xr-x 1 bin bin 156628 Oct 7 2007 libatk-1.0.so
-rwxr-xr-x 1 bin bin 156628 Oct 7 2007 libatk-1.0.so.0
-rwxr-xr-x 1 bin bin 156628 Oct 7 2007 libatk-1.0.so.0.1809.1
-rw-r--r-- 1 bin bin 690322 Oct 4 2007 libcairo.a
-rwxr-xr-x 1 bin bin 1255 Oct 4 2007 libcairo.la
-rwxr-xr-x 1 bin bin 567812 Oct 4 2007 libcairo.so
-rwxr-xr-x 1 bin bin 567812 Oct 4 2007 libcairo.so.2
-rwxr-xr-x 1 bin bin 567812 Oct 4 2007 libcairo.so.2.11.5
-rw-r--r-- 1 bin bin 4784 Jan 12 2010 libcharset.a
-rw-r--r-- 1 bin bin 1174 Jan 12 2010 libcharset.la
-rwxr-xr-x 1 bin bin 9748 Jan 12 2010 libcharset.so
-rwxr-xr-x 1 bin bin 9748 Jan 12 2010 libcharset.so.1
-rwxr-xr-x 1 bin bin 9748 Jan 12 2010 libcharset.so.1.0.0
-rw-r--r-- 1 bin bin 189148 Jan 4 2008 libexpat.a
-rwxr-xr-x 1 bin bin 1033 Jan 4 2008 libexpat.la
-rwxr-xr-x 1 bin bin 150252 Jan 4 2008 libexpat.so
-rwxr-xr-x 1 bin bin 323716 Jan 4 2008 libexpat.so.0
-rwxr-xr-x 1 bin bin 323716 Jan 4 2008 libexpat.so.0.4.0
-rwxr-xr-x 1 bin bin 150252 Jan 4 2008 libexpat.so.1
-rwxr-xr-x 1 bin bin 150252 Jan 4 2008 libexpat.so.1.5.2
-rw-r--r-- 1 bin bin 267928 Aug 13 2010 libfontconfig.a
-rwxr-xr-x 1 bin bin 1347 Aug 13 2010 libfontconfig.la
-rwxr-xr-x 1 bin bin 235472 Aug 13 2010 libfontconfig.so
-rwxr-xr-x 1 bin bin 235472 Aug 13 2010 libfontconfig.so.1
-rwxr-xr-x 1 bin bin 235472 Aug 13 2010 libfontconfig.so.1.4.4
-rw-r--r-- 1 bin bin 83850 Apr 25 2010 libform.a
-rwxr-xr-x 1 bin bin 62504 Apr 25 2010 libform.so
-rwxr-xr-x 1 bin bin 62504 Apr 25 2010 libform.so.5
-rwxr-xr-x 1 bin bin 62504 Apr 25 2010 libform.so.5.7
-rw-r--r-- 1 bin bin 420952 Apr 25 2010 libform_g.a
-rw-r--r-- 1 bin bin 582064 Aug 13 2010 libfreetype.a
-rwxr-xr-x 1 bin bin 1187 Aug 13 2010 libfreetype.la
-rwxr-xr-x 1 bin bin 520344 Aug 13 2010 libfreetype.so
-rwxr-xr-x 1 bin bin 520344 Aug 13 2010 libfreetype.so.6
-rwxr-xr-x 1 bin bin 520344 Aug 13 2010 libfreetype.so.6.6.0
-rwxr-xr-x 1 bin bin 163096 Oct 9 2006 libg2c.so
-rwxr-xr-x 1 bin bin 163096 Oct 9 2006 libg2c.so.0
-rwxr-xr-x 1 bin bin 163096 Oct 9 2006 libg2c.so.0.0.0
-rw-r--r-- 1 bin bin 168580 Oct 9 2006 libgcc_s.so
-rw-r--r-- 1 bin bin 168580 Oct 9 2006 libgcc_s.so.1
-rw-r--r-- 1 bin bin 280944 Jan 17 2008 libgd.a
-rwxr-xr-x 1 bin bin 1201 Jan 17 2008 libgd.la
-rwxr-xr-x 1 bin bin 266848 Jan 17 2008 libgd.so
-rwxr-xr-x 1 bin bin 266848 Jan 17 2008 libgd.so.2
-rwxr-xr-x 1 bin bin 266848 Jan 17 2008 libgd.so.2.0.0
-rw-r--r-- 1 bin bin 834 Dec 9 2007 libgdk-x11-2.0.la
-rwxr-xr-x 1 bin bin 684800 Dec 9 2007 libgdk-x11-2.0.so
-rwxr-xr-x 1 bin bin 684800 Dec 9 2007 libgdk-x11-2.0.so.0
-rwxr-xr-x 1 bin bin 684800 Dec 9 2007 libgdk-x11-2.0.so.0.1200.0
-rwxr-xr-x 1 bin bin 1103 Dec 9 2007 libgdk_pixbuf-2.0.la
-rwxr-xr-x 1 bin bin 131372 Dec 9 2007 libgdk_pixbuf-2.0.so
-rwxr-xr-x 1 bin bin 131372 Dec 9 2007 libgdk_pixbuf-2.0.so.0
-rwxr-xr-x 1 bin bin 131372 Dec 9 2007 libgdk_pixbuf-2.0.so.0.1200.0
-rwxr-xr-x 1 bin bin 1190 Dec 9 2007 libgdk_pixbuf_xlib-2.0.la
-rwxr-xr-x 1 bin bin 66196 Dec 9 2007 libgdk_pixbuf_xlib-2.0.so
-rwxr-xr-x 1 bin bin 66196 Dec 9 2007 libgdk_pixbuf_xlib-2.0.so.0
-rwxr-xr-x 1 bin bin 66196 Dec 9 2007 libgdk_pixbuf_xlib-2.0.so.0.1200.0
-rwxr-xr-x 1 bin bin 1316 Aug 16 2010 libgio-2.0.la
-rwxr-xr-x 1 bin bin 1321500 Aug 16 2010 libgio-2.0.so
-rwxr-xr-x 1 bin bin 1321500 Aug 16 2010 libgio-2.0.so.0
-rwxr-xr-x 1 bin bin 1321500 Aug 16 2010 libgio-2.0.so.0.2513.0
-rwxr-xr-x 1 bin bin 1156 Aug 16 2010 libglib-2.0.la
-rwxr-xr-x 1 bin bin 1196060 Aug 16 2010 libglib-2.0.so
-rwxr-xr-x 1 bin bin 1196060 Aug 16 2010 libglib-2.0.so.0
-rwxr-xr-x 1 bin bin 1196060 Aug 16 2010 libglib-2.0.so.0.2513.0
-rwxr-xr-x 1 bin bin 1204 Aug 16 2010 libgmodule-2.0.la
-rwxr-xr-x 1 bin bin 15820 Aug 16 2010 libgmodule-2.0.so
-rwxr-xr-x 1 bin bin 15820 Aug 16 2010 libgmodule-2.0.so.0
-rwxr-xr-x 1 bin bin 15820 Aug 16 2010 libgmodule-2.0.so.0.2513.0
-rwxr-xr-x 1 bin bin 1261 Aug 16 2010 libgobject-2.0.la
-rwxr-xr-x 1 bin bin 380628 Aug 16 2010 libgobject-2.0.so
-rwxr-xr-x 1 bin bin 380628 Aug 16 2010 libgobject-2.0.so.0
-rwxr-xr-x 1 bin bin 380628 Aug 16 2010 libgobject-2.0.so.0.2513.0
-rwxr-xr-x 1 bin bin 1228 Aug 16 2010 libgthread-2.0.la
-rwxr-xr-x 1 bin bin 23472 Aug 16 2010 libgthread-2.0.so
-rwxr-xr-x 1 bin bin 23472 Aug 16 2010 libgthread-2.0.so.0
-rwxr-xr-x 1 bin bin 23472 Aug 16 2010 libgthread-2.0.so.0.2513.0
-rw-r--r-- 1 bin bin 834 Dec 9 2007 libgtk-x11-2.0.la
-rwxr-xr-x 1 bin bin 4823188 Dec 9 2007 libgtk-x11-2.0.so
-rwxr-xr-x 1 bin bin 4823188 Dec 9 2007 libgtk-x11-2.0.so.0
-rwxr-xr-x 1 bin bin 4823188 Dec 9 2007 libgtk-x11-2.0.so.0.1200.0
-rw-r--r-- 1 bin bin 1033 Jan 12 2010 libiconv.la
-rwxr-xr-x 1 bin bin 968236 Jan 12 2010 libiconv.so
-rwxr-xr-x 1 bin bin 968236 Jan 12 2010 libiconv.so.2
-rwxr-xr-x 1 bin bin 968236 Jan 12 2010 libiconv.so.2.5.0
-rw-r--r-- 1 bin bin 63802 Jan 1 2008 libintl.a
-rw-r--r-- 1 bin bin 1063 Jan 1 2008 libintl.la
-rwxr-xr-x 1 bin bin 49452 Jan 1 2008 libintl.so
-rwxr-xr-x 1 bin bin 49452 Jan 1 2008 libintl.so.8
-rwxr-xr-x 1 bin bin 49452 Jan 1 2008 libintl.so.8.0.2
-rw-r--r-- 1 bin bin 300974 Apr 7 2010 libjpeg.a
-rwxr-xr-x 1 bin bin 1154 Apr 7 2010 libjpeg.la
-rwxr-xr-x 1 bin bin 271712 Apr 7 2010 libjpeg.so
-rwxr-xr-x 1 bin bin 137028 Apr 7 2010 libjpeg.so.62
-rwxr-xr-x 1 bin bin 137028 Apr 7 2010 libjpeg.so.62.0.0
-rwxr-xr-x 1 bin bin 264192 Apr 7 2010 libjpeg.so.7
-rwxr-xr-x 1 bin bin 264192 Apr 7 2010 libjpeg.so.7.0.0
-rwxr-xr-x 1 bin bin 271712 Apr 7 2010 libjpeg.so.8
-rwxr-xr-x 1 bin bin 271712 Apr 7 2010 libjpeg.so.8.0.1
-rw-r--r-- 1 bin bin 45956 Sep 23 2010 libltdl.a
-rwxr-xr-x 1 bin bin 1150 Sep 23 2010 libltdl.la
-rwxr-xr-x 1 bin bin 42052 Sep 23 2010 libltdl.so
-rwxr-xr-x 1 bin bin 42052 Sep 23 2010 libltdl.so.7
-rwxr-xr-x 1 bin bin 42052 Sep 23 2010 libltdl.so.7.3.0
-rw-r--r-- 1 bin bin 43970 Apr 25 2010 libmenu.a
-rwxr-xr-x 1 bin bin 32372 Apr 25 2010 libmenu.so
-rwxr-xr-x 1 bin bin 32372 Apr 25 2010 libmenu.so.5
-rwxr-xr-x 1 bin bin 32372 Apr 25 2010 libmenu.so.5.7
-rw-r--r-- 1 bin bin 223056 Apr 25 2010 libmenu_g.a
-rw-r--r-- 1 bin bin 198304 Apr 25 2010 libncurses++.a
-rw-r--r-- 1 bin bin 439944 Apr 25 2010 libncurses.a
-rwxr-xr-x 1 bin bin 320372 Apr 25 2010 libncurses.so
-rwxr-xr-x 1 bin bin 320372 Apr 25 2010 libncurses.so.5
-rwxr-xr-x 1 bin bin 320372 Apr 25 2010 libncurses.so.5.7
-rw-r--r-- 1 bin bin 1944250 Apr 25 2010 libncurses_g.a
-rw-r--r-- 1 bin bin 18690 Apr 25 2010 libpanel.a
-rwxr-xr-x 1 bin bin 15620 Apr 25 2010 libpanel.so
-rwxr-xr-x 1 bin bin 15620 Apr 25 2010 libpanel.so.5
-rwxr-xr-x 1 bin bin 15620 Apr 25 2010 libpanel.so.5.7
-rw-r--r-- 1 bin bin 83580 Apr 25 2010 libpanel_g.a
-rwxr-xr-x 1 bin bin 1066 Oct 6 2007 libpango-1.0.la
-rwxr-xr-x 1 bin bin 313132 Oct 6 2007 libpango-1.0.so
-rwxr-xr-x 1 bin bin 313132 Oct 6 2007 libpango-1.0.so.0
-rwxr-xr-x 1 bin bin 313132 Oct 6 2007 libpango-1.0.so.0.1800.2
-rwxr-xr-x 1 bin bin 1387 Oct 6 2007 libpangocairo-1.0.la
-rwxr-xr-x 1 bin bin 51888 Oct 6 2007 libpangocairo-1.0.so
-rwxr-xr-x 1 bin bin 51888 Oct 6 2007 libpangocairo-1.0.so.0
-rwxr-xr-x 1 bin bin 51888 Oct 6 2007 libpangocairo-1.0.so.0.1800.2
-rw-r--r-- 1 bin bin 840 Oct 6 2007 libpangoft2-1.0.la
-rwxr-xr-x 1 bin bin 223300 Oct 6 2007 libpangoft2-1.0.so
-rwxr-xr-x 1 bin bin 223300 Oct 6 2007 libpangoft2-1.0.so.0
-rwxr-xr-x 1 bin bin 223300 Oct 6 2007 libpangoft2-1.0.so.0.1800.2
-rw-r--r-- 1 bin bin 828 Oct 6 2007 libpangox-1.0.la
-rwxr-xr-x 1 bin bin 56612 Oct 6 2007 libpangox-1.0.so
-rwxr-xr-x 1 bin bin 56612 Oct 6 2007 libpangox-1.0.so.0
-rwxr-xr-x 1 bin bin 56612 Oct 6 2007 libpangox-1.0.so.0.1800.2
-rw-r--r-- 1 bin bin 840 Oct 6 2007 libpangoxft-1.0.la
-rwxr-xr-x 1 bin bin 36776 Oct 6 2007 libpangoxft-1.0.so
-rwxr-xr-x 1 bin bin 36776 Oct 6 2007 libpangoxft-1.0.so.0
-rwxr-xr-x 1 bin bin 36776 Oct 6 2007 libpangoxft-1.0.so.0.1800.2
-rw-r--r-- 1 bin bin 196006 Jul 13 2010 libpng.a
-rwxr-xr-x 1 bin bin 1172 Jul 13 2010 libpng.la
-rwxr-xr-x 1 bin bin 169473 Jul 13 2010 libpng.so
-rwxr-xr-x 1 bin bin 178985 Jul 13 2010 libpng.so.3
-rwxr-xr-x 1 bin bin 178985 Jul 13 2010 libpng.so.3.44.0
-rw-r--r-- 1 bin bin 196006 Jul 13 2010 libpng12.a
-rwxr-xr-x 1 bin bin 1172 Jul 13 2010 libpng12.la
-rwxr-xr-x 1 bin bin 169473 Jul 13 2010 libpng12.so
-rwxr-xr-x 1 bin bin 169473 Jul 13 2010 libpng12.so.0
-rwxr-xr-x 1 bin bin 169473 Jul 13 2010 libpng12.so.0.44.0

-rwxr-xr-x 1 bin bin 1586640 Oct 9 2006 libstdc++.so.6
-rwxr-xr-x 1 bin bin 1586640 Oct 9 2006 libstdc++.so.6.0.3
-rw-r--r-- 1 bin bin 482332 Jun 18 2010 libtiff.a
-rwxr-xr-x 1 bin bin 1191 Jun 18 2010 libtiff.la
-rwxr-xr-x 1 bin bin 426560 Jun 18 2010 libtiff.so
-rwxr-xr-x 1 bin bin 426560 Jun 18 2010 libtiff.so.3
-rwxr-xr-x 1 bin bin 426560 Jun 18 2010 libtiff.so.3.9.4
-rw-r--r-- 1 bin bin 10998 Jun 18 2010 libtiffxx.a
-rwxr-xr-x 1 bin bin 1400 Jun 18 2010 libtiffxx.la
-rwxr-xr-x 1 bin bin 16208 Jun 18 2010 libtiffxx.so
-rwxr-xr-x 1 bin bin 16208 Jun 18 2010 libtiffxx.so.3
-rwxr-xr-x 1 bin bin 16208 Jun 18 2010 libtiffxx.so.3.9.4
drwxr-xr-x 3 bin bin 3 Jun 5 09:16 pango
drwxr-xr-x 2 bin bin 38 Jun 5 09:16 pkgconfig
-rw-r--r-- 1 bin bin 961524 Jan 12 2010 preloadable_libiconv.so
drwxr-xr-x 44 bin bin 44 Jun 5 09:16 terminfo
And for the ldd

Quote:
bash-3.00# ldd libpng*
ldd: libpng.a: file is not a dynamic executable or shared object
ldd: libpng.la: unsupported or unknown file type
libpng.so:
libz.so => /usr/lib/libz.so
libm.so.2 => /usr/lib/libm.so.2
libc.so.1 => /usr/lib/libc.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
/platform/SUNW,SPARC-Enterprise-T5220/lib/libc_psr.so.1
libpng.so.3:
libz.so => /usr/lib/libz.so
libm.so.2 => /usr/lib/libm.so.2
libc.so.1 => /usr/lib/libc.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
/platform/SUNW,SPARC-Enterprise-T5220/lib/libc_psr.so.1
libpng.so.3.44.0:
libz.so => /usr/lib/libz.so
libm.so.2 => /usr/lib/libm.so.2
libc.so.1 => /usr/lib/libc.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
/platform/SUNW,SPARC-Enterprise-T5220/lib/libc_psr.so.1
ldd: libpng12.a: file is not a dynamic executable or shared object
ldd: libpng12.la: unsupported or unknown file type
libpng12.so:
libz.so => /usr/lib/libz.so
libm.so.2 => /usr/lib/libm.so.2
libc.so.1 => /usr/lib/libc.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
/platform/SUNW,SPARC-Enterprise-T5220/lib/libc_psr.so.1
libpng12.so.0:
libz.so => /usr/lib/libz.so
libm.so.2 => /usr/lib/libm.so.2
libc.so.1 => /usr/lib/libc.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
/platform/SUNW,SPARC-Enterprise-T5220/lib/libc_psr.so.1
libpng12.so.0.44.0:
libz.so => /usr/lib/libz.so
libm.so.2 => /usr/lib/libm.so.2
libc.so.1 => /usr/lib/libc.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
/platform/SUNW,SPARC-Enterprise-T5220/lib/libc_psr.so.1
Thanks for the reply
 
Old 07-27-2011, 06:39 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
not sure on solaris 10 but
fedora ,suse, SL6 ,...
packageconfig has 2 png .pc files
one pointing to png12 and one pointing to png14

php might be linking to the wrong one png 13 ( 12b ? whatever one wants to call png3)
 
Old 07-28-2011, 12:25 AM   #5
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi, plique -

I meant "just run ls -lL on your libpng". Not the whole directory

Nevertheless:
Code:
/usr/local/lib/libpng12.so.0 -> libpng12.so.0.44.0

-rwxr-xr-x 1 bin bin 169473 Jul 13 2010 libpng.so
-rwxr-xr-x 1 bin bin 169473 Jul 13 2010 libpng12.so
-rwxr-xr-x 1 bin bin 169473 Jul 13 2010 libpng12.so.0
-rwxr-xr-x 1 bin bin 169473 Jul 13 2010 libpng12.so.0.44.0

-rwxr-xr-x 1 bin bin 178985 Jul 13 2010 libpng.so.3
-rwxr-xr-x 1 bin bin 178985 Jul 13 2010 libpng.so.3.44.0
Suggestion:
You've got two different versions of libpng*.so. Maybe "libpng.so" is a symbolic link, and maybe it should point to libpng.so.3 instead of to libpng12.so?

Use "ls -l" to sort out what's pointing to what, use "rm" to delete a symbolic link, and use "ln -s" to recreate it.

Last edited by paulsm4; 07-28-2011 at 12:26 AM.
 
Old 08-01-2011, 11:24 AM   #6
pliqui
Member
 
Registered: Feb 2007
Location: Caracas, Venezuela
Distribution: Debian x64
Posts: 156

Original Poster
Rep: Reputation: 17
Sorry for the late reply, but past week was crazy.

Gonna try to play with the symslink as you suggested and gonna inform the results.

But here are are the libpng and syslinks in /usr/local/lib

Code:
bash-3.00# ls -l libpng*
lrwxrwxrwx   1 root     root          10 Jun  5 09:15 libpng.a -> libpng12.a
lrwxrwxrwx   1 root     root          11 Jun  5 09:15 libpng.la -> libpng12.la
lrwxrwxrwx   1 root     root          11 Jun  5 09:15 libpng.so -> libpng12.so
lrwxrwxrwx   1 root     root          16 Jun  5 09:15 libpng.so.3 -> libpng.so.3.44.0
-rwxr-xr-x   1 bin      bin       178985 Jul 13  2010 libpng.so.3.44.0
-rw-r--r--   1 bin      bin       196006 Jul 13  2010 libpng12.a
-rwxr-xr-x   1 bin      bin         1172 Jul 13  2010 libpng12.la
lrwxrwxrwx   1 root     root          18 Jun  5 09:15 libpng12.so -> libpng12.so.0.44.0
lrwxrwxrwx   1 root     root          18 Jul 27 19:11 libpng12.so.0 -> libpng12.so.0.44.0
-rwxr-xr-x   1 bin      bin       169473 Jul 13  2010 libpng12.so.0.44.0
Thanks for the pointers
 
Old 08-01-2011, 01:05 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
are you sure that "/usr/local/lib" is in the system path ?
/usr/local might not be

Apache & php5 might be looking in /usr/lib for libpng
 
Old 08-01-2011, 01:25 PM   #8
pliqui
Member
 
Registered: Feb 2007
Location: Caracas, Venezuela
Distribution: Debian x64
Posts: 156

Original Poster
Rep: Reputation: 17
Hey Jhon,

Really appreciate your time here

Actually i was checking that, i just modified with crle and put /usr/local/lib first and /usr/lib at last

Code:
bash-3.00# crle

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

Command line:
  crle -c /var/ld/ld.config -l /lib:/usr/local/lib:/usr/lib
In addition, these are my new compiling parameters, in blue the changed i made

Code:
CC="/opt/solstudio12.2/bin/cc" CFLAGS="-xtarget=generic -m32" CXX="CC" CXXFLAGS="-xtarget=generic -m32" LDFLAGS="-m32" ./configure --prefix=/opt/php5 \
--with-apxs2=/opt/apache2/bin/apxs \
--with-config-file-path=/opt/php5/etc \
--with-libdir=/usr/local/lib \
--enable-ftp \
--with-zlib-dir \
--enable-mbstring \
--enable-exif \
--enable-sockets \
--with-xmlrpc \
--enable-soap \
--with-oci8=instantclient,/opt/instantclient_10_2,10.2.0.5.0 \
--with-pdo-oci=instantclient,/opt/instantclient_10_2,10.2.0.5.0 \
--with-openssl=/usr/local/ssl \
--with-gd=/usr/local/lib \
--with-jpeg-dir \
--with-png-dir \
--with-freetype-dir \
--enable-sigchild \
--with-xml \
--enable-bcmath \
--enable-track-vars \
--enable-trans-sid \
--enable-calendar \
--without-pear
Thanks and anything you could think of, will check it right away, this thing its getting me crazy

Edit: Found something, if i tried to use this option
Code:
--with-libdir=/usr/local/lib
this error appear configure: error: Cannot find OpenSSL's libraries and the same with jpeg

but if i set

Code:
--with-libdir=lib
the compile works fine

Last edited by pliqui; 08-01-2011 at 03:20 PM.
 
Old 08-01-2011, 04:54 PM   #9
pliqui
Member
 
Registered: Feb 2007
Location: Caracas, Venezuela
Distribution: Debian x64
Posts: 156

Original Poster
Rep: Reputation: 17
I make it work, i tried the compilation without the --with-libdir option and worked

Waiting for the developer to test it and will inform
 
Old 08-02-2011, 03:30 PM   #10
pliqui
Member
 
Registered: Feb 2007
Location: Caracas, Venezuela
Distribution: Debian x64
Posts: 156

Original Poster
Rep: Reputation: 17
Developer test the new config and worked, indeed had to remove the --with-libdir and point all the rest to /usr/local

Will add the compiling parameters that worked.

Code:
CC="/opt/solstudio12.2/bin/cc" CFLAGS="-xtarget=generic -m32" CXX="CC" CXXFLAGS="-xtarget=generic -m32" LDFLAGS="-m32" ./configure --prefix=/opt/php5 \
--with-apxs2=/opt/apache2/bin/apxs \
--with-config-file-path=/opt/php5/etc \
--enable-ftp \
--with-zlib-dir \
--enable-mbstring \
--enable-exif \
--enable-sockets \
--with-xmlrpc \
--enable-soap \
--with-oci8=instantclient,/opt/instantclient_10_2,10.2.0.5.0 \
--with-pdo-oci=instantclient,/opt/instantclient_10_2,10.2.0.5.0 \
--with-openssl=/usr/local/ssl \
--with-gd=/usr/local \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-freetype-dir=/usr/local \
--enable-sigchild \
--with-xml \
--enable-bcmath \
--enable-track-vars \
--enable-trans-sid \
--enable-calendar \
--without-pear
Thanks for all the help

Last edited by pliqui; 08-02-2011 at 03:34 PM.
 
  


Reply

Tags
apache2, compiling, php5



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
libpng12.so.0: cannot open shared object file: No such file or directory MTK358 Linux - Newbie 12 02-15-2010 01:52 PM
[SOLVED] When installing lilo I got error: "Fatal: open proc: Is a directory ethereal1m Linux - Newbie 1 01-24-2010 07:18 AM
fatal: libncurses.so.5: open failed: No such file or directory xpucto Solaris / OpenSolaris 8 09-08-2007 01:26 AM
awk: fatal:cannot open file for reading (no such file or Directory) in Linux sangati vishwanath Linux - Software 4 07-06-2005 12:59 AM
postfix: fatal: gethostbyname: No such file or directory cellist Linux - Networking 2 04-16-2004 09:21 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 07:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration