[csw-users] php5 and mysql5 and SUNW libz
Guy D
dy2t7t at gmail.com
Tue Aug 15 16:37:30 CEST 2006
Hello,
I am running a newly installed Solaris 10 6/06 system and appreciate
all the high quality work that goes into all the CSW packages.
I want to use php5 with a mysql 5 database.
The php5_mysql and php5_mysqli packages have dependencies on mysql4, though:
$ ldd /opt/csw/php5/lib/php/extensions/no-debug-non-zts-20050922/mysql.so
libmysqlclient.so.14 => /opt/csw/mysql4/lib/mysql/libmysqlclient.so.14
...
But, when I examined the configuration of CSW's php5 at
http://svn.blastwave.org/browser/csw/trunk/lang/php5/files/config.mk
it looked like it should be linked against mysql5 libraries:
...
CONFIGURE_ARGS += --with-mysql=shared,$(prefix)/mysql5
CONFIGURE_ARGS += --with-mysqli=shared,$(prefix)/mysql5/bin/mysql_config
...
So, I am wondering why the php extensions do not seem to be linked
against the mysql 5 libraries. If they were, would a mysql4 database
still be able to be used with it?
On an unrelated note, I notice a dependency on a SUNW library in the
"gd" php5 extension:
$ ldd /opt/csw/php5/lib/php/extensions/no-debug-non-zts-20050922/gd.so
libgd.so.2 => /opt/csw/lib/sparcv8plus+vis/libgd.so.2
libt1.so.5 => /opt/csw/lib/sparcv8/libt1.so.5
libfreetype.so.6 => /opt/csw/lib/sparcv8/libfreetype.so.6
libX11.so.4 => /usr/lib/libX11.so.4
libXpm.so.4.11 => /opt/csw/lib/sparcv8plus+vis/libXpm.so.4.11
libpng.so.3 => /opt/csw/lib/sparcv8plus+vis/libpng.so.3
libz.so => /opt/csw/lib/sparcv8plus+vis/libz.so
libjpeg.so.62 => /opt/csw/lib/sparcv8plus+vis/libjpeg.so.62
libc.so.1 => /lib/libc.so.1
libfontconfig.so.1 => /opt/csw/lib/sparcv8/libfontconfig.so.1
libpng12.so.0 => /opt/csw/lib/sparcv8plus+vis/libpng12.so.0
libm.so.1 => /lib/libm.so.1
libz.so.1 => /opt/csw/lib/libz.so.1
libz.so.1 (SUNW_1.1) => (version not found)
libsocket.so.1 => /lib/libsocket.so.1
libnsl.so.1 => /lib/libnsl.so.1
libXext.so.0 => /usr/openwin/lib/libXext.so.0
libdl.so.1 => /lib/libdl.so.1
libiconv.so.2 => /opt/csw/lib/sparcv8/libiconv.so.2
libexpat.so.0 => /opt/csw/lib/sparcv8/libexpat.so.0
libmp.so.2 => /lib/libmp.so.2
libmd5.so.1 => /lib/libmd5.so.1
libscf.so.1 => /lib/libscf.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
libm.so.2 => /lib/libm.so.2
/platform/SUNW,Ultra-4/lib/libc_psr.so.1
/platform/SUNW,Ultra-4/lib/libmd5_psr.so.1
Why does the libz.so appear twice and linked to two different
libraries? What is the significance of the "libz.so.1 (SUNW_1.1)" one
and the fact that it reports that it cannot find a proper version?
Thanks for any insight.
-Doug
More information about the users
mailing list