php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12420 lmysqlclient: no reference for compress and uncompress
Submitted: 2001-07-27 08:34 UTC Modified: 2001-07-27 23:33 UTC
From: ivo at nzol dot net dot nz Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.6 OS: mandrake 7.1
Private report: No CVE-ID: None
 [2001-07-27 08:34 UTC] ivo at nzol dot net dot nz
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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-27 23:33 UTC] sniper@php.net
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..)

--Jani


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 00:01:32 2024 UTC