> On Aug 7, 2017, at 6:37 PM, Matthias Schiffer > <mschif...@universe-factory.net> wrote: > > 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)?
It does: % ls -ltr staging_dir/target-x86_64_musl_powercode-bmu/usr/lib/libcrypto* -rw-r--r-- 1 philipp philipp 5200098 Aug 7 13:35 staging_dir/target-x86_64_musl_powercode-bmu/usr/lib/libcrypto.a -r-xr-xr-x 1 philipp philipp 2162104 Aug 7 13:35 staging_dir/target-x86_64_musl_powercode-bmu/usr/lib/libcrypto.so.1.0.0* lrwxrwxrwx 1 philipp philipp 18 Aug 7 13:35 staging_dir/target-x86_64_musl_powercode-bmu/usr/lib/libcrypto.so -> libcrypto.so.1.0.0* % And the configure happened as: AR="x86_64-openwrt-linux-musl-gcc-ar" AS="x86_64-openwrt-linux-musl-gcc -c -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.11.2:bind-9.11.2 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=x86_64-openwrt-linux-musl-ld NM="x86_64-openwrt-linux-musl-gcc-nm" CC="x86_64-openwrt-linux-musl-gcc" GCC="x86_64-openwrt-linux-musl-gcc" CXX="x86_64-openwrt-linux-musl-g++" RANLIB="x86_64-openwrt-linux-musl-gcc-ranlib" STRIP=x86_64-openwrt-linux-musl-strip OBJCOPY=x86_64-openwrt-linux-musl-objcopy OBJDUMP=x86_64-openwrt-linux-musl-objdump SIZE=x86_64-openwrt-linux-musl-size CFLAGS="-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.11.2:bind-9.11.2 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CXXFLAGS="-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.11.2:bind-9.11.2 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CPPFLAGS="-I/home/philipp/bertram/lede/staging_dir/target-x86_64_musl_powercode-bmu/usr/include -I/home/philipp/bertram/lede/staging_dir/target-x86_64_musl_powercode-bmu/include -I/home/philipp/bertram/lede/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/usr/include -I/home/philipp/bertram/lede/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include/fortify -I/home/philipp/bertram/lede/staging_dir/toolchain-x86_64_gcc-5.4.0_musl/include " LDFLAGS="-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 -znow -zrelro " BUILD_CC="x86_64-openwrt-linux-musl-gcc" ./configure --target=x86_64-openwrt-linux --host=x86_64-openwrt-linux --build=x86_64-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls --enable-shared --enable-static --with-randomdev="/dev/urandom" --disable-threads --disable-linux-caps --with-openssl="/home/philipp/bertram/lede/staging_dir/target-x86_64_musl_powercode-bmu/usr" --with-libjson=no --with-libtool --with-libxml2=no --enable-epoll=yes --with-gost=no --with-gssapi=no --with-ecdsa=yes --with-readline=no --sysconfdir=/etc/bind --enable-filter-aaaa and the —with-openssl= is pointing where it should be. -Philip > > 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 > _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev