tdbbackup compilation problem
jra at samba.org
Mon Oct 6 21:28:01 GMT 2003
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 tdb.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