Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 607884 - app-backup/amanda-3.4.2 : ./.../libamanda.so: undefined reference to `OPENSSL_init_ssl'
Summary: app-backup/amanda-3.4.2 : ./.../libamanda.so: undefined reference to `OPENSSL...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-01 08:24 UTC by Toralf Förster
Modified: 2020-08-10 04:51 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,5.48 KB, text/plain)
2017-02-01 08:24 UTC, Toralf Förster
Details
app-backup:amanda-3.4.2:20170201-023215.log (app-backup:amanda-3.4.2:20170201-023215.log,209.38 KB, text/plain)
2017-02-01 08:24 UTC, Toralf Förster
Details
config.log.bz2 (config.log.bz2,67.86 KB, application/x-bzip)
2017-02-01 08:25 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,332.07 KB, text/plain)
2017-02-01 08:25 UTC, Toralf Förster
Details
environment (environment,117.96 KB, text/plain)
2017-02-01 08:25 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,19.99 KB, application/x-bzip)
2017-02-01 08:25 UTC, Toralf Förster
Details
patch for libressl system (libressl.diff,967 bytes, patch)
2017-02-03 19:18 UTC, Stefan G. Weichinger
Details | Diff
emerge-info.txt (emerge-info.txt,5.66 KB, text/plain)
2017-02-07 13:41 UTC, Toralf Förster
Details
app-backup:amanda-3.4.2:20170207-133238.log (app-backup:amanda-3.4.2:20170207-133238.log,656.76 KB, text/plain)
2017-02-07 13:41 UTC, Toralf Förster
Details
config.log.bz2 (config.log.bz2,67.52 KB, application/x-bzip)
2017-02-07 13:41 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,132.84 KB, text/plain)
2017-02-07 13:41 UTC, Toralf Förster
Details
environment (environment,116.89 KB, text/plain)
2017-02-07 13:41 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,17.93 KB, application/x-bzip)
2017-02-07 13:42 UTC, Toralf Förster
Details
link with -ldl (libdl.diff,457 bytes, patch)
2017-02-07 14:50 UTC, Jean-Louis Martineau
Details | Diff
completepath to compile with libressl (full-libressl.diff,3.50 KB, patch)
2017-02-07 17:02 UTC, Jean-Louis Martineau
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-02-01 08:24:51 UTC
/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:
  -----------------------------------------------------------------
Comment 1 Toralf Förster gentoo-dev 2017-02-01 08:24:54 UTC
Created attachment 462064 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-02-01 08:24:58 UTC
Created attachment 462066 [details]
app-backup:amanda-3.4.2:20170201-023215.log
Comment 3 Toralf Förster gentoo-dev 2017-02-01 08:25:01 UTC
Created attachment 462068 [details]
config.log.bz2
Comment 4 Toralf Förster gentoo-dev 2017-02-01 08:25:04 UTC
Created attachment 462070 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2017-02-01 08:25:07 UTC
Created attachment 462072 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2017-02-01 08:25:10 UTC
Created attachment 462074 [details]
etc.portage.tbz2
Comment 7 Stefan G. Weichinger 2017-02-01 09:01:29 UTC
Quick shot: do you have openssl installed?

You mention "13.0-no-multilib-libressl..." and I wonder if it provides the same libraries.
Comment 8 Toralf Förster gentoo-dev 2017-02-01 09:32:52 UTC
(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.
Comment 9 Stefan G. Weichinger 2017-02-03 19:18:27 UTC
Created attachment 462372 [details, diff]
patch for libressl system

upstream provided the attached patch, could you please test it ?
Comment 10 Toralf Förster gentoo-dev 2017-02-07 13:41:43 UTC
with patch I get another error
Comment 11 Toralf Förster gentoo-dev 2017-02-07 13:41:46 UTC
Created attachment 462784 [details]
emerge-info.txt
Comment 12 Toralf Förster gentoo-dev 2017-02-07 13:41:49 UTC
Created attachment 462786 [details]
app-backup:amanda-3.4.2:20170207-133238.log
Comment 13 Toralf Förster gentoo-dev 2017-02-07 13:41:53 UTC
Created attachment 462788 [details]
config.log.bz2
Comment 14 Toralf Förster gentoo-dev 2017-02-07 13:41:56 UTC
Created attachment 462790 [details]
emerge-history.txt
Comment 15 Toralf Förster gentoo-dev 2017-02-07 13:41:59 UTC
Created attachment 462792 [details]
environment
Comment 16 Toralf Förster gentoo-dev 2017-02-07 13:42:02 UTC
Created attachment 462794 [details]
etc.portage.tbz2
Comment 17 Jean-Louis Martineau 2017-02-07 14:50:43 UTC
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.
Comment 18 Toralf Förster gentoo-dev 2017-02-07 16:02:51 UTC
(In reply to Jean-Louis Martineau from comment #17)
links with this patch
BTW I do use a simple chroot here.
Comment 19 Jean-Louis Martineau 2017-02-07 17:02:23 UTC
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.