seasocks icon indicating copy to clipboard operation
seasocks copied to clipboard

issues of seasocks' dependency on libz

Open entrepidea opened this issue 7 years ago • 3 comments

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?

entrepidea avatar Mar 09 '18 05:03 entrepidea

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.

offa avatar Mar 13 '18 20:03 offa

@entrepidea does this answer your question? You can also try linking zlib statically, if disabling it isn't appropriate for you.

mattgodbolt avatar May 28 '18 15:05 mattgodbolt

I think this is the same error as I encountered and fixed in #108.

iwanders avatar Jan 06 '19 14:01 iwanders