seasocks
seasocks copied to clipboard
issues of seasocks' dependency on libz
This might or might not related to seasocks, because I can build seasocks source w/o problem. Only when I built another program that depends on seasocks I got this:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libseasocks.a(ZlibContext.cpp.o): undefined reference to symbol 'inflateEnd' //lib/x86_64-linux-gnu/libz.so.1: error adding symbols: DSO missing from command line
from my earlier note it seemed that an earlier version of seasocks could bypass this issue.
my libz is libz.so.1.2.11
any ideas?
Did you link zlib to your program? By default seasocks is built with deflate support enabled. If you don't need it, you can disable it by setting DEFLATE_SUPPORT to OFF. This gives you the same behaviour as earlier versions and doesn't require any dependencies.
@entrepidea does this answer your question? You can also try linking zlib statically, if disabling it isn't appropriate for you.
I think this is the same error as I encountered and fixed in #108.