tdbbackup compilation problem
david.shapiro at bti.com
Tue Oct 7 13:29:13 GMT 2003
If I added snprintf.o and tdbback.o to the tdb's Makefile and cp
lib/snprintf.o into the tdb directory tdbbackup compiles:
tdbbackup: tdbbackup.o $(TDB_OBJ)
$(CC) $(CFLAGS) -o tdbbackup snprintf.o tdbbackup.o tdbback.o
I guess you could make a variable $(SNPRINTF) defined to the snprintf.o
From: Jeremy Allison [mailto:jra at samba.org]
Sent: Monday, October 06, 2003 5:28 PM
To: Shapiro, David
Cc: 'samba-technical at samba.org'
Subject: Re: tdbbackup compilation problem
On Mon, Oct 06, 2003 at 05:02:15PM -0400, Shapiro, David wrote:
> tdbbackup is not compiling on the latests cvs build:
> cc -DSTANDALONE -DTDB_DEBUG -g -DHAVE_MMAP=1 -c tdbbackup.c
> gcc -DSTANDALONE -DTDB_DEBUG -g -DHAVE_MMAP=1 -o tdbbackup tdbbackup.o
> tdbbackup.o(.text+0x27c): In function `main':
> /usr/local/samba/source/tdb/tdbbackup.c:132: undefined reference to
> undefined reference to `verify_tdb'
> undefined reference to `backup_tdb'
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `tdbbackup'
> I am not sure why it thinks these 3 things are not defined. I see them in
> tdbback.h and tdback.c.
Yeah, and you're not including tdbback.o in your link line.... :-).
More information about the samba-technical