Failure to build master/Samba3

Michael Adam obnox at samba.org
Fri May 15 21:51:40 GMT 2009


Fixed in master (f5c96e54c633717ffe1a967f4ab9fdede31fa749)
and v3-4-test (74f805fbb654b58372b0c86f3314abfd9c76dbbe)

Cheers - Michael

Michael Adam wrote:
> Hi Andrew,
> 
> this is a bug in the current s3 configure/make.
> It leaves -ltdb even though static linking is
> chosen. I am going to look into this.
> 
> Cheers - Michael
> 
> Andrew Bartlett wrote:
> > On Thu, 2009-05-14 at 23:10 +0200, Volker Lendecke wrote:
> > > On Fri, May 15, 2009 at 03:24:32AM +1000, Andrew Bartlett wrote:
> > > > (because I'm stumped).  I've not tested Samba3, as I've lost the magic
> > > > incantation to build without trying to link in -ltdb (ie, everything
> > > > static, no matter what).
> > > 
> > > Wait a second -- you're not able to build Samba 3 on your
> > > box? All I do is a ./configure; make and I get a valid
> > > Samba3 build. If needed, I can provide you with a wide
> > > variety of build environments. Look at the build farm, most
> > > of the hosts with "SerNet" in their name are located in a
> > > DMZ that I can give you access to.
> > > 
> > > So, if you're limited by not having a proper build
> > > environment to test Samba 3, please tell me, I'll help out!
> > 
> > I'm building on Fedora 10 with:
> > 
> > `dirname $0`/configure --enable-developer --disable-shared
> > --disable-shared-libs --prefix=/scratch/samba3
> > 
> > I have libtdb installed, but not libtdb-devel.  When I try and build
> > Samba3, it ends in:
> > 
> > Using CFLAGS     = -g -g -Wall -Wshadow -Wpointer-arith -Wcast-align
> > -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER
> > -Wdeclaration-after-statement -Werror-implicit-function-declaration -I.
> > -I/scratch/samba-2/source3 -I/scratch/samba-2/source3/iniparser/src
> > -Iinclude -I./include  -I. -I. -I./../lib/replace -I./../lib/talloc
> > -I./../lib/tevent -I./../lib/tdb/include -I./libaddns -I./librpc -I./..
> > -DHAVE_CONFIG_H  -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
> > -D_GNU_SOURCE -Iinclude -I./include -I. -I. -I./../lib/replace
> > -I./../lib/talloc -I./../lib/tevent -I./../lib/tdb/include -I./libaddns
> > -I./librpc -I./.. -I./../lib/popt -DLDAP_DEPRECATED
> > -I/scratch/samba-2/source3/lib -I.. -I../source4 -D_SAMBA_BUILD_=3
> >       PICFLAG    = -fPIE
> >       LIBS       = -lcap -lresolv -lnsl -ldl -lpthread
> >       LDFLAGS    = 
> >       DYNEXP     = -Wl,--export-dynamic
> >       LDSHFLAGS  = shared-libraries-disabled -Wl,-z,relro 
> >       SHLIBEXT   = shared_libraries_disabled
> >       SONAMEFLAG = shared-libraries-disabled
> > Linking bin/smbd
> > /usr/bin/ld: cannot find -ltdb
> > collect2: ld returned 1 exit status
> > make: *** [bin/smbd] Error 1
> > 
> > I'm sure I'm just missing something silly (tried LD_LIBRARY_PATH=bin).
> > 
> > Andrew Bartlett
> > 
> > -- 
> > Andrew Bartlett
> > http://samba.org/~abartlet/
> > Authentication Developer, Samba Team           http://samba.org
> > Samba Developer, Red Hat Inc.

-- 
Michael Adam <ma at sernet.de>  <obnox at samba.org>
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.SerNet.DE, mailto: Info @ SerNet.DE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 206 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090515/679c0c94/attachment.bin


More information about the samba-technical mailing list