Bug 9781 - samba4kgetcred and samba4kpasswd should link against asn1
Summary: samba4kgetcred and samba4kpasswd should link against asn1
Status: NEW
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
Depends on:
Reported: 2013-04-10 14:08 UTC by Robie Basak
Modified: 2013-04-15 07:03 UTC (History)
1 user (show)

See Also:

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

Note You need to log in before you can comment on or make changes to this bug.
Description Robie Basak 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