Re: 4.0.3p1 compile error: libmysqlclient.so: undefined reference to `compress'
| From: | hennink at patrijs dot max dot nl | Date: | Tue, 17 Oct 2000 09:32:22 +0000 |
| Subject: | Re: 4.0.3p1 compile error: libmysqlclient.so: undefined reference to `compress' | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-20586@lists.php.net to get a copy of this message | ||
Hi,
check your /etc/ld.so.conf for a line pointing to libmysqlclient.a
e.g.
/usr/local/lib/mysql
with regards,
Tijmen
On Tue, 17 Oct 2000, netbsd alpha wrote:
> netbsd/alpha 1.5-current
> mysql 3.23.25-beta compiled fine with this:
> ./configure \
> --prefix=/usr/local/install/mysql-3.23.25-beta \
> --localstatedir=/var/mysql \
> --with-mit-threads \
> --with-low-memory \
> --with-named-curses=curses \
> --with-named-z-libs=z
>
> here is the snip from php configure debug.log
>
> ---cut---
> # more debug.log
> CONFIGURE: './configure' '--with-apxs'
> '--with-gdbm=/usr/pkg'
> '--with-mysql=/usr/local/install/
> mysql-3.23.25-beta' '--enable-libgcc' '--with-gnu-ld'
> '--with-zlib' '--enable-debug'
> CC: gcc
> CFLAGS: -g -O2
> CPPFLAGS: -DEAPI -I/usr/pkg/include
> CXX:
> CXXFLAGS:
> INCLUDES: -I/usr/pkg/include/httpd
> -I$(top_builddir)/Zend -I$(top_srcdir)
> -I/usr/pkg/include
> -I/usr/local/install/mysql-3.23.25-beta/include/mysql
> LDFLAGS: -L/usr/pkg/lib -R/usr/pkg/lib
> -L/usr/pkg/lib -R/usr/local/install/mysql-3.23.25-beta
> /lib/mysql
> -L/usr/local/install/mysql-3.23.25-beta/lib/mysql
> LIBS: -lmysqlclient -lgdbm -lresolv -lm -lcrypt
> -lresolv -lgcc
> DLIBS:
> SAPI: apache
> PHP_RPATHS: /usr/pkg/lib
> /usr/local/install/mysql-3.23.25-beta/lib/mysql
> uname -a: NetBSD ns01 1.5_ALPHA2 NetBSD 1.5_ALPHA2
> (ALPHA-$Revision: 1.127.2.2 $) #5: Tue Oct
> 3 17:37:31 CDT 2000
> tom@ns01:/usr/src/sys/arch/alpha/compile/ns01-new
> alpha
>
> gcc -o conftest -g -O2 -DEAPI -I/usr/pkg/include
> -L/usr/pkg/lib -R/usr/pkg/lib -L/usr/pkg/lib -
> R/usr/local/install/mysql-3.23.25-beta/lib/mysql
> -L/usr/local/install/mysql-3.23.25-beta/lib/mysq
> l conftest.c -lmysqlclient -lgdbm -lresolv -lm -lcrypt
> -lresolv -lgcc 1>&5
> /usr/local/install/mysql-3.23.25-beta/lib/mysql/libmysqlclient.so:
> warning: tempnam() possibly us
> ed unsafely, use mkstemp() or mkdtemp()
> /usr/local/install/mysql-3.23.25-beta/lib/mysql/libmysqlclient.so:
> undefined reference to `uncomp
> ress'
> /usr/local/install/mysql-3.23.25-beta/lib/mysql/libmysqlclient.so:
> undefined reference to `compre
> ss'
> collect2: ld returned 1 exit status
> ---cut---
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Messenger - Talk while you surf! It's FREE.
> http://im.yahoo.com/
>
>
--
Customer: I'm running Windows '98
Tech: Yes.
Customer: My computer isn't working now.
Tech: Yes, you said that.