ID: 12420
Updated by: sniper
Old Status: Open
Status: Closed
Bug Type: Compile Failure
Operating System: mandrake 7.1
PHP Version: 4.0.6
New Comment:

Just do this (for PHP):

$ rm config.cache
$ ./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.x --with-zlib
$ make clean ; make ; make install

(and then the apache steps..)


Previous Comments:

[2001-07-27 08:34:35] [EMAIL PROTECTED]

I tried to install php as static module to apache.
But there was a problem in the libmysqlclient.
How can I fix it?
If you tell me: "add -lz last when linking with lmysqlclient", can you
tell me then where to add -lz?

command-line history:

        $ tar -vxzf apache_1.3.20.tar.gz 
        $ cd apache_1.3.20
        $ ./configure
        $ cd ..

        $ tar -vxzf  php-4.0.6.tar.gz 
        $ cd php-4.0.6
        $ ./configure --with-mysql=/usr/local/mysql
        --with-apache=../apache_1.3.x --enable-track-vars 
        $ make
        $ make install

        $ cd ../apache_1.3.20
        $ ./configure --prefix=/usr/local/apache\
        $ make  


        /usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function
        `my_uncompress': my_compress.o(.text+0x9a): undefined reference to
        `uncompress' /usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In
        function `my_compress_alloc': my_compress.o(.text+0x12a): undefined
        reference to `compress' collect2: ld returned 1 exit status
        make[2]: *** [target_static] Error 1
        make[1]: *** [build-std] Error 2
        make: *** [build] Error 2

kind regards



Edit this bug report at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to