Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 721386 - media-plugins/live-2020.03.06 : ../.../libliveMedia.8.so: error: undefined reference to EVP_DigestFinal
Summary: media-plugins/live-2020.03.06 : ../.../libliveMedia.8.so: error: undefined re...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-05-07 08:02 UTC by Toralf Förster
Modified: 2020-06-19 15:27 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.63 KB, text/plain)
2020-05-07 08:02 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,156.45 KB, text/plain)
2020-05-07 08:02 UTC, Toralf Förster
Details
environment (environment,21.35 KB, text/plain)
2020-05-07 08:02 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.26 KB, application/x-bzip)
2020-05-07 08:02 UTC, Toralf Förster
Details
media-plugins:live-2020.03.06:20200506-221906.log (media-plugins:live-2020.03.06:20200506-221906.log,71.22 KB, text/plain)
2020-05-07 08:02 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,11.74 KB, application/x-bzip)
2020-05-07 08:02 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-05-07 08:02:13 UTC
c++ -c -I../UsageEnvironment/include -I../groupsock/include -I../liveMedia/include -I../BasicUsageEnvironment/include -I. -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DXLOCALE_NOT_USED  -fPIC -O2 -pipe -march=native  -falign-functions=32:25:16 -fno-common testMP3Streamer.cpp
c++ -otestMP3Streamer -lssl -L. -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 testMP3Streamer.o ../liveMedia/libliveMedia.8.so ../groupsock/libgroupsock.8.so ../BasicUsageEnvironment/libBasicUsageEnvironment.8.so ../UsageEnvironment/libUsageEnvironment.8.so 
../liveMedia/libliveMedia.8.so: error: undefined reference to EVP_DigestFinal
../liveMedia/libliveMedia.8.so: error: undefined reference to EVP_MD_CTX_new
../liveMedia/libliveMedia.8.so: error: undefined reference to EVP_sha1
../liveMedia/libliveMedia.8.so: error: undefined reference to EVP_DigestInit

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-abi32+64-20200503-182741

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.0 *
clang version 10.0.0 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python3.8 (fallback)
  [3]   python3.7 (fallback)
  [4]   python2.7 (fallback)
  [5]   pypy3 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.252_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.0.2

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Wed 06 May 2020 10:05:15 PM UTC

emerge -qpvO media-plugins/live
[ebuild  N    ] media-plugins/live-2020.03.06  USE="ssl -libressl"
Comment 1 Toralf Förster gentoo-dev 2020-05-07 08:02:15 UTC
Created attachment 636620 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-05-07 08:02:18 UTC
Created attachment 636622 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-05-07 08:02:21 UTC
Created attachment 636624 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-05-07 08:02:24 UTC
Created attachment 636626 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-05-07 08:02:26 UTC
Created attachment 636628 [details]
media-plugins:live-2020.03.06:20200506-221906.log
Comment 6 Toralf Förster gentoo-dev 2020-05-07 08:02:29 UTC
Created attachment 636630 [details]
temp.tbz2
Comment 7 Roy Bamford gentoo-dev 2020-05-26 19:03:03 UTC
Its missing the -lcrypto in link_opts. The snippet below works
but its probably incomplete. e.g. There will need to be a DEPEND on whatever provides crypto. 

rc_compile() {
        export suffix="${LIVE_ABI_VERSION}.so"
        local link_opts="$(usex ssl '-lssl' '') -lcrypto -L. ${LDFLAGS}
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-05-26 19:32:16 UTC
(In reply to Roy Bamford from comment #7)
> Its missing the -lcrypto in link_opts. The snippet below works
> but its probably incomplete. e.g. There will need to be a DEPEND on whatever
> provides crypto. 
> 
> rc_compile() {
>         export suffix="${LIVE_ABI_VERSION}.so"
>         local link_opts="$(usex ssl '-lssl' '') -lcrypto -L. ${LDFLAGS}

Yeah, this is my doing, so I'll fix it (=> assigning to myself). I bumped the package and added SSL support while there.

The interesting thing is that I managed to build fine without -lcrypto so I left it out, but that was silly in hindsight (most people have --as-needed anyway).

We will add it in, with the -lssl within usex.
Comment 9 Larry the Git Cow gentoo-dev 2020-06-19 15:27:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28a352cb944d7e501836dc886b4b319fd7f2d445

commit 28a352cb944d7e501836dc886b4b319fd7f2d445
Author:     Sam James (sam_c) <sam@cmpct.info>
AuthorDate: 2020-06-17 02:10:03 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-06-19 15:25:04 +0000

    media-plugins/live: link against libcrypto too
    
    Closes: https://bugs.gentoo.org/721386
    Signed-off-by: Sam James (sam_c) <sam@cmpct.info>
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 media-plugins/live/live-2020.03.06.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)