Hi all. The problem is that both pdns and mongodb exports same functions with different implementations:
[ze@reality pdns]$ LD_DEBUG=bindings LD_LIBRARY_PATH=$PWD/lib/ sbin/pdns_server 2>&1 | grep md5_ 16113: binding file /usr/lib64/libmongoclient.so [0] to /usr/lib64/libmongoclient.so [0]: normal symbol `_Z11do_md5_testv' 16113: binding file /usr/lib64/libmongoclient.so [0] to sbin/pdns_server [0]: normal symbol `md5_finish' 16113: binding file /usr/lib64/libmongoclient.so [0] to /usr/lib64/libmongoclient.so [0]: normal symbol `md5_append' 16113: binding file /usr/lib64/libmongoclient.so [0] to /usr/lib64/libmongoclient.so [0]: normal symbol `md5_init' mongodb uses all but md5_finish from it's code. What I did sometime ago was to change polarssl visibility to make the backend work, but it's mot wise change polarssl to make mongobackend work. diff --git a/pdns/ext/polarssl-1.1.1/library/Makefile b/pdns/ext/polarssl-1.1.1/library/Makefile index 26de4d7..2f7cdc6 100644 --- a/pdns/ext/polarssl-1.1.1/library/Makefile +++ b/pdns/ext/polarssl-1.1.1/library/Makefile @@ -1,7 +1,7 @@ # Also see "include/polarssl/config.h" -CFLAGS += -I../include -D_FILE_OFFSET_BITS=64 -Wall -W -Wdeclaration-after-statement +CFLAGS += -I../include -D_FILE_OFFSET_BITS=64 -Wall -W -Wdeclaration-after-statement -fvisibility=hidden OFLAGS = -O Not sure the best route to solve this problem, maybe mongodb should not export md5 functions. On Mon, May 27, 2013 at 2:54 AM, Aki Tuomi <cmo...@youzen.ext.b2.fi> wrote: > Until this issue is resolved, you could run pipe or remotebackend script to > utilize mongodb. I would, however, suggest you wait for 3.3RC1 before using > remotebackend as it doesn't really work before that. > > Aki Tuomi > > On Sun, May 26, 2013 at 11:44:04PM +0200, fredrik danerklint wrote: > > I'm the author for the mongodb backend. > > > > It was me who told Peter and Bert to delete the backend from PowerDNS. > > > > The reason for this was simple. When the client of Mongodb > > (libmongoclient.a) initialize, it will run through a number of > > internal test to see that everything is ok. One of those tests is to > > check for a MD5 sum. This will fail with an assert if you would try > > it, since > > libmongoclient.a will call the function in PowerDNS with the same name, > > but with differents parameters, so the result will not be the > > expected, and therefor will terminate with an assert. > > > > > > >Hello. What happened with mongodb backend? Why nobody cares of it? > > >Is that posible to revert it into official status of supported backends? > > -- > > //fredan > > > > > > _______________________________________________ > > Pdns-users mailing list > > Pdns-users@mailman.powerdns.com > > http://mailman.powerdns.com/mailman/listinfo/pdns-users > > > > _______________________________________________ > Pdns-users mailing list > Pdns-users@mailman.powerdns.com > http://mailman.powerdns.com/mailman/listinfo/pdns-users > > -- José Arthur Benetasso Villanova
_______________________________________________ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users