Bug 9781 - samba4kgetcred and samba4kpasswd should link against asn1
Summary: samba4kgetcred and samba4kpasswd should link against asn1
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: Build (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Björn Jacke
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-10 14:08 UTC by Robie Basak (dead mail address)
Modified: 2026-05-28 01:02 UTC (History)
1 user (show)

See Also:


Attachments
Patch to fix this issue (655 bytes, application/octet-stream)
2013-04-10 14:08 UTC, Robie Basak (dead mail address)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robie Basak (dead mail address) 2013-04-10 14:08:27 UTC
Created attachment 8753 [details]
Patch to fix this issue

In the Ubuntu development release, samba4 fails to build. Error below. It looks like samba4kgetcred and samba4kpasswd should be explicitly linked against -lasn1, since they use object files from source4/heimdal that depend on it.

Patch attached.

[2834/3047] Linking default/source4/heimdal_build/samba4kgetcred
/usr/bin/ld: default/source4/heimdal/kuser/kgetcred_7.o: undefined reference to symbol 'free_Ticket@@HEIMDAL_ASN1_1.0'
/usr/bin/ld: note: 'free_Ticket@@HEIMDAL_ASN1_1.0' is defined in DSO /usr/lib/x86_64-linux-gnu/libasn1.so.8 so try adding it to the linker command line
/usr/lib/x86_64-linux-gnu/libasn1.so.8: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
Waf: Leaving directory `/«BUILDDIR»/samba4-4.0.0+dfsg1/bin'
Build failed:  -> task failed (err #1): 
	{task: cc_link print_version_2.o,version_2.o,kgetcred_7.o,replace_2.o,getpass_2.o -> samba4kgetcred}
make[1]: *** [override_dh_auto_build] Error 1
Comment 1 Douglas Bagnall 2026-05-28 01:02:58 UTC
Fixed by a functionally identical patch:

commit 48ae86f74c5ed2ae2612d61e232bfcf93d44c7f8
Author: Andrew Bartlett <abartlet@samba.org>
Date:   Sun Jun 16 14:02:57 2013 +1000

    heimdal_build: Add missing dep on samba4kgetcred
    
    This started to fail on current Debian Sid with system Heimdal after a binutils update.
    
    Andrew Bartlett
    
    Signed-off-by: Andrew Bartlett <abartlet@samba.org>
    Reviewed-By: Jelmer Vernooij <jelmer@samba.org>