On 06.01.2013 11:56, Lance Corrimal wrote: > Whenever I'm building the current development source on openSUSE 12.2 (read: > with gcc 4.7.1) I get lots of warnings about boost-related things. Some of > them I've been able to correct myself, others I'm stumped... the causes seem > to be in 3p-boost itself, and i'd rather build with exactly the same libs as > the lab... > > here's one of many examples: > > http://paste.opensuse.org/77018665 (it's way too long and unreadable for > email) > > any ideas / tips / hints for me? google results seem to suggest something or > the other about namespaces... For the problems indicated in the pasted log excerpt, I think they are caused by void intrusive_ptr_add_ref(LLIOPipe* p) and void intrusive_ptr_release(LLIOPipe* p) being used in boost/boost/smart_ptr/intrusive_ptr.hpp <https://bitbucket.org/lindenlab/3p-boost/src/d25385ff24aea3a6dcc174c45b33ee367db16458/boost/boost/smart_ptr/intrusive_ptr.hpp?at=default#cl-41> but being (forward) declared only after <https://bitbucket.org/lindenlab/viewer-development/src/71eaab4cf442a25cdcf1d26c9595c34e7997c6b8/indra/llmessage/lliopipe.h#cl-56> <boost/intrusive_ptr.hpp> is included <https://bitbucket.org/lindenlab/viewer-development/src/71eaab4cf442a25cdcf1d26c9595c34e7997c6b8/indra/llmessage/lliopipe.h#cl-32> in indra/llmessage/lliopipe.h. Moving the forward declaration of these functions before that inclusion probably lets you get rid of the warning, but might require to move the forward declaration of class LLIOPipe <https://bitbucket.org/lindenlab/viewer-development/src/71eaab4cf442a25cdcf1d26c9595c34e7997c6b8/indra/llmessage/lliopipe.h#cl-38> even before both.
See http://gcc.gnu.org/gcc-4.7/porting_to.html > section "Name lookup changes". Cheers, Borun
_______________________________________________ Policies and (un)subscribe information available here: http://wiki.secondlife.com/wiki/OpenSource-Dev Please read the policies before posting to keep unmoderated posting privileges