Bug 788 - Build fails on solaris 7 with OpenLDAP/Kerberos
Summary: Build fails on solaris 7 with OpenLDAP/Kerberos
Status: RESOLVED INVALID
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.0.0
Hardware: All Solaris
: P4 major
Target Milestone: none
Assignee: Tim Potter
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-18 01:43 UTC by Martin Willisegger
Modified: 2005-11-14 09:24 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Willisegger 2003-11-18 01:43:40 UTC
The configure script works fine without errors:

# env "LDFLAGS=-L/usr/local/openldap/lib -L/usr/local/kerberos/lib" \
> env "CPPFLAGS=-I/usr/local/openldap/include -I/usr/local/kerberos/include \
> ./configure \
> --with-krb5=/usr/local/kerberos \
> --with-winbind

But after, when I tipped in:

make LDFLAGS=-s

The compilation fails with this output:

Compiling popt/popthelp.c
Compiling popt/poptparse.c
Linking bin/smbd
Undefined                       first referenced
 symbol                             in file
ldap_start_tls_s                    lib/smbldap.o
ldap_unbind_ext                     lib/smbldap.o
ldap_add_result_entry               libads/ldap.o
ldap_initialize                     libads/ldap.o
ld: fatal: Symbol referencing errors. No output written to bin/smbd
collect2: ld returned 1 exit status
make: *** [bin/smbd] Error 1

OpenLDAP 2.1.22 ist built with tls/ssl and sasl support and reports no error.
Comment 1 Gerald (Jerry) Carter (dead mail address) 2003-11-21 21:51:11 UTC
I think you have a dirty build.  Did you build Samba before
without LDAP support (possibly before OpenLDAP was installed).
I went through this sam scenario with someone recently.

Make sure to run make distclean and then try compiling again.
Comment 2 Gerald (Jerry) Carter (dead mail address) 2004-03-04 09:05:56 UTC
closing.  no feedback.  Assuming config issue.
Comment 3 Gerald (Jerry) Carter (dead mail address) 2005-11-14 09:24:50 UTC
database cleanup