configure "bug" generating Solaris9 Makefile??

Clive.Elsum at csiro.au Clive.Elsum at csiro.au
Tue Jun 10 09:07:17 GMT 2003


Hi Samba Team,
Sorry this is the last request I will send on this matter, but there
still appears to be a "bug" in the configure for Solaris 9, which would
be nice to be fixed.
There seems to be no way to get the correct build under Solaris 9 UNLESS
you alter the LIBS line to be consistent with the alpha-22 release as
shown here:
LIBS= -lsendfile -lsec -lgen -lresolv -lsocket -lnsl -ldl -lkrb5
-lcom_err -lk5crypto -lkrb5 -lgssapi_krb5 -llber -lldap

If this line is included in the Makefile then everything works as
expected from the SAMBA team.
My relevant environment library path:
LD_LIBRARY_PATH=/usr/local/lib:/usr/local/ssl/lib:/usr/local/kerberos/li
b:/usr/local/BerkeleyDB.4.1/lib:/usr/local/ldap/lib:/usr/lib:/lib


I include the errors that you get from the default Makefile 

Any fix would be appreciated, thanks in advance for your consideration

Clive

-------------------------------------------------The script used to
build the Makefile

env CC=gcc CPPFLAGS="-I/usr/local/kerberos/include
-I/usr/local/ldap/include" LDFLAGS="-L/usr/local/kerberos/lib -L/u
sr/local/ldap/lib" ./configure  --with-ads --with-ldap
--with-krb5=/usr/local/kerberos --with-pam --with-winbind --wi
thout-sendfile-support --disable-mysqltest --disable-xmltest
--without-included-popt



-----------------------------------------------THE GENERATED Makefile

"Makefile" [Read only] 1349 lines, 50971 characters 
########################################################################
#
# Makefile.in for Samba - rewritten for autoconf support
# Copyright Andrew Tridgell 1992-1998
# Copyright (C) 2001 by Martin Pool <mbp at samba.org>
# Copyright Andrew Bartlett 2002
# Copyright (C) 2003 Anthony Liguori <aliguor at us.ibm.com>
# Copyright (C) 2002-2003 Jelmer Vernooij <jelmer at samba.org>
########################################################################
###

prefix=/usr/local/samba
exec_prefix=${prefix}
mandir=${prefix}/man

LIBS= -lsendfile -lsec -lgen -lresolv -lsocket -lnsl -ldl
CC=gcc
SHLD=${CC}
CFLAGS= -g -O2
CPPFLAGS= -I/usr/local/kerberos/include -I/usr/local/ldap/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/l
ocal/kerberos/include
EXEEXT=
LDFLAGS= -L/usr/local/kerberos/lib -L/usr/local/ldap/lib
-L/usr/local/kerberos/lib
LDSHFLAGS=-G  -L/usr/local/kerberos/lib -L/usr/local/ldap/lib
-L/usr/local/kerberos/lib  -g -O2
WINBIND_NSS_LDSHFLAGS=-G  -L/usr/local/kerberos/lib
-L/usr/local/ldap/lib -L/usr/local/kerberos/lib  -g -O2
AWK=nawk
DYNEXP=
PYTHON=
PERL=/bin/perl

TERMLDFLAGS=
TERMLIBS=
PRINTLIBS=
AUTHLIBS= -lpam
ACLLIBS=
PASSDBLIBS=  -lldap
IDMAP_LIBS=
ADSLIBS= -lldap  -lkrb5 -lcom_err -lk5crypto -lresolv -lkrb5
-lgssapi_krb5
KRB5LIBS= -lkrb5 -lcom_err -lk5crypto -lresolv -lkrb5 -lgssapi_krb5

------------------------------------------------------------------------
--------------------------------PRODUCES the FOLLOWING
Linking bin/smbd
Undefined                       first referenced
 symbol                             in file
ber_printf                          passdb/pdb_ldap.o  (symbol belongs
to implicit dependency /usr/local/ldap/lib/liblber.so.2)
ber_init                            libads/ldap.o  (symbol belongs to
implicit dependency /usr/local/ldap/lib/liblber.so.2)
ber_flatten                         passdb/pdb_ldap.o  (symbol belongs
to implicit dependency /usr/local/ldap/lib/liblber.so.2)
ber_scanf                           libads/ldap.o  (symbol belongs to
implicit dependency /usr/local/ldap/lib/liblber.so.2)
ber_memfree                         passdb/pdb_ldap.o  (symbol belongs
to implicit dependency /usr/local/ldap/lib/liblber.so.2)
ber_bvdup                           libads/ldap.o  (symbol belongs to
implicit dependency /usr/local/ldap/lib/liblber.so.2)
ber_bvfree                          passdb/pdb_ldap.o  (symbol belongs
to implicit dependency /usr/local/ldap/lib/liblber.so.2)
ber_free                            passdb/pdb_ldap.o  (symbol belongs
to implicit dependency /usr/local/ldap/lib/liblber.so.2)
ber_alloc_t                         passdb/pdb_ldap.o  (symbol belongs
to implicit dependency /usr/local/ldap/lib/liblber.so.2)
ld: fatal: Symbol referencing errors. No output written to bin/smbd
collect2: ld returned 1 exit status
make: *** [bin/smbd] Error 1

---------------------------------------------------------------------
Clive Elsum BAppSc, RHCE
Systems Engineer - Information Technology Group
CSIRO Atmospheric Research
PMB 1, Aspendale, Victoria, Australia 3195
Phone : (+61 3) 9239 4509
Fax: (+61 3) 9239 4444
E-mail Clive.Elsum at csiro.au
---------------------------------------------------------------------
		



More information about the samba-technical mailing list