On 2016-06-27 21:41, Kurt Roeckx wrote:
On Mon, Jun 27, 2016 at 08:30:08PM +0100, [email protected] 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?

readelf -d libamanda.so

Dynamic section at offset 0x5bc48 contains 34 entries:
  Tag        Type                         Name/Value
0x0000000000000001 (NEEDED) Shared library: [libcrypto.so.1.1]
 0x0000000000000001 (NEEDED)             Shared library: [libcurl.so.4]
 0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]
0x0000000000000001 (NEEDED) Shared library: [libgmodule-2.0.so.0] 0x0000000000000001 (NEEDED) Shared library: [libgobject-2.0.so.0] 0x0000000000000001 (NEEDED) Shared library: [libgthread-2.0.so.0] 0x0000000000000001 (NEEDED) Shared library: [libglib-2.0.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libnsl.so.1]
0x0000000000000001 (NEEDED) Shared library: [libresolv.so.2] 0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
0x000000000000000e (SONAME) Library soname: [libamanda-3.3.9.so]

(...)


Can you help me in finding the root cause?


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.


I am at DebConf, so is a good time to get it fixed.



Kurt

Kind regards
Jose M Calhariz

Reply via email to