Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659768 - net-mail/mailutils-3.4-r2: Fails tests compile phase: libmu_auth.so: error: undefined reference to 'ber_memvfree', 'ber_memfree', and 'ber_set_option'
Summary: net-mail/mailutils-3.4-r2: Fails tests compile phase: libmu_auth.so: error: u...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-01 17:35 UTC by Jason Lamb
Modified: 2018-07-02 13:25 UTC (History)
0 users

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


Attachments
complete build log (mailutils-3.4-r3.build.log,372.71 KB, text/x-log)
2018-07-01 17:35 UTC, Jason Lamb
Details
emerge --info (mailutils-3.4-r3.emerge-info.log,17.95 KB, text/x-log)
2018-07-01 17:36 UTC, Jason Lamb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Lamb 2018-07-01 17:35:28 UTC
Created attachment 538012 [details]
complete build log

[ebuild     U ] net-mail/mailutils-3.4-r2 [3.4] USE="berkdb clients gdbm ipv6 ldap mysql nls pam python ssl tcpd threads -bidi -guile -kerberos -kyotocabinet -postgres -sasl -servers -static-libs -tokyocabinet" PYTHON_TARGETS="python2_7" 

make[4]: Entering directory '/var/tmp/portage/net-mail/mailutils-3.4-r2/work/mailutils-3.4/libproto/imap/tests'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../.. -I../../../include  -I../../../include  -DSYSCONFDIR=\"/etc\"  -march=native -O2 -pipe -fno-strict-aliasing -Wall -Wdeclaration-after-statement -c -o imapfolder.o imapfolder.c
/bin/sh ../../../libtool  --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -march=native -O2 -pipe -fno-strict-aliasing -Wall -Wdeclaration-after-statement  -Wl,-O1 -Wl,--as-needed -o imapfolder imapfolder.o ../../../libproto/imap/libmu_imap.la ../../../libmu_auth/libmu_auth.la -lgnutls  -lldap -lpam -ldl ../../../libmailutils/libmailutils.la -lcrypt  -lpthread
libtool: link: x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -fno-strict-aliasing -Wall -Wdeclaration-after-statement -Wl,-O1 -o .libs/imapfolder imapfolder.o  -Wl,--as-needed ../../../libproto/imap/.libs/libmu_imap.so /var/tmp/portage/net-mail/mailutils-3.4-r2/work/mailutils-3.4/libmu_auth/.libs/libmu_auth.so ../../../libmu_auth/.libs/libmu_auth.so /var/tmp/portage/net-mail/mailutils-3.4-r2/work/mailutils-3.4/libmailutils/.libs/libmailutils.so -lmysqlclient -lm -lgnutls -lldap -lpam -ldl ../../../libmailutils/.libs/libmailutils.so -lcrypt -lpthread
/var/tmp/portage/net-mail/mailutils-3.4-r2/work/mailutils-3.4/libmu_auth/.libs/libmu_auth.so: error: undefined reference to 'ber_memvfree'
/var/tmp/portage/net-mail/mailutils-3.4-r2/work/mailutils-3.4/libmu_auth/.libs/libmu_auth.so: error: undefined reference to 'ber_memfree'
/var/tmp/portage/net-mail/mailutils-3.4-r2/work/mailutils-3.4/libmu_auth/.libs/libmu_auth.so: error: undefined reference to 'ber_set_option'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:1000: imapfolder] Error 1
make[4]: Leaving directory '/var/tmp/portage/net-mail/mailutils-3.4-r2/work/mailutils-3.4/libproto/imap/tests'
make[3]: *** [Makefile:1287: all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/net-mail/mailutils-3.4-r2/work/mailutils-3.4/libproto/imap'
make[2]: *** [Makefile:1054: all-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-mail/mailutils-3.4-r2/work/mailutils-3.4/libproto'
make[1]: *** [Makefile:1173: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-mail/mailutils-3.4-r2/work/mailutils-3.4'
make: *** [Makefile:1058: all] Error 2
Comment 1 Jason Lamb 2018-07-01 17:36:07 UTC
Created attachment 538014 [details]
emerge --info
Comment 2 Jarek Rymut 2018-07-02 08:21:18 UTC
Adding 'append-ldflags -llber' to the top of src_configure() fixes issue.
In my case liblber.so comes from net-nds/openldap.

Discussion on Debian suggests it might have something with ld.gold: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=555585
Comment 3 Jason Lamb 2018-07-02 13:25:30 UTC
Thanks Jarek!

Changing my linker from ld.gold to ld.bfd and it emerged correctly.