Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7583607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:43:17+00:00 2026-05-30T18:43:17+00:00

I was trying to compile the mongodbbackend module for powerdns but I’m stuck with

  • 0

I was trying to compile the mongodbbackend module for powerdns but I’m stuck with this problem:

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

I tried to include files from mongodb 2.0.2 and 2.0.3.
Here are the module sources:
http://wiki.powerdns.com/trac/browser/trunk/pdns/modules/mongodbbackend

Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T18:43:19+00:00Added an answer on May 30, 2026 at 6:43 pm

    Can you try this patch?

    diff –git a/modules/mongodbbackend/mongodbbackend.hh b/modules/mongodbbackend/mongodbbackend.hh
    index 816128f..4f7cf78 100644
    — a/modules/mongodbbackend/mongodbbackend.hh
    +++ b/modules/mongodbbackend/mongodbbackend.hh
    @@ -1,13 +1,13 @@
    #ifndef MONGODB_HH
    #define MONGODB_HH

    +#include "client/dbclient.h"
     #include "pdns/dnsbackend.hh"
    
     #undef VERSION
     #include <string>
     using std::string;
    -
    -#include "client/dbclient.h"
    +using std::auto_ptr;
    
     class MONGODBException {
     public:
    

    It’s in https://github.com/azlev/powerdns/commit/a402d8493e5610e139ea19a9ef700e26b2e6e35c

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to compile fastboot for Android using this guide , but I'm getting
When trying to compile a c++ file in textmate (this happens when clicking run),
Was trying to compile some code from this SO question and run into this
Trying to compile a iPhone/iPad application with SDK3.2 and am getting this error: Undefined
When trying to compile a file that include winnt.h via windows.h, I get the
Im trying to compile a simple class library project,its from Source Safe. However,when i
Im trying to compile but im getting these errors: 1>.\item.cpp(123) : warning C4800: 'int'
I am trying to compile some C++ code from the Festival project. When I
i am trying to compile a pom file for a project (say com.mycompany.package2 ).
Iam trying to compile rtmpd using VS2008 Iam getting this error. Error 63 error

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.