ID: 35400 User updated by: me at thomaskeller dot biz Reported By: me at thomaskeller dot biz -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: FC2, FC4 PHP Version: 5.1.0 New Comment:
The error still occurs with the build from 2005-11-25 23:30: 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 The configure command was the same I used above. Btw.... I noticed a lot of gcc warnings through all compilations on my FC4 machine. I doubt it has todo with the actual error, but I still want you to know: /data/download/php5-200511252330/ext/pdo_sqlite/sqlite/src/expr.c:2059: warning: pointer targets in passing argument 2 of 'sqlite3StrNICmp' differ in signedness I'm using gcc 4.0.1: $ gcc -v Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --host=i386-redhat-linux Thread-Modell: posix gcc-Version 4.0.1 20050727 (Red Hat 4.0.1-5) Previous Comments: ------------------------------------------------------------------------ [2005-11-26 01:29:31] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ------------------------------------------------------------------------ [2005-11-25 22:53:21] me at thomaskeller dot biz 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: [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=35400&edit=1