Dave Juntgen wrote:
> 
> I am unable to link libmysqlclient staticlly.  I have tryed everything I
> could have thought, please look at the linking below, I tried to look for
> the file my_compress.o and my file system and I was unable to find it.
> 
> gcc -g -Wall -O6 -static  -o webchart.cgi -L../../mieutils/linux/lib
> ../../mieutils/linux/olddbmysql.o logininfo.o uuencode.o header
> s.o search.o storage.o dbbuffer.o webchart.o interface.o login.o typeutils.o
> topmenu.o sidemenu.o help.o popup.o barcode.o scheduler
> .o schedulerdb.o docdelete.o docprops.o doclocks.o wcdemo.o wctran.o
> tiffviewer.o wcnotes.o omniscope.o summary.o esign.o matchdocs.
> o echartdb.o chart.o newdoc.o docqueue.o upload.o reports.o docmover.o
> orders.o patmerge.o admin.o settings.o colors.o userwatch.o a
> ctivitylog.o translate.o tabmanager.o controldb.o directory.o printqueuedb.o
> printqueue.o tasklist.o -lmie \
> -Lgd -lgd  -lcrypt -lz -lmysqlclient
> /usr/bin/../lib/libmysqlclient.a(my_compress.o): In function
> `my_uncompress':
> my_compress.o(.text+0x99): undefined reference to `uncompress'
> /usr/bin/../lib/libmysqlclient.a(my_compress.o): In function
> `my_compress_alloc':
> my_compress.o(.text+0x128): undefined reference to `compress'
> collect2: ld returned 1 exit status
> 
> Thank you all...
> 
Put the -lz after the -lmysqlclient, and make sure you have zlib.a,
not zlib.so.

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to