Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-8078

Error compiling with C++11 enabled

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: qpid-cpp-1.37.0
    • Fix Version/s: None
    • Component/s: C++ Build
    • Labels:
      None
    • Environment:

      linearstore option is enabled

      gcc 4.8.5 with c++11 flag enabled

       

      The problem is  0  :

      should be nullptr or static_cast<u_int32_t>(0)

       

      Description

      [ 73%] Building CXX object src/CMakeFiles/linearstore.dir/qpid/linearstore/MessageStoreImpl.cpp.o
      /usr/local/projects/gema4_dds/pkg/qpid-cpp-1.37.0/src/qpid/linearstore/MessageStoreImpl.cpp: In member function ‘void qpid::linearstore::MessageStoreImpl::init(bool)’:
      /usr/local/projects/gema4_dds/pkg/qpid-cpp-1.37.0/src/qpid/linearstore/MessageStoreImpl.cpp:230:36: error: call of overloaded ‘DbEnv(int)’ is ambiguous
                   dbenv.reset(new DbEnv(0));
                                          ^
      /usr/local/projects/gema4_dds/pkg/qpid-cpp-1.37.0/src/qpid/linearstore/MessageStoreImpl.cpp:230:36: note: candidates are:
      In file included from /usr/local/projects/gema4_dds/pkg/qpid-cpp-1.37.0/objdir/src/db-inc.h:1:0,
                       from /usr/local/projects/gema4_dds/pkg/qpid-cpp-1.37.0/src/qpid/linearstore/BindingDbt.h:25,
                       from /usr/local/projects/gema4_dds/pkg/qpid-cpp-1.37.0/src/qpid/linearstore/MessageStoreImpl.cpp:27:
      /usr/local/projects/gema4_dds/pkg/DBBerkley/include/db_cxx.h:916:2: note: DbEnv::DbEnv(const DbEnv&)
        DbEnv(const DbEnv &);
        ^
      /usr/local/projects/gema4_dds/pkg/DBBerkley/include/db_cxx.h:518:2: note: DbEnv::DbEnv(DB_ENV*)
        DbEnv(DB_ENV *dbenv);
        ^
      /usr/local/projects/gema4_dds/pkg/DBBerkley/include/db_cxx.h:516:2: note: DbEnv::DbEnv(u_int32_t)
        DbEnv(u_int32_t flags);
        ^
      make[2]: *** [src/CMakeFiles/linearstore.dir/qpid/linearstore/MessageStoreImpl.cpp.o] Error 1
      make[1]: *** [src/CMakeFiles/linearstore.dir/all] Error 2
      make: *** [all] Error 2

        Attachments

        1. error-qpid
          1 kB
          Daniel Gavrila

          Activity

            People

            • Assignee:
              justi9 Justin Ross
              Reporter:
              d.gavrila Daniel Gavrila
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: