On Mon, Jun 27, 2016 at 08:30:08PM +0100, j...@calhariz.com wrote:
> The amanda is failing to configure with openssl 1.1.0.  I have contacted the
> upstream on the mailing list amanda-users and he sent me the attached patch.
> With the patch amanda configures and compiles, failing only during linking
> in a way I think is not amanda fault:
> 
> libtool: link: 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 -g
> -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -O2 -g
> -Wall -DIGNORE_TAR_ERRORS -fPIE -pie -Wl,-z -Wl,relro -Wl,-z -Wl,now -o
> .libs/amflock-test amflock-test.o -Wl,--export-dynamic -pthread -pthread
> ./.libs/libamanda.so ./.libs/libtestutils.a -L/usr/lib/x86_64-linux-gnu
> -lcrypto /usr/lib/x86_64-linux-gnu/libcurl.so -lm -lgmodule-2.0
> -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lnsl -lresolv -pthread -Wl,-rpath
> -Wl,/usr/lib/amanda
> /usr/bin/ld: warning: libcrypto.so.1.0.2, needed by
> /usr/lib/x86_64-linux-gnu/libcurl.so, may conflict with libcrypto.so.1.1
> ./.libs/libamanda.so: undefined reference to `OPENSSL_init_ssl'
> collect2: error: ld returned 1 exit status
> Makefile:2206: recipe for target 'amflock-test' failed
> make[4]: *** [amflock-test] Error 1

I'm unsure why you get that error.  I think the problem is that
libamanda.so is not linked with libcrypto, but that you for some
unknown reason add -lcrypto when linking amflock-test, which you
shouldn't?

Can you do a readelf -d on that ./.libs/libamanda.so?  What does
the NEEDED say?

> I will prepare a new package for the new upstream version amanda 3.3.9.  In
> case there is the need of a fast NMU because of this bug, please go head.

There is no need to have it fixed really fast.  It would be nice
that it was fixed before I upload it to unstable in which case it
would just need a binNMU.


Kurt

Reply via email to