Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #35400 : PHP 5.0.5/ 5.1 compile fails when linked with mysql
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 10th June 23:29
php-bugs@lists.php.net (me at thomaskeller dot
External User
 
Posts: 1
Default #35400 : PHP 5.0.5/ 5.1 compile fails when linked with mysql



From: me at thomaskeller dot biz
Operating system: FC2, FC4
PHP version: 5.1.0
PHP Bug Type: Compile Failure
Bug description: PHP 5.0.5/ 5.1 compile fails when linked with mysql

Description:
------------
Hi!

I'm trying to compile PHP5 (5.0.5 and 5.1.0) since several days on two
different machines (one VPS Server with FC2 on Kernel 2.4, one FC4 machine
with Kernel 2.6).

This is my configure command for the FC4 machine (only thing which changed
in comparison to the FC2 configure is the path to apxs since this is
installed somewhere different on FC2):

../configure --with-apxs2=/usr/sbin/apxs --disable-cgi --enable-bcmath
--with-bz2 --enable-exif --with-gd --with-freetype-dir=/usr
--enable-gd-native-ttf --with-mcrypt --enable-shmop --enable-soap
--enable-sockets --without-sqlite --with-xmlrpc --with-pear=/usr/share/php
--with-mysqli=/usr/bin/mysql_config --with-mysql=/usr/lib/mysql
--with-zlib-dir=/usr/lib

The configure itself runs through, while the linkage fails with

/bin/sh /data/download/php-5.1.0/libtool --silent --preserve-dup-deps
--mode=link gcc -g -O2 -prefer-non-pic -rpath
/data/download/php-5.1.0/libs -avoid-version -module -L/usr/lib/mysql -R
/usr/lib/mysql ext/libxml/libxml.lo
[... many more *.lo files ...]
main/internal_functions.lo -lcrypt -lcrypt -lmysqlclient -lmcrypt
-lfreetype -lpng -lz -lbz2 -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm
-lxml2 -lz -lm -lmysqlclient -lz -lcrypt -lnsl -lm -lxml2 -lz -lm -lxml2
-lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -o libphp5.la
grep: /usr/lib/mysql/libz.la: No such file or directory
/bin/sed: can't read /usr/lib/mysql/libz.la: No such file or directory
libtool: link: `/usr/lib/mysql/libz.la' is not a valid libtool archive
make: *** [libphp5.la] Fehler 1

Now, indeed there is no libz.la file in /usr/lib/mysql. These are the
contents of it:

[root@tidikay php-5.1.0]# ll /usr/lib/mysql
insgesamt 6800
-rw-r--r-- 1 root root 11068 17. Nov 01:17 libdbug.a
-rw-r--r-- 1 root root 45274 17. Nov 01:17 libheap.a
-rw-r--r-- 1 root root 57872 17. Nov 01:17 libmygcc.a
-rw-r--r-- 1 root root 343028 17. Nov 01:17 libmyisam.a
-rw-r--r-- 1 root root 26802 17. Nov 01:17 libmyisammrg.a
-rw-r--r-- 1 root root 1457414 17. Nov 01:17 libmysqlclient.a
-rwxr-xr-x 1 root root 821 17. Nov 01:17 libmysqlclient.la
-rw-r--r-- 1 root root 1465244 17. Nov 01:17 libmysqlclient_r.a
-rwxr-xr-x 1 root root 847 17. Nov 01:17 libmysqlclient_r.la
-rw-r--r-- 1 root root 1211008 17. Nov 01:17 libmystrings.a
-rw-r--r-- 1 root root 294132 17. Nov 01:17 libmysys.a
-rw-r--r-- 1 root root 1339668 17. Nov 01:17 libndbclient.a
-rwxr-xr-x 1 root root 1043 17. Nov 00:16 libndbclient.la
-rw-r--r-- 1 root root 6840 17. Nov 01:17 libvio.a
-rw-r--r-- 1 root root 576131 17. Nov 01:17 mysqld.sym

As far as I know the libtool archive is created for a project if its build
with automake, but the zlib sources aren't using automake at all. I tried
to create my own libz.la based on "guessed" values, but that didn't seem
to work.

I also tried to do the following things on php5's configure:

a) omit --with-zlib-dir completly -> configure told me it needs zlib for
png
b) only use --with-zlib -> libtool error above
c) point --with-zlib-dir to /usr -> libtool error above
d) point --with-zlib-dir to the downloaded and extracted sources of
zlib-1.2.3 -> libtool error above

I need to state that I have both, zlib and zlib-devel installed on both
systems, as well as the MySQL 5.0.16 packages -devel, -shared-compat,
-client and -server.

So *what* is needed to get this baby compiled properly with zlib, png
mysql and mysqli?

--
Edit bug report at http://bugs.php.net/?id=35400&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35400&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35400&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35400&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=35400&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35400&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35400&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35400&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35400&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35400&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35400&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35400&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35400&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35400&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35400&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35400&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35400&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35400&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35400&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35400&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35400&r=mysqlcfg
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666