Bug 4189 - Incorrect detection of heimdahl libs
Summary: Incorrect detection of heimdahl libs
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.0.23c
Hardware: Other Linux
: P3 normal
Target Milestone: none
Assignee: Tim Potter
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-25 07:30 UTC by Olaf Flebbe
Modified: 2024-06-11 04:27 UTC (History)
1 user (show)

See Also:


Attachments
Change to the configure.in (660 bytes, patch)
2006-10-25 07:31 UTC, Olaf Flebbe
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olaf Flebbe 2006-10-25 07:30:52 UTC
Hi,

there are specific checks for heimdahl libs in the config file in the --with-ads case which seem to be bogus to me.

They have the only side effect for importing the heimdahl libraries -lasn1 (ans so on) in front of the library path, overwriting the settings of --with-krb5=basedir.

 In the case of MIT libraries in the --with-krb5 path and heimdahl on the system (for instance a suse90 system) this results with both libs in the smbd. There is no chance only to choose MIT Libs without removing the heimdahl-devel packages on such a system.

IMHO the only way of importing kerberos libraries should be the detection with krb5-config and an single fallback path should this not exist. The proposed patch does not enforce it, but it should be a step in this direction.
Comment 1 Olaf Flebbe 2006-10-25 07:31:45 UTC
Created attachment 2192 [details]
Change to the configure.in
Comment 2 Andrew Bartlett 2024-06-11 03:39:37 UTC
The new waf build system is tested with Heimdal and MIT system libraries, and brings in the right libraries as far as we know, and specifically avoids bringing in both. 

Marking as fixed since roughly the Samba 4.0 release (not sure which one exactly).