On Sun, Mar 22, 2015 at 09:34:12PM +0100, Matthias Andree wrote: > The strange thing is, on my system the mysqlclient library appears to > include system zlib (10.1-RELEASE amd64): > > $ pkg which /usr/local/lib/mysql/libmysqlclient.so.18 > /usr/local/lib/mysql/libmysqlclient.so.18 was installed by package > mysql55-client-5.5.42 > $ ldd /usr/local/lib/mysql/libmysqlclient.so.18 > /usr/local/lib/mysql/libmysqlclient.so.18: > libz.so.6 => /lib/libz.so.6 (0x801971000) > libm.so.5 => /lib/libm.so.5 (0x801b87000) > libc++.so.1 => /usr/lib/libc++.so.1 (0x801daf000) > libcxxrt.so.1 => /lib/libcxxrt.so.1 (0x802070000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x80228c000) > libthr.so.3 => /lib/libthr.so.3 (0x80249a000) > libc.so.7 => /lib/libc.so.7 (0x80081f000)
That does not mean that there is not also a bunch of zlib code inside that library. Try, "nm -D". I get: $ nm /usr/local/lib/mysql/libmysqlclient.so.18 | egrep 'deflate' 00000000000ece80 T deflate 00000000000ee2c0 T deflateBound 00000000000ee510 T deflateCopy 00000000000ec420 T deflateEnd 00000000000ebf30 T deflateInit2_ 0000000000173ec5 r deflateInit2_.my_version 00000000000ebed0 T deflateInit_ 00000000000eccc0 T deflateParams 00000000000ecc30 T deflatePrime 00000000000ec600 T deflateReset 00000000000ec790 T deflateSetDictionary 00000000000ecbb0 T deflateSetHeader 00000000000ee230 T deflateTune 0000000000173e90 R deflate_copyright 00000000000eecb0 t deflate_fast 00000000000ef4f0 t deflate_slow 00000000000ee890 t deflate_stored Which shows the functions are part of the library and not external references. -- Viktor.