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

Bug 627312

Summary: emerge samba fails at linker process with undefined reference to MD5 functions
Product: Gentoo Linux Reporter: Tobias Weber <tobiw>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED FIXED    
Severity: normal CC: tobiw
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info '=net-fs/samba-4.5.10::gentoo'
build.log

Description Tobias Weber 2017-08-08 12:21:17 UTC
Created attachment 488282 [details]
emerge --info '=net-fs/samba-4.5.10::gentoo'

net-fs/samba-4.5.10 fails during linker process at:

libcli/smb/libsmb-transport-samba4.so

with 

hmacmd5.c:(.text+0x11c): undefined reference to `MD5Init'
hmacmd5.c:(.text+0x12c): undefined reference to `MD5Update'
hmacmd5.c:(.text+0x156): undefined reference to `MD5Init'
hmacmd5.c:(.text+0x16b): undefined reference to `MD5Update'
hmacmd5.c:(.text+0x176): undefined reference to `MD5Final'
default/lib/crypto/hmacmd5_1.o: In function `hmac_md5_final':
hmacmd5.c:(.text+0x21e): undefined reference to `MD5Final'
hmacmd5.c:(.text+0x226): undefined reference to `MD5Init'
hmacmd5.c:(.text+0x23a): undefined reference to `MD5Update'
hmacmd5.c:(.text+0x24a): undefined reference to `MD5Update'
hmacmd5.c:(.text+0x255): undefined reference to `MD5Final'
default/lib/crypto/hmacmd5_1.o: In function `hmac_md5_update':
hmacmd5.c:(.text+0x1dd): undefined reference to `MD5Update'

To me it looks like it is unable to find these in libcrypt as it is in libcrypto.
Comment 1 Tobias Weber 2017-08-09 09:15:56 UTC
glibc used is sys-libs/glibc-2.23-r4
Comment 2 Tobias Weber 2017-08-10 13:43:17 UTC
Created attachment 488504 [details]
build.log
Comment 3 Tobias Weber 2017-08-11 07:56:09 UTC
fixed by re-emerging libbsd.