Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When compiling Bind with DLZ support it does not want to compile

bind9/bind9-9.8.1.dfsg.P1/debian/rules

configure: configure-stamp
configure-stamp:
        dh_testdir
        ./configure --prefix=/usr \
                --mandir=\$${prefix}/share/man \
                --infodir=\$${prefix}/share/info \
                --sysconfdir=/etc/bind \
                --localstatedir=/var \
                --disable-threads \
                --enable-largefile \
                --with-libtool \
                --enable-shared \
                --enable-static \
                --with-openssl=/usr \
                --with-gssapi=/usr \
                --with-gnu-ld \
                --with-dlz-mysql=yes \
                --with-dlz-bdb=no \
                --with-geoip=/usr \
                --enable-ipv6 \
                $(EXTRA_FEATURES)

dpkg-buildpackage -rfakeroot -b

Error below.

nba.o .libs/lwdgrbn.o .libs/lwdnoop.o .libs/lwsearch.o .libs/dlz_drivers.o .libs/sdlz_helper.o .libs/dlz_mysql_driver.o unix/.libs/os.o unix/.libs/dlz_dlopen_driver.o  ../../lib/lwres/.libs/liblwres.so ../../lib/dns/.libs/libdns.so -lgssapi_krb5 -lcrypto ../../lib/bind9/.libs/libbind9.so ../../lib/isccfg/.libs/libisccfg.so ../../lib/isccc/.libs/libisccc.so ../../lib/isc/.libs/libisc.so -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lm -ldl -lcap -L/usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libxml2.so 
.libs/dlz_mysql_driver.o: In function `mysql_get_resultset':
dlz_mysql_driver.c:(.text+0x3e7): undefined reference to `sdlzh_build_querystring'
dlz_mysql_driver.c:(.text+0x48f): undefined reference to `sdlzh_build_querystring'
dlz_mysql_driver.c:(.text+0x4af): undefined reference to `sdlzh_build_querystring'
dlz_mysql_driver.c:(.text+0x4cf): undefined reference to `sdlzh_build_querystring'
dlz_mysql_driver.c:(.text+0x4ef): undefined reference to `sdlzh_build_querystring'
.libs/dlz_mysql_driver.o:dlz_mysql_driver.c:(.text+0x50f): more undefined references to `sdlzh_build_querystring' follow
.libs/dlz_mysql_driver.o: In function `mysql_create':
dlz_mysql_driver.c:(.text+0x10e7): undefined reference to `sdlzh_get_parameter_value'
dlz_mysql_driver.c:(.text+0x110e): undefined reference to `sdlzh_get_parameter_value'
dlz_mysql_driver.c:(.text+0x11bd): undefined reference to `sdlzh_destroy_sqldbinstance'
dlz_mysql_driver.c:(.text+0x12b5): undefined reference to `sdlzh_build_sqldbinstance'
dlz_mysql_driver.c:(.text+0x1381): undefined reference to `sdlzh_build_sqldbinstance'
dlz_mysql_driver.c:(.text+0x13be): undefined reference to `sdlzh_get_parameter_value'
dlz_mysql_driver.c:(.text+0x1415): undefined reference to `sdlzh_get_parameter_value'
dlz_mysql_driver.c:(.text+0x146a): undefined reference to `sdlzh_get_parameter_value'
dlz_mysql_driver.c:(.text+0x14bf): undefined reference to `sdlzh_get_parameter_value'
dlz_mysql_driver.c:(.text+0x14d8): undefined reference to `sdlzh_get_parameter_value'
.libs/dlz_mysql_driver.o:dlz_mysql_driver.c:(.text+0x14f1): more undefined references to `sdlzh_get_parameter_value' follow
.libs/dlz_mysql_driver.o: In function `mysql_create':
dlz_mysql_driver.c:(.text+0x1649): undefined reference to `sdlzh_build_sqldbinstance'
dlz_mysql_driver.c:(.text+0x16ab): undefined reference to `sdlzh_build_sqldbinstance'
.libs/dlz_mysql_driver.o: In function `mysql_destroy':
dlz_mysql_driver.c:(.text+0x1006): undefined reference to `sdlzh_destroy_sqldbinstance'
collect2: ld returned 1 exit status
make[3]: *** [named] Error 1
make[3]: Leaving directory `/usr/local/src/bind9/bind9-9.8.1.dfsg.P1/bin/named'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/usr/local/src/bind9/bind9-9.8.1.dfsg.P1/bin'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/usr/local/src/bind9/bind9-9.8.1.dfsg.P1'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
share|improve this question
add comment

1 Answer

This worked to get me passed the error above.

http://www.whitneytechnologies.com/?p=169

share|improve this answer
    
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  Oyibo Jan 6 '13 at 8:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.