Menu

#3 zlib linker flag missing?

open
nobody
None
5
2002-05-08
2002-05-08
Anonymous
No

Make returned with error during compilation:

c++ -g -O2 -L/usr/lib/mysql -o nicole dictionary.o
vocabulary.o parser.o matrix.o log.o database.o
dbresult.o responder.o nicole.o -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

This was fixed by appending "-lz" to the "LDFLAGS"
variable in src/Makefile

System info: linux 2.4.18, mysql 3.23.29a-1

Discussion


Log in to post a comment.