Public bug reported:
File src/bind9/bind9-9.8.1.dfsg.P1/debian/rules
Added --with-dlz-mysql=yes as per below
-------
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)
-------
Compile - dpkg-buildpackage -rfakeroot -b
Error below
......
export BASEOBJS="builtin.lo client.lo config.lo control.lo
controlconf.lo interfacemgr.lo listenlist.lo log.lo logconf.lo main.lo
notify.lo query.lo server.lo sortlist.lo statschannel.lo tkeyconf.lo
tsigconf.lo update.lo xfrout.lo zoneconf.lo lwaddr.lo lwresd.lo lwdclient.lo
lwderror.lo lwdgabn.lo lwdgnba.lo lwdgrbn.lo lwdnoop.lo lwsearch.lo
dlz_drivers.lo sdlz_helper.lo dlz_mysql_driver.lo unix/os.lo
unix/dlz_dlopen_driver.lo"; \
if [ X"" = X -o X"${MAKE_SYMTABLE:-}" = X ] ; then /bin/bash
/usr/local/src/bind9/bind9-9.8.1.dfsg.P1/libtool --mode=link gcc
-fno-strict-aliasing -DDIG_SIGCHASE -O2 -I/usr/include/libxml2
-Wl,-Bsymbolic-functions -Wl,-z,relro -o named ${BASEOBJS} ${LIBS0}
../../lib/lwres/liblwres.la ../../lib/dns/libdns.la -lgssapi_krb5 -lcrypto
../../lib/bind9/libbind9.la ../../lib/isccfg/libisccfg.la
../../lib/isccc/libisccc.la ../../lib/isc/libisc.la -L/usr/lib/mysql
-lmysqlclient -lz -lcrypt -lm -ldl -lcap -L/usr/lib/x86_64-linux-gnu -lxml2;
else rm -f namedtmp0; /bin/bash
/usr/local/src/bind9/bind9-9.8.1.dfsg.P1/libtool --mode=link gcc
-fno-strict-aliasing -DDIG_SIGCHASE -O2 -I/usr/include/libxml2
-Wl,-Bsymbolic-functions -Wl,-z,relro -o namedtmp0 ${BASEOBJS} ${LIBS0}
../../lib/lwres/liblwres.la ../../lib/dns/libdns.la -lgssapi_krb5 -lcrypto
../../lib/bind9/libbind9.la ../../lib/isccfg/libisccfg.la
../../lib/isccc/libisccc.la ../../lib/isc/libisc.la -L/usr/lib/mysql
-lmysqlclient -lz -lcrypt -lm -ldl -lcap -L/usr/lib/x86_64-linux-gnu -lxml2
|| exit 1; rm -f named-symtbl.c named-symtbl.lo; ../../util/mksymtbl.pl -o
named-symtbl.c namedtmp0 || exit 1; /usr/bin/make named-symtbl.lo || exit 1; rm
-f namedtmp1; /bin/bash /usr/local/src/bind9/bind9-9.8.1.dfsg.P1/libtool
--mode=link gcc -fno-strict-aliasing -DDIG_SIGCHASE -O2
-I/usr/include/libxml2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o namedtmp1
${BASEOBJS} named-symtbl.lo ${LIBS0} ../../lib/lwres/liblwres.la
../../lib/dns/libdns.la -lgssapi_krb5 -lcrypto ../../lib/bind9/libbind9.la
../../lib/isccfg/libisccfg.la ../../lib/isccc/libisccc.la
../../lib/isc/libisc-nosymtbl.la -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lm
-ldl -lcap -L/usr/lib/x86_64-linux-gnu -lxml2 || exit 1; rm -f named-symtbl.c
named-symtbl.lo; ../../util/mksymtbl.pl -o named-symtbl.c namedtmp1 || exit 1;
/usr/bin/make named-symtbl.lo || exit 1; /bin/bash
/usr/local/src/bind9/bind9-9.8.1.dfsg.P1/libtool --mode=link gcc
-fno-strict-aliasing -DDIG_SIGCHASE -O2 -I/usr/include/libxml2
-Wl,-Bsymbolic-functions -Wl,-z,relro -o namedtmp2 ${BASEOBJS} named-symtbl.lo
${LIBS0} ../../lib/lwres/liblwres.la ../../lib/dns/libdns.la -lgssapi_krb5
-lcrypto ../../lib/bind9/libbind9.la ../../lib/isccfg/libisccfg.la
../../lib/isccc/libisccc.la ../../lib/isc/libisc-nosymtbl.la -L/usr/lib/mysql
-lmysqlclient -lz -lcrypt -lm -ldl -lcap -L/usr/lib/x86_64-linux-gnu -lxml2;
../../util/mksymtbl.pl -o named-symtbl2.c namedtmp2; diff named-symtbl.c
named-symtbl2.c || exit 1; mv namedtmp2 named; rm -f namedtmp0 namedtmp1
namedtmp2 named-symtbl2.c; fi
libtool: link: gcc -fno-strict-aliasing -DDIG_SIGCHASE -O2
-I/usr/include/libxml2 -Wl,-Bsymbolic-functions -Wl,-z -Wl,relro -o .libs/named
.libs/builtin.o .libs/client.o .libs/config.o .libs/control.o
.libs/controlconf.o .libs/interfacemgr.o .libs/listenlist.o .libs/log.o
.libs/logconf.o .libs/main.o .libs/notify.o .libs/query.o .libs/server.o
.libs/sortlist.o .libs/statschannel.o .libs/tkeyconf.o .libs/tsigconf.o
.libs/update.o .libs/xfrout.o .libs/zoneconf.o .libs/lwaddr.o .libs/lwresd.o
.libs/lwdclient.o .libs/lwderror.o .libs/lwdgabn.o .libs/lwdgnba.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
--------
The compile without Mysql works so it has something to do with the MYSQL
driver or a missing package
-------
FIX
bind9-9.8.1.dfsg.P1/contrib/dlz/drivers/sdlz_helper.c
Patch : sdlz_helper.patch
diff -u -r1.3 sdlz_helper.c
--- contrib/dlz/drivers/sdlz_helper.c 14 May 2010 06:29:37 -0000 1.3
+++ contrib/dlz/drivers/sdlz_helper.c 5 Sep 2011 17:31:30 -0000
@@ -50,8 +50,6 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#ifdef DLZ
-
#include <config.h>
#include <dns/log.h>
@@ -527,5 +525,3 @@
return isc_mem_strdup(mctx, value);
}
-
-#endif
REF
http://article.gmane.org/gmane.network.dns.bind9.dlz/2227/match=contrib+dlz+drivers+sdlz_helper+c
** Affects: ubuntu
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1095961
Title:
Bind DLZ compile error
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1095961/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs