[Pdns-users] Powerdns with OpenDBC compileproblem - "/usr/bin/ld: cannot find -l-lz"

Robert Dunkley Robert at saq.co.uk
Fri Oct 23 10:14:21 UTC 2009


I am trying to install PowerDNS with OpenDBX and FreeTDS for use with
MsSQL. I have compiled and installed FreeTDS and OpenDBX (With
./configure --with-backends="mssql") and configure with the "opendbx"
options is successful. 

However when I try to do make the following error occurs:
g++ -shared -nostdlib
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtbeginS.o  .libs/odbxbackend.o
.libs/odbxprivate.o  -l -lz -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2
-L/lib/../lib64 -L/usr/lib/../lib64 -lstdc++ -lm -lc -lgcc_s
-Wl,-soname -Wl,libopendbxbackend.so -o .libs/libopendbxbackend.so
/usr/bin/ld: cannot find -l-lz
collect2: ld returned 1 exit status
make[3]: *** [libopendbxbackend.la] Error 1
make[3]: Leaving directory `/usr/src/pdns-2.9.22/modules/opendbxbackend'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/pdns-2.9.22/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/pdns-2.9.22'
make: *** [all] Error 2

Zlib and Zlib-devel is installed and the OS is Centos 5.3. It probably
is a missing requirement but I cannot seem to work out what is missing.
Does anyone have any ideas on what the problem might be?



The SAQ Group

Registered Office: 18 Chapel Street, Petersfield, Hampshire GU32 3DZ
SAQ is the trading name of SEMTEC Limited. Registered in England & Wales
Company Number: 06481952

http://www.saqnet.co.uk AS29219

SAQ Group Delivers high quality, honestly priced communication and I.T. services to UK Business.

Broadband : Domains : Email : Hosting : CoLo : Servers : Racks : Transit : Backups : Managed Networks : Remote Support.

ISPA Member

More information about the Pdns-users mailing list