Märcz Gábor | 15 Apr 2003 00:56
Picon
Favicon

error compiling the new version of DLZ

Hi !
 
I have try to compile the new version with the same configuration and i got error:
 
the config is :
./configure  --sysconfdir=/etc/bind --with-dlz-mysql --enable-threads=no
 
 
and the error :
 
gcc -g -O2 -o dlzbdb dlzbdb.o ../../lib/isc/libisc.a  -lnsl
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make[2]: *** [dlzbdb] Error 1
make[2]: Leaving directory `/home/dns/bind/bind-9.2.1/bin/dlzbdb'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/dns/bind/bind-9.2.1/bin'
make: *** [subdirs] Error 1
 
when is compile with old version i don't get error.
 
 Gábor  Märcz
Rob Butler | 15 Apr 2003 01:16
Picon

Re: error compiling the new version of DLZ

Hello Marcz,
 
Michael van Elst was kind enough to point this out already.  The problem is if you don't configure for --with-dlz-bdb then the make file attempts to build dlzbdb, but all the code is ifdef'd out, so it's an empty file basically.  It can't link an empty file.  For now you can edit Makefile in the bin/dlzbdb directory and remove the dlzbdb entry.  Then run your make again and things should build fine.
 
Sorry for the hassle..  New to autoconf.
 
Later
Rob
----- Original Message -----
Sent: Monday, April 14, 2003 6:56 PM
Subject: [Bind-dlz-testers] error compiling the new version of DLZ

Hi !
 
I have try to compile the new version with the same configuration and i got error:
 
the config is :
./configure  --sysconfdir=/etc/bind --with-dlz-mysql --enable-threads=no
 
 
and the error :
 
gcc -g -O2 -o dlzbdb dlzbdb.o ../../lib/isc/libisc.a  -lnsl
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make[2]: *** [dlzbdb] Error 1
make[2]: Leaving directory `/home/dns/bind/bind-9.2.1/bin/dlzbdb'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/dns/bind/bind-9.2.1/bin'
make: *** [subdirs] Error 1
 
when is compile with old version i don't get error.
 
 Gábor  Märcz

Gmane