Re: 4.0.3p1 compile error: libmysqlclient.so: undefined reference to `compress'

From: Date: Thu, 19 Oct 2000 21:48:34 +0000
Subject: Re: 4.0.3p1 compile error: libmysqlclient.so: undefined reference to `compress'
Groups: php.general 
Request: Send a blank email to php-general+get-21281@lists.php.net to get a copy of this message
i've verified that --with-named-z-libs=z doesn't work on NetBSD/Alpha 1.5_ALPHA2. using that option, after the library is compiled, nm reports COMPRESS and UNCOMPRESS undefined. however, if i use these options: --with-mysqld-ldflags="-lz" \ --with-client-ldflags="-lz" \ then it gets libz compiled in just fine. NetBSD does have libz newer than what was required. perhaps there is a bug in the configure script? --- Joe Brown <joebrown@somewhere.com> wrote: > I keep getting that when compling apache. > > Have not used: --with-named-z-libs=z > > I've resorted editing the apache/src/Makefile > > It works for me when I add -lz to the line > EXTRALIBS = -lz > > > "netbsd alpha" <netbsd_alpha@yahoo.com> wrote in > message > news:20001017092439.9621.qmail@web9608.mail.yahoo.com... > > 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/ > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: > php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: > php-general-help@lists.php.net > > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-general-unsubscribe@lists.php.net > For additional commands, e-mail: > php-general-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/

« previous php.general (#21281) next »