apib icon indicating copy to clipboard operation
apib copied to clipboard

Changes required to build on Debian 11 "Bullseye"

Open shapirus opened this issue 4 years ago • 2 comments

FWIW, to avoid errors (missing libs) at the linker stage, I had to replace -lcrypto.1.1 with -lcrypto and -lssl.1.1 with -lssl. This fixes the following errors:

/usr/bin/ld: cannot find -lssl.1.1
/usr/bin/ld: cannot find -lcrypto.1.1

After that, there was another error:

/usr/bin/ld: CMakeFiles/io.dir/apib_iothread.cc.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
/usr/bin/ld: /lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line

This was fixed by adding the -pthread flag in the linker stage.

shapirus avatar Nov 23 '21 09:11 shapirus

Thank you for the hints. The same applies to Debian 12 bookworm.

sebix avatar Oct 30 '23 12:10 sebix

I'm glad that you all had a chance to work on this. Is there a chance that either of you could contribute a PR for the necessary changes to the cmake stuff? I'm no longer at Apigee or Google and I'm not sure that I'll be able to merge them, but if no one responds I may fork this project since I still use it in other contexts!

gbrail avatar Oct 30 '23 20:10 gbrail