/bin/sh ../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wparentheses -Wdeclaration-after-statement -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wformat -Wformat-security -Wsign-compare -Wfloat-equal -Wold-style-definition -Wno-strict-aliasing -Wno-unknown-pragmas -Wno-deprecated-declarations -DAMANDA_FILE=\"`basename amflock-test.o`\" -O2 -pipe -march=native -Wall -fno-strict-aliasing -Wl,-O1 -Wl,--as-needed -o amflock-test amflock-test.o libamanda.la libtestutils.la -lrt -lm -Wl,--export-dynamic -lgmodule-2.0 -lglib-2.0 -lgobject-2.0 -lgthread-2.0 -pthread -lglib-2.0 -lnsl -lresolv -lssl -lcrypto -lcrypto libtool: link: x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wparentheses -Wdeclaration-after-statement -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wformat -Wformat-security -Wsign-compare -Wfloat-equal -Wold-style-definition -Wno-strict-aliasing -Wno-unknown-pragmas -Wno-deprecated-declarations -DAMANDA_FILE=\"amflock-test.o\" -O2 -pipe -march=native -Wall -fno-strict-aliasing -Wl,-O1 -o .libs/amflock-test amflock-test.o -Wl,--export-dynamic -pthread -Wl,--as-needed ./.libs/libamanda.so ./.libs/libtestutils.a -lrt -lm -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lnsl -lresolv -lssl -lcrypto -pthread -Wl,-rpath -Wl,/usr/lib64/amanda ./.libs/libamanda.so: undefined reference to `OPENSSL_init_ssl' collect2: error: ld returned 1 exit status make[3]: *** [Makefile:2263: amflock-test] Error 1 make[3]: Leaving directory '/var/tmp/portage/app-backup/amanda-3.4.2/work/amanda-3.4.2/common-src' ----------------------------------------------------------------- This is an unstable amd64 chroot image (named 13.0-no-multilib-libressl-unstable_20170122-225602) at a hardened host acting as a tinderbox. ----------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-5.4.0 * llvm-config --version: 3.9.1 Available Python interpreters, in order of preference: [1] python3.4 [2] python3.5 (fallback) [3] python2.7 (fallback) java-config: The following VMs are available for generation-2: -----------------------------------------------------------------
Created attachment 462064 [details] emerge-info.txt
Created attachment 462066 [details] app-backup:amanda-3.4.2:20170201-023215.log
Created attachment 462068 [details] config.log.bz2
Created attachment 462070 [details] emerge-history.txt
Created attachment 462072 [details] environment
Created attachment 462074 [details] etc.portage.tbz2
Quick shot: do you have openssl installed? You mention "13.0-no-multilib-libressl..." and I wonder if it provides the same libraries.
(In reply to Stefan G. Weichinger from comment #7) Right - this tinderbox image is a libressl system. Pls have a look at the attached emerge-history.txt for more info.
Created attachment 462372 [details, diff] patch for libressl system upstream provided the attached patch, could you please test it ?
with patch I get another error
Created attachment 462784 [details] emerge-info.txt
Created attachment 462786 [details] app-backup:amanda-3.4.2:20170207-133238.log
Created attachment 462788 [details] config.log.bz2
Created attachment 462790 [details] emerge-history.txt
Created attachment 462792 [details] environment
Created attachment 462794 [details] etc.portage.tbz2
Created attachment 462800 [details, diff] link with -ldl dlopen is in libdl, but amanda do not link with it. It probably succeeded because openssl link with libdl but libressl do no. The attached patch add a '-ldl' when it link libamdevice Please try it. I have no libressl setup to try it.
(In reply to Jean-Louis Martineau from comment #17) links with this patch BTW I do use a simple chroot here.
Created attachment 462810 [details, diff] completepath to compile with libressl I was able to compile and do a small test with the attached patch. This patch include the 2 previous patches.