On 08/07/2017 06:14 PM, Philip Prindeville wrote:
> I’m seeing the following when building bind:
> 
> OpenWrt-libtool: link: x86_64-openwrt-linux-musl-gcc -Os -pipe 
> -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable 
> -Wno-error=unused-result 
> -iremap/home/philipp/bertram/lede/build_dir/target-x86_64_musl_powercode-bmu/bind-9.10.5-P3:bind-9.10.5-P3
>  -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z -Wl,now -Wl,-z -Wl,relro -znow 
> -zrelro -o .libs/resolve .libs/resolve.o  
> -L/home/philipp/bertram/lede/staging_dir/target-x86_64_musl_powercode-bmu/usr/lib
>  
> -L/home/philipp/bertram/lede/staging_dir/target-x86_64_musl_powercode-bmu/lib 
> -L/home/philipp/bertram/lede/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/usr/lib
>  -L/home/philipp/bertram/lede/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/lib 
> ../irs/.libs/libirs.so ../dns/.libs/libdns.so ../isccfg/.libs/libisccfg.so 
> /home/philipp/bertram/lede/build_dir/target-x86_64_musl_powercode-bmu/bind-9.10.5-P3/lib/dns/.libs/libdns.so
>  
> /home/philipp/bertram/lede/build_dir/target-x86_64_musl_powercode-bmu/bind-9.10.5-P3/lib/isc/.libs/libisc.so
>  -lcrypto ../isc/.libs/libisc.so -ldl 
> ../dns/.libs/libdns.so: undefined reference to `ERR_remove_state'
> ../dns/.libs/libdns.so: undefined reference to `CRYPTO_set_id_callback'
> collect2: error: ld returned 1 exit status
> Makefile:483: recipe for target 'resolve' failed
> make[5]: *** [resolve] Error 1
> 
> anyone else seeing this?
> 
> I think a patch shouldn’t be too complicated, but I’m surprised that the 
> buildbots didn’t catch this.
> 
> -Philip

Hmm, I wonder if the linker is picking up your host system libcrypto
instead of the target build. Does your staging_dir/target-.../usr/lib have
a libcrypto.so (that is a symlink to libcrypto.so.1.0.0)?

CRYPTO_set_id_callback has been removed in OpenSSL 1.1. I don't have an
explanation for ERR_remove_state though, at least the OpenSSL 1.1 on my
system still has that symbol.

Matthias

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

Reply via email to