Hmm, from Google:

On Tue, May 16, 2000 at 05:10:40PM +0900, [EMAIL PROTECTED] wrote:
> [root@cboss cboss]# gcc -g -o test test.c -L/usr/lib/mysql -lmysqlclient
> 
> /usr/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_uncompress':
> my_compress.o(.text+0x97): undefined reference to `uncompress'
> /usr/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_compress_alloc':
> my_compress.o(.text+0x12b): undefined reference to `compress'
> collect2: ld returned 1 exit status

You need to add -lz to your command line when you link.

Tim
-- 
Tim Smith   < [EMAIL PROTECTED] >  :MySQL Development Team:  Boone, NC  USA.


So, I guess I'd better start hand-editting the kannel makefile????
Unless someone knows which option I got wrong ...

> 
> From: "Rene Kluwen / Chimit Software Solutions" <[EMAIL PROTECTED]>
> Date: Mon 14/Oct/2002 19:28 GMT
> To: <[EMAIL PROTECTED]>,  <[EMAIL PROTECTED]>
> CC: "Oded Arbel" <[EMAIL PROTECTED]>
> Subject: Re: RE: Kannel runtime doesn't think MySql is built in but build thinks it 
>is?
> 
> An infamous -lz (zlib) problem.
> Upgrade your zlib... I am not sure which version at minimum you will have to
> have... But 1.0.9 should work at least...
> 
> -- Rene...
> 
> 
> --------
> This email message has been automatically scanned for viri using Sophos
> antivirus.
> --------
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: "Oded Arbel" <[EMAIL PROTECTED]>
> Sent: Monday, October 14, 2002 8:55 PM
> Subject: Re: RE: Kannel runtime doesn't think MySql is built in but build
> thinks it is?
> 
> 
> > Boy I'm having fun tonight :-(
> >
> > First, I got past the dlr problem, I was using --enable-mysql-dlr instead
> of --with-dlr=mysql as the ./configure param.
> > Great, got past that and now even get a new message confirming "dlr=mysql"
> during the build!
> > However, now it doesn't create any executables because it fails with this:
> >
> >
> gcc -D_REENTRANT=1 -I. -Igw -g -O2 -I/usr/include/libxml2/libxml -I/usr/incl
> ude/
> > libxml2 -I/usr/include/openssl -I/usr/local/include/mysql  -o
> gw/bearerbox.exe g
> > w/bearerbox.o libgw.a libwmlscript.a libwap.a
> libgwlib.a -lssl -lpthread -lm  -L
> >
> /usr/lib -lxml2 -lz -lm -L/usr/lib -lcrypto -lssl -L/usr/local/lib/mysql -lm
> ysql
> > client
> >
> /usr/local/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0xa2):my_compress
> .c:
> > undefined reference to `uncompress'
> >
> /usr/local/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x13a):my_compres
> s.c:
> >  undefined reference to `compress'
> > collect2: ld returned 1 exit status
> > make: *** [gw/bearerbox.exe] Error 1
> >
> gcc -D_REENTRANT=1 -I. -Igw -g -O2 -I/usr/include/libxml2/libxml -I/usr/incl
> ude/
> > libxml2 -I/usr/include/openssl -I/usr/local/include/mysql  -o
> gw/bearerbox.exe g
> > w/bearerbox.o libgw.a libwmlscript.a libwap.a
> libgwlib.a -lssl -lpthread -lm  -L
> >
> /usr/lib -lxml2 -lz -lm -L/usr/lib -lcrypto -lssl -L/usr/local/lib/mysql -lm
> ysql
> > client
> >
> /usr/local/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0xa2):my_compress
> .c:
> > undefined reference to `uncompress'
> >
> /usr/local/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x13a):my_compres
> s.c:
> >  undefined reference to `compress'
> > collect2: ld returned 1 exit status
> > make: *** [gw/bearerbox.exe] Error 1
> >
> >
> > Whats all this "uncompress/compress" stuff ? Anyone please ?
> >
> > Thanks for all help so far, hope it saves other newbies reading these
> messages now or in the future some grief!!!
> >
> >
> > _______________________________________________________________________
> > Freeserve AnyTime, only �13.99 per month with one month's FREE trial!
> > For more information visit http://www.freeserve.com/time/ or call free on
> 0800 970 8890
> >
> >
> >
> 
> 
> 


_______________________________________________________________________
Freeserve AnyTime, only �13.99 per month with one month's FREE trial!
For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890



Reply via email to