我试图为 powerdns 编译 mongodbbackend 模块,但我遇到了这个问题:
In file included from mongodbbackend.cc:18:
mongodbbackend.hh: At global scope:
mongodbbackend.hh:109: error: ISO C++ forbids declaration of ‘auto_ptr’ with no type
mongodbbackend.hh:109: error: expected unqualified-id before ‘<’ token
make[3]: *** [mongodbbackend.lo] Error 1
make[3]: Leaving directory `/root/pdns-3.0.1/modules/mongodbbackend'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/pdns-3.0.1/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/pdns-3.0.1'
make: *** [all] Error 2
我试图包含来自 mongodb 2.0.2 和 2.0.3 的文件。以下是模块来源: http ://wiki.powerdns.com/trac/browser/trunk/pdns/modules/mongodbbackend
有什么建议么?