From:             [EMAIL PROTECTED]
Operating system: mandrake 7.1
PHP version:      4.0.6
PHP Bug Type:     Compile Failure
Bug description:  lmysqlclient: no reference for compress and uncompress

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\
        --activate-module=src/modules/php4/libphp4.a  
        $ make  


Error-Message 

        /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

ivo


-- 
Edit bug report at: http://bugs.php.net/?id=12420&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
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