Failure to build master/Samba3
abartlet at samba.org
Fri May 15 03:05:35 GMT 2009
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
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.
-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
DYNEXP = -Wl,--export-dynamic
LDSHFLAGS = shared-libraries-disabled -Wl,-z,relro
SHLIBEXT = shared_libraries_disabled
SONAMEFLAG = shared-libraries-disabled
/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).
Authentication Developer, Samba Team http://samba.org
Samba Developer, Red Hat Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20090515/bfb839cd/attachment.bin
More information about the samba-technical