Re: Solaris 8 libmysqlclient.so problem
| From: | Rasmus Lerdorf | Date: | Wed, 27 Mar 2002 15:24:59 +0000 |
| Subject: | Re: Solaris 8 libmysqlclient.so problem | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-6492@lists.php.net to get a copy of this message | ||
Add --with-zlib to your PHP configure line
On Wed, 27 Mar 2002, Duane Gran wrote:
> PHP List members:
>
> I installed MySQL sucessfully on Solaris 8 and am trying to configure
> PHP with the following flags:
>
> ./configure \
> --with-mysql=/usr/local/mysql \
> --with-gd=/usr/local \
> --with-zlib-dir=/usr/local \
> --with-png-dir=/usr/local \
> --with-apxs=/usr/local/apache/bin/apxs \
> --enable-track-vars \
> --enable-ftp
>
> The debug log contains the following:
>
> CONFIGURE: './configure' '--with-mysql=/usr/local/mysql' '--with-
> gd=/usr/local
> ' '--with-zlib-dir=/usr/local' '--with-png-dir=/usr/local'
> '--with-
> apxs=/usr/loc
> al/apache/bin/apxs' '--enable-track-vars' '--enable-ftp'
> CC: gcc
> CFLAGS: -g -O2
> CPPFLAGS: -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=280 -DUSE_EXPAT
> CXX:
> CXXFLAGS:
> INCLUDES: -I/usr/local/apache/include -I$(top_builddir)/Zend
> -I/usr/local/in
> clude -I/usr/local/mysql/include/mysql
> LDFLAGS: -R/usr/ucblib -L/usr/ucblib -R/usr/local/lib/gcc-
> lib/sparc-sun-sola
> ris2.8/2.95.3 -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3
> -R/usr/local/
> lib -L/usr/local/lib -R/usr/local/mysql/lib/mysql
> -L/usr/local/mysql/lib/mysql
> LIBS: -lmysqlclient -lz -lgd -lpng -lz -lz -lcrypt -lresolv
> -lresolv -lres
> olv -lm -ldl -lsocket -lsocket -lgcc -lcrypt
> DLIBS:
> SAPI: apache
> PHP_RPATHS: /usr/ucblib /usr/local/lib/gcc-lib/sparc-sun-
> solaris2.8/2.95.3 /usr
> /local/lib /usr/local/mysql/lib/mysql
> uname -a: SunOS sauron 5.8 Generic_108528-09 sun4u sparc
> SUNW,UltraAX-i2
>
> gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=280
> -DUSE_EXPAT -
> R/usr/ucblib -L/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-
> solaris2.8/2.95.3
> -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3 -R/usr/local/lib
> -L/usr/loc
> al/lib -R/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql
> conftest.c -lmy
> sqlclient -lz -lgd -lpng -lz -lz -lcrypt -lresolv -lresolv -lresolv -lm
> -ldl -ls
> ocket -lsocket -lgcc -lcrypt 1>&5
> /usr/local/mysql/lib/mysql/libmysqlclient.so: undefined reference to
> `compress@S
> UNW_1.1'
> /usr/local/mysql/lib/mysql/libmysqlclient.so: undefined reference to
> `uncompress
> @SUNW_1.1'
> collect2: ld returned 1 exit status
>
> The last few lines seem to be the problematic area. I searched the
> mailing list but didn't see this one come up anywhere and I'm a little
> puzzled. Can anyone shed some light on this? Many thanks in advance.
>
> Duane Gran
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>