OpenWrt Forum Archive

Topic: mysqlclient and zlib

The content of this topic has been archived on 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

I've been trying to get a simple test program with lib mysqlclient to compile with mipsel-linux-uclibc, all other things I coded work fine, but it seems that when I try to include -lmysqlclient it tells me that it can not find zlib, the output it gives is

warning: libz.so.1, needed by /home/jade/temp/openwrt/staging_dir_mipsel/usr/lib/mysql/libmysqlclient.so, not found (try using -rpath or -rpath-link)

lib mysqlclient works fine cause the 2 error msgs after it say

/home/jade/temp/openwrt/staging_dir_mipsel/usr/lib/mysql/libmysqlclient.so: undefined reference to `uncompress'
/home/jade/temp/openwrt/staging_dir_mipsel/usr/lib/mysql/libmysqlclient.so: undefined reference to `compress'

and thats obvious since thats from zlib.

I couldnt find anything about it on the forms or wiki nor the irc logs so after some trying I figured that somebody here might know what is going wrong here, could it be i'm missing an eviorment path?

oke, figured it out myself at the end, for anyone that would want to know, adding -Xlinker -rpath-link etc to the compile command fixes it, i suppose it was obvious from the start smile

The discussion might have continued from here.