Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 464136 - net-fs/samba-4.0.x with sys-devel/binutils-2.23.2 - default/source4/heimdal/kuser/kgetcred_7.o: undefined reference to symbol 'free_Ticket@@HEIMDAL_ASN1_1.0' - /usr/lib64/libasn1.so.8: could not read symbols: Invalid operation
Summary: net-fs/samba-4.0.x with sys-devel/binutils-2.23.2 - default/source4/heimdal/k...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2013-04-01 22:01 UTC by Mark Zhitomirski
Modified: 2017-10-11 20:11 UTC (History)
0 users

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


Attachments
emerge --info net-fs/samba (emerge-samba-4.0.4.vmz1.info,4.87 KB, text/plain)
2013-04-01 22:08 UTC, Mark Zhitomirski
Details
failing build log (build.log.gz,186.24 KB, application/x-gzip)
2013-04-01 23:36 UTC, Mark Zhitomirski
Details
Includes asn1 library in linkage (asn1_dep.patch,375 bytes, patch)
2013-04-02 08:18 UTC, Ross Hayward
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Zhitomirski 2013-04-01 22:01:44 UTC
after 2/3 of the build is complete linking fails with an obscure message (t.b.d.) not unlike #458164 though in this case it's some heimdal lib. Most probably this is a problem in the waf buildsystem. 
ld from binutils 2.23.1 links OK. Both current samba-4.0.3 and samba-4.0.4 are failing with ld from binutils-2.23.2

Reproducible: Always




i'm going to report this bug upstream time permitting. Meanwhile ebuild may be modified to prevent failing with mentioned binutils.
Comment 1 Mark Zhitomirski 2013-04-01 22:08:16 UTC
Created attachment 344016 [details]
emerge --info net-fs/samba
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-04-01 22:54:43 UTC
Please attach the complete build log, don't obscure its obscurity.
Comment 3 Mark Zhitomirski 2013-04-01 23:36:49 UTC
Created attachment 344030 [details]
failing build log
Comment 4 Mark Zhitomirski 2013-04-01 23:39:40 UTC
here you go:

[2735/2947] Linking default/source4/heimdal_build/samba4kgetcred
09:51:11 runner x86_64-pc-linux-gnu-gcc default/source4/heimdal/lib/vers/print_version_2.o default/source4/heimdal_build/version_2.o default/source4/heimdal/kuser/kgetcred_7.o -o /var/tmp/portage/net-fs/samba-4.0.4/work/samba-4.0.4/bin/default/source4/heimdal_build/samba4kgetcred -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -Wl,-no-undefined -Wl,--export-dynamic -lpthread -Ldefault/lib/replace -L/usr/local/lib -L/usr/lib64 -Wl,-Bdynamic -lreplace -lkrb5 -lrt -ldl -lroken -lattr -lcrypt -lhcrypto -lnsl -lheimntlm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld: default/source4/heimdal/kuser/kgetcred_7.o: undefined reference to symbol 'free_Ticket@@HEIMDAL_ASN1_1.0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'free_Ticket@@HEIMDAL_ASN1_1.0' is defined in DSO /usr/lib64/libasn1.so.8 so try adding it to the linker command line
/usr/lib64/libasn1.so.8: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
Waf: Leaving directory `/var/tmp/portage/net-fs/samba-4.0.4/work/samba-4.0.4/bin'

complete build log - ca. 6MB uncompressed
it's from another machine, error is very much the same.
emerge --info from that machine will follow
Comment 5 Ross Hayward 2013-04-02 08:18:46 UTC
Created attachment 344048 [details, diff]
Includes asn1 library in linkage

Doesn't address why behaviour changes across binutils versions
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2017-09-13 18:27:28 UTC
Do you still have this problem with 2.28.1 ?
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2017-10-11 20:11:41 UTC
(In reply to Andreas K. Hüttel from comment #6)
> Do you still have this problem with 2.28.1 ?

No response.