Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No compatibility with OpenSSL 3? #528

Open
h4rp00n33r opened this issue Apr 30, 2024 · 4 comments
Open

No compatibility with OpenSSL 3? #528

h4rp00n33r opened this issue Apr 30, 2024 · 4 comments

Comments

@h4rp00n33r
Copy link

Hey folks,

I tried to run AirConnect on my Debian 12 server. Debian 12 comes with OpenSSL 3 and libssl1.1 is not in the repositories anymore. So I could add libssl1.1 manually (#522) but I'm a little bit concerned about security aspects (running an outdated libssl version without support).

So I have two questions:

  1. Is there no chance to get AirConnect running with libssl3?
  2. Which libssl-Version is included in the static-version?

Thanks and greetings from Germany.

@philippe44
Copy link
Owner

I'll have to have a look at OpenSSL 3 and how to get compatibility. I think I've compiled the static version against 1.1.x

@h4rp00n33r
Copy link
Author

Okay thanks a lot. Do you want me to keep this issue open in order to track it?

@philippe44
Copy link
Owner

Yes please

@yang573
Copy link

yang573 commented Feb 18, 2025

For any Debian/Ubuntu users

I was able to compile this dynamically by installing libssl-dev and linking with -lssl -lcrypto. To compile it statically, I also had to install libzstd-dev and zlib1g-dev, and linked with -lssl -lcrypto -lzstd -lz -static-libgcc. Unfortunately, I don't know how portable this is because I get the following warnings related to the crypto library:

x86_64-linux-gnu-gcc-14 ../bin/linux/x86_64/castcore.o ../bin/linux/x86_64/castmessage.pb.o ../bin/linux/x86_64/aircast.o ../bin/linux/x86_64/cast_util.o ../bin/linux/x86_64/cast_parse.o ../bin/linux/x86_64/config_cast.o ../bin/linux/x86_64/cross_util.o ../bin/linux/x86_64/cross_log.o ../bin/linux/x86_64/cross_net.o ../bin/linux/x86_64/cross_thread.o ../bin/linux/x86_64/platform.o ../bin/linux/x86_64/pb_common.o ../bin/linux/x86_64/pb_decode.o ../bin/linux/x86_64/pb_encode.o ../bin/linux/x86_64/cross_ssl-static.o  ../common/libraop/targets/linux/x86_64/libraop.a ../common/libpupnp/targets/linux/x86_64/libpupnp.a ../common/libcodecs/targets/linux/x86_64/libcodecs.a ../common/libmdns/targets/linux/x86_64/libmdns.a libjansson/targets/linux/x86_64/libjansson.a  -Wno-deprecated-declarations -Wno-format-truncation -Wno-stringop-truncation  -Wall -fPIC -ggdb -O2 -D_FILE_OFFSET_BITS=64 -DPB_FIELD_16BIT -DNDEBUG -D_GNU_SOURCE -DUPNP_STATIC_LIB -fdata-sections -ffunction-sections -std=gnu11 -lssl -lcrypto -lzstd -lz -s -lpthread -ldl -lm -L.  -static -static-libgcc -o ../bin/aircast-linux-x86_64-static
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/libcrypto.a(libcrypto-lib-dso_dlfcn.o): in function `dlfcn_globallookup':
(.text+0x1f): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/libcrypto.a(libcrypto-lib-bio_addr.o): in function `BIO_lookup_ex':
(.text+0xe15): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/libcrypto.a(libcrypto-lib-bio_sock.o): in function `BIO_gethostbyname':
(.text+0x85): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants