tdbbackup compilation problem

Jeremy Allison 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:
> Hello,
>  
> 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
> spinlock.o
> tdbbackup.o(.text+0x27c): In function `main':
> /usr/local/samba/source/tdb/tdbbackup.c:132: undefined reference to
> `add_suffix'
> tdbbackup.o(.text+0x2a4):/usr/local/samba/source/tdb/tdbbackup.c:135:
> undefined reference to `verify_tdb'
> tdbbackup.o(.text+0x2f4):/usr/local/samba/source/tdb/tdbbackup.c:139:
> 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.... :-).

Jeremy.



More information about the samba-technical mailing list