[opensource-dev] gcc 4.7.1: lotsa warnings about boost

2013-01-06 Thread Lance Corrimal
Hi,


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...


cheers,

LC

___
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


Re: [opensource-dev] gcc 4.7.1: lotsa warnings about boost

2013-01-06 Thread Henri Beauchamp
On Sun, 06 Jan 2013 11:56:31 +0100, Lance Corrimal wrote:

> Hi,
> 
> 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...

There is currently a horrible mix of boost libraries versions used to
build Linden's pre-built libraries (leading to many linking conflicts
and errors), not to mention that LL inexplicably migrated (from boost
v1.48 onwards) to shared boost libraries linking for the Linux viewer
builds, resulting in an enormous 20Mb boost regex shared lib to be
included into the Linux viewer package (while only 100Kb or so of this
library's functions are actually used by the viewer: that's INSANE !)...

My advice is therefore to stick with either boost v1.45 (for Linux
and Windows) or v1.48 (for MacOS-X) pre-built libraries, that will
link properly with the rest of LL's pre-built libraries for now.

Henri.
___
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


[opensource-dev] (was: gcc 4.7.1: lotsa warnings about boost)

2013-01-06 Thread Boroondas Gupte
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

but being (forward) declared only after

 is included

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

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

Re: [opensource-dev] gcc 4.7.1: lotsa warnings about boost

2013-01-06 Thread Nicky Perian
I have not built with gcc 4.7.1 or openSUSE 12.2. I stay as close to LL's build 
environment as possible and use debian squeeze with gcc 4.5.
Is your source repository current? If so, I can try to build.
Can you build viewer-release? 

I think siana commented about gcc 4.7 sometime back with some recommended build 
parameters. IIRC it was adding -fpermissive and a couple others.

  



>
> From: Lance Corrimal 
>To: opensource-dev@lists.secondlife.com 
>Sent: Sunday, January 6, 2013 4:56 AM
>Subject: [opensource-dev] gcc 4.7.1: lotsa warnings about boost
> 
>Hi,
>
>
>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...
>
>
>cheers,
>
>LC
>
>___
>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
>
>
>___
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

Re: [opensource-dev] gcc 4.7.1: lotsa warnings about boost

2013-01-06 Thread Boroondas Gupte
On 06.01.2013 15:19, Nicky Perian wrote:
>
> 
> *From:* Lance Corrimal 
> *To:* opensource-dev@lists.secondlife.com
> *Sent:* Sunday, January 6, 2013 4:56 AM
> *Subject:* [opensource-dev] gcc 4.7.1: lotsa warnings about boost
>
> [...]
>
> http://paste.opensuse.org/77018665  (it's way too long and
> unreadable for
> email)
>
> [...]
>
> I think siana commented about gcc 4.7 sometime back with some
> recommended build parameters. IIRC it was adding -fpermissive and a
> couple others.
-fpermissive is already in use here, or Lance would get errors rather
than warnings.

Cheers,
B.
___
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

Re: [opensource-dev] gcc 4.7.1: lotsa warnings about boost

2013-01-06 Thread Carlo Wood
On Sun, 06 Jan 2013 11:56:31 +0100
Lance Corrimal  wrote:

> Hi,
> 
> 
> 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...

This is just one of the many many examples showing that a lot of the
Linden code was written by people who probably learned C++ in a 2 week
course before starting to hack the viewer code.

The solution is rather simple, really. Now I haven't looked at v-d in a
while, but last time I compiled it I compiled it with gcc 4.7.2 and
boost 1.49 and that gave me the same error as I see at the top of your
paste (only looked at the first error by the way), which can be
resolved by simply removing the nonsensical 'namespace boost'.

Everywhere where you see

namespace boost {
 // something with *intrusive*
}

remove the 'namespace boost {' and '}'.

-- 
Carlo Wood 
___
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


Re: [opensource-dev] gcc 4.7.1: lotsa warnings about boost

2013-01-06 Thread Tank Master
Unfortunately, you can't use boost 1.45 ll provides because it lacks thread.  
Boost thread was added as part of Monty's updating the texture fetcher, and the 
ll boost repository already had been updated to include boost 1.48, so he just 
enabled packaging thread with is and used that version.  Shortly afterword, 
boost got updated to 1.52 and code updated to use the new filepicker V3 api.
 ~Tank> Date: Sun, 6 Jan 2013 14:22:26 +0100
> From: sl...@free.fr
> To: opensource-dev@lists.secondlife.com
> Subject: Re: [opensource-dev] gcc 4.7.1: lotsa warnings about boost
> 
> On Sun, 06 Jan 2013 11:56:31 +0100, Lance Corrimal wrote:
> 
> > Hi,
> > 
> > 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...
> 
> There is currently a horrible mix of boost libraries versions used to
> build Linden's pre-built libraries (leading to many linking conflicts
> and errors), not to mention that LL inexplicably migrated (from boost
> v1.48 onwards) to shared boost libraries linking for the Linux viewer
> builds, resulting in an enormous 20Mb boost regex shared lib to be
> included into the Linux viewer package (while only 100Kb or so of this
> library's functions are actually used by the viewer: that's INSANE !)...
> 
> My advice is therefore to stick with either boost v1.45 (for Linux
> and Windows) or v1.48 (for MacOS-X) pre-built libraries, that will
> link properly with the rest of LL's pre-built libraries for now.
> 
> Henri.
> ___
> 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
  ___
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

Re: [opensource-dev] gcc 4.7.1: lotsa warnings about boost

2013-01-06 Thread Nicky D.
Try this and see if it helps
http://hg.phoenixviewer.com/phoenix-firestorm-lgpl/rev/4fa73607d364

(skip the parts about FAA/FAD as you do not have those headers)

Cheers,
   Nicky


On Sun, Jan 6, 2013 at 11:56 AM, Lance Corrimal
wrote:

> Hi,
>
>
> 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...
>
>
> cheers,
>
> LC
>
> ___
> 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
>
___
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

Re: [opensource-dev] gcc 4.7.1: lotsa warnings about boost

2013-01-06 Thread Henri Beauchamp
On Sun, 6 Jan 2013 14:49:04 -0800, Tank Master wrote:

> Unfortunately, you can't use boost 1.45 ll provides because it lacks
> thread.

True, but I recompiled boost from 3p-boost v1.45. You can use the
pre-compiled libraries I'm using for the Cool VL Viewer, if you wish:
Linux:
http://sldev.free.fr/libraries/12650/boost-1.45.0-linux-20110310c.tar.bz2
(MD5: 5b4a0725053fe5076a12d591fd454ef5)

Windows:
http://sldev.free.fr/libraries/12650/boost-1.45.0-windows-20110310c.tar.bz2
(MD5: 1cad14c6c29fbc6588117bad831fa4b0)

For Darwin, I'm currently using LL's v1.48:
http://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3p-boost/rev/261457/arch/Darwin/installer/boost-1.48.0-darwin-20120710.tar.bz2
(MD5: 36aa500e13cdde61607b6e93065206ec)

Henri.
___
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