Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 585242

Summary: app-arch/dump-0.4.45[ermt,ssl]: link fails with dev-libs/openssl-1.0.2h-r1: cipher.c:(.text+0x82): undefined reference to `EVP_CipherUpdate'
Product: Gentoo Linux Reporter: Andrew Savchenko <bircoph>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
environment
emerge --info

Description Andrew Savchenko gentoo-dev 2016-06-07 05:57:48 UTC
Created attachment 436732 [details]
build.log

Hi,

dump-0.4.45 with USE="ermt ssl" fails to link with openssl:

libtool: link: i686-pc-linux-gnu-gcc -march=native -m32 -O2 -funswitch-loops -fpredictive-commoning -ftree-loop-vectorize -ftree-loop-distribute-patterns -ftree-slp-vectorize -fvect-cost-model -ftree-partial-pre -fgcse-after-reload -ftree-loop-im -fweb -frename-registers -fomit-frame-pointer -mfpmath=sse -pipe -frecord-gcc-switches -fno-stack-protector -march=native -m32 -O2 -funswitch-loops -fpredictive-commoning -pipe -Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-z -Wl,combreloc -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,--relax -Wl,--hash-style=gnu -o ermt ermt.o cipher.o  ../compat/lib/.libs/libcompat.a -lblkid -lext2fs
cipher.o: In function `cipher':
cipher.c:(.text+0x82): undefined reference to `EVP_CipherUpdate'
cipher.c:(.text+0xcd): undefined reference to `EVP_bf_cbc'
cipher.c:(.text+0x18a): undefined reference to `EVP_md5'
cipher.c:(.text+0x1c7): undefined reference to `EVP_BytesToKey'
cipher.c:(.text+0x1d3): undefined reference to `EVP_CIPHER_CTX_init'
cipher.c:(.text+0x204): undefined reference to `EVP_CipherInit_ex'
cipher.c:(.text+0x218): undefined reference to `EVP_CIPHER_CTX_set_padding'
cipher.c:(.text+0x228): undefined reference to `OPENSSL_cleanse'
cipher.c:(.text+0x238): undefined reference to `OPENSSL_cleanse'
cipher.c:(.text+0x248): undefined reference to `OPENSSL_cleanse'
cipher.c:(.text+0x254): undefined reference to `EVP_CIPHER_CTX_block_size'
collect2: error: ld returned 1 exit status

All these symbols belong to /usr/lib/libcrypto.so, so apparently -lcrypto is missing from $LIBS.
Comment 1 Andrew Savchenko gentoo-dev 2016-06-07 05:58:18 UTC
Created attachment 436734 [details]
environment
Comment 2 Andrew Savchenko gentoo-dev 2016-06-07 05:58:51 UTC
Created attachment 436736 [details]
emerge --info
Comment 3 SpanKY gentoo-dev 2016-06-07 17:53:58 UTC
openssl is one of the few parts i didn't update to pkg-config.  i guess i'll bite the bullet and do that now :x.
Comment 4 SpanKY gentoo-dev 2016-06-08 05:08:34 UTC
i've fixed this upstream:
https://sourceforge.net/p/dump/code/ci/26df39c57ba08b13430c8d22ed3967ba11fb8194

it'll be in the next release which i hope to get out soonish.
Comment 5 Andrew Savchenko gentoo-dev 2016-07-20 09:39:21 UTC
The fix is not in the tree yet.