Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Compile client with gcc 4.1.2

Jayyall Klaar
Registered User
Join date: 11 Aug 2007
Posts: 21
08-24-2007 18:42
I read on the wiki that there were some changes which could allow the client to be compiled with the 4.x gcc.

Does anyone have a link to the changes?
Katrina Bekkers
Gentooed
Join date: 30 Mar 2007
Posts: 66
08-25-2007 01:11
That info is sort of obsolete.

https://jira.secondlife.com/browse/VWR-17
https://jira.secondlife.com/browse/VWR-255
https://jira.secondlife.com/browse/VWR-1585

As you can see, most of the incompatibilities with gcc4 come from needless specification of class definitions inside class objects. Easy to spot (gcc4 complains about them), easy to fix.
Asriazh Frye
Smart Cookie
Join date: 30 Sep 2006
Posts: 173
08-25-2007 03:36
Last time i compiled the source, i forgot to switch from gcc 4.2 back to 3.4.6 as i normally do. And it compiled just fine, to my surprise. No errors showed up.

-Asriazh

Edit:
Actually i just tried with the latest 1.18.2 source. g++4.2 stopped with an error at llmath, but g++4.1 worked fine.
Fluf Fredriksson
Registered User
Join date: 8 Feb 2007
Posts: 248
08-28-2007 07:18
On Debian it's pretty trivial to have several gcc versions installed concurrently. At the moment I have 3.4 / 4.1 and 4.2 installed with base files for 3.3 lurking as well.

The SL source seems to select the 3.4 compiler correctly without me having to do anything so while it would be nice to retire the older gcc versions and uninstall them, it's not an issue really.