FAQ
Great, glad to hear you got it solved. Would you mind sharing how?
That way, if someone else runs in to the same problem, the answer will
be here.

Thanks,
Chris

On Mar 3, 6:54 am, José Arthur Benetasso Villanova
wrote:
Hi Chris.

No, I'm not compiling mongodb, but a PowerDNS module as I told in the 1st
paragraph.

I solved the problem myself. Thanks to encoraging me.








On Fri, Mar 2, 2012 at 9:05 PM, Chris Westin wrote:
Where did you get this set of compilation options from?
I just checked our own SConstruct file (we use scons to build
MongoDB), and it includes -fno-strict-aliasing, which disables that
warning:  https://github.com/mongodb/mongo/blob/master/SConstruct#L698
.
Our instructions for building are here:
http://www.mongodb.org/display/DOCS/Building+for+Linux
.
Chris
On Mar 2, 5:37 am, Zé wrote:
Hi all.
I'm trying to compile a mongodb backend to PowerDNS. Unfortunately I'm
getting an error that I can't solve myself and I need some help. i'm
using this version:
libmongodb-2.0.2-8.fc16.x86_64
mongodb-devel-2.0.2-8.fc16.x86_64
And I'm getting this message:
g++ -DHAVE_CONFIG_H -lmongoclient -lboost_thread -lboost_filesystem -
lboost_program_options -I. -I../.. -I/usr/include/mongo/ -pthread -
D_GNU_SOURCE -Wall -O2 -MT minimal.lo -MD -MP -MF .deps/minimal.Tpo -c
minimal.cc  -fPIC -DPIC -o .libs/minimal.o
In file included from /usr/include/mongo/client/../util/net/../../db/
jsobj.h:33:0,
from /usr/include/mongo/client/../util/net/../../db/
cmdline.h:20,
from /usr/include/mongo/client/../util/net/sock.h:25,
from /usr/include/mongo/client/../util/net/message.h:
20,
from /usr/include/mongo/client/dbclient.h:24,
from mongodbbackend.hh:10,
from minimal.cc:18:
/usr/include/mongo/client/../util/net/../../db/../util/optime.h: In
member function ‘long long unsigned int mongo::OpTime::asDate()
const’:
/usr/include/mongo/client/../util/net/../../db/../util/optime.h:
100:69: warning: dereferencing type-punned pointer will break strict-
aliasing rules [-Wstrict-aliasing]
/usr/include/mongo/client/../util/net/../../db/../util/optime.h: In
member function ‘long long int mongo::OpTime::asLL() const’:
/usr/include/mongo/client/../util/net/../../db/../util/optime.h:
103:60: warning: dereferencing type-punned pointer will break strict-
aliasing rules [-Wstrict-aliasing]
In file included from /usr/include/mongo/client/../util/net/../../db/
jsobj.h:41:0,
from /usr/include/mongo/client/../util/net/../../db/
cmdline.h:20,
from /usr/include/mongo/client/../util/net/sock.h:25,
from /usr/include/mongo/client/../util/net/message.h:
20,
from /usr/include/mongo/client/dbclient.h:24,
from mongodbbackend.hh:10,
from minimal.cc:18:
/usr/include/mongo/client/../util/net/../../db/../bson/
bsonobjbuilder.h: At global scope:
/usr/include/mongo/client/../util/net/../../db/../bson/
bsonobjbuilder.h:800:98: error: expected ‘,’ or ‘...’ before ‘&’ token
/usr/include/mongo/client/../util/net/../../db/../bson/
bsonobjbuilder.h: In function ‘mongo::BSONObjBuilder&
mongo::_appendIt(mongo::BSONObjBuilder&, const mongo::StringData&,
const mongo::theL (*)())’:
/usr/include/mongo/client/../util/net/../../db/../bson/
bsonobjbuilder.h:803:24: error: invalid type in declaration before
‘::’ token
/usr/include/mongo/client/../util/net/../../db/../bson/
bsonobjbuilder.h:803:24: warning: declaration of ‘int mongo::theL()’
has ‘extern’ and is initialized [enabled by default]
/usr/include/mongo/client/../util/net/../../db/../bson/
bsonobjbuilder.h:803:24: error: expected ‘;’ before ‘::’ token
/usr/include/mongo/client/../util/net/../../db/../bson/
bsonobjbuilder.h:803:24: error: ‘::const_iterator’ has not been
declared
/usr/include/mongo/client/../util/net/../../db/../bson/
bsonobjbuilder.h:803:41: error: expected ‘;’ before ‘i’
/usr/include/mongo/client/../util/net/../../db/../bson/
bsonobjbuilder.h:803:41: error: ‘i’ was not declared in this scope
/usr/include/mongo/client/../util/net/../../db/../bson/
bsonobjbuilder.h:803:45: error: ‘vals’ was not declared in this scope
/usr/include/mongo/client/../util/net/../../db/../bson/
bsonobjbuilder.h:803:57: error: expected ‘)’ before ‘;’ token
/usr/include/mongo/client/../util/net/../../db/../bson/
bsonobjbuilder.h:803:59: error: ‘i’ was not declared in this scope
/usr/include/mongo/client/../util/net/../../db/../bson/
bsonobjbuilder.h:803:64: error: ‘vals’ was not declared in this scope
/usr/include/mongo/client/../util/net/../../db/../bson/
bsonobjbuilder.h:803:80: error: expected ‘;’ before ‘)’ token
In file included from /usr/include/mongo/client/../util/net/../../db/
jsobj.h:43:0,
from /usr/include/mongo/client/../util/net/../../db/
cmdline.h:20,
from /usr/include/mongo/client/../util/net/sock.h:25,
from /usr/include/mongo/client/../util/net/message.h:
20,
from /usr/include/mongo/client/dbclient.h:24,
from mongodbbackend.hh:10,
from minimal.cc:18:
/usr/include/mongo/client/../util/net/../../db/../bson/bson-inl.h: In
function ‘int mongo::compareElementValues(const mongo::BSONElement&,
const mongo::BSONElement&)’:
/usr/include/mongo/client/../util/net/../../db/../bson/bson-inl.h:
69:27: warning: declaration of ‘long long int mongo::theL()’ has
‘extern’ and is initialized [enabled by default]
/usr/include/mongo/client/../util/net/../../db/../bson/bson-inl.h:
69:32: error: invalid pure specifier (only ‘= 0’ is allowed) before
‘.’ token
/usr/include/mongo/client/../util/net/../../db/../bson/bson-inl.h:
69:45: error: function ‘long long int mongo::theL()’ is initialized
like a variable
/usr/include/mongo/client/../util/net/../../db/../bson/bson-inl.h:
78:21: warning: declaration of ‘int mongo::theL()’ has ‘extern’ and is
initialized [enabled by default]
/usr/include/mongo/client/../util/net/../../db/../bson/bson-inl.h:
78:26: error: invalid pure specifier (only ‘= 0’ is allowed) before
‘.’ token
/usr/include/mongo/client/../util/net/../../db/../bson/bson-inl.h:
78:38: error: function ‘int mongo::theL()’ is initialized like a
variable
In file included from /usr/include/mongo/client/dbclient.h:24:0,
from mongodbbackend.hh:10,
from minimal.cc:18:
/usr/include/mongo/client/../util/net/message.h: In member function
‘int& mongo::MsgData::dataAsInt()’:
/usr/include/mongo/client/../util/net/message.h:127:35: warning:
dereferencing type-punned pointer will break strict-aliasing rules [-
Wstrict-aliasing]
Thanks in advance.
--
You received this message because you are subscribed to the Google Groups
"mongodb-user" group.
To post to this group, send email to mongodb-user@googlegroups.com.
To unsubscribe from this group, send email to
mongodb-user+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/mongodb-user?hl=en.
--
José Arthur Benetasso Villanova
--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongodb-user@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 5 | next ›
Discussion Overview
groupmongodb-user @
categoriesmongodb
postedMar 2, '12 at 1:42p
activeSep 6, '13 at 2:21p
posts5
users3
websitemongodb.org
irc#mongodb

People

Translate

site design / logo © 2022 Grokbase