Re: dlz-bdbhpt-dynamic - a dlopen bdbhpt DLZ driver

Jan-Piet Mens <[email protected]> Mon, 16 Jul 2012 09:18:09 +0200
Newsgroups gmane.network.dns.bind9.dlz
Message-ID <[email protected]>
Mark,

> Over the weekend I've taken it upon myself to write up a dlopen() capable
> bdbhpt DLZ driver.

That looks pretty slick. 

I can't for the life of me link the module, though. I'm running on OS/X
10.6 and both DLZ example (from BIND 9.9.1-P1 contrib) and my own [1]
link fine with dlz-minimal (V2).

|   cc -fPIC -g -I. -I/usr/local/BerkeleyDB.4.7/include -shared -o \
|        dlz_bdbhpt_dynamic.so dlz_bdbhpt_dynamic.c \
|        -L/usr/local/BerkeleyDB.4.7/lib -ldb 
|   Undefined symbols:
|     "_dns_sdlz_putnamedrr", referenced from:
|         _dlz_allnodes in ccHsui8i.o
|     "_dns_sdlz_putrr", referenced from:
|         _dlz_lookup in ccHsui8i.o
|   ld: symbol(s) not found

This must be due to lack of morning coffee...

> * This provides the externally loadable bdbhpt DLZ driver, without
> * update support

Now, about the last bit of that comment in the source... ;-) 

Regards,

        -JP

[1] https://github.com/jpmens/dlz_lua

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/