Re: more OS X build problems
Mark Mentovai <www.mentovai.com-slash-contact.html@_._> Tue, 14 Jun 2005 01:37:17 -0400
| Newsgroups | gmane.comp.mozilla.devel.macosx |
|---|---|
| Organization | Usually well-organized |
| Message-ID | <www.mentovai.com-slash-contact.html-63AE68.01371714062005@h-204-29-187-156.netscape.com> |
[email protected] wrote: > I just checked out out the most recent Mozilla trunk from CVS and > followed the build instructions on the Mozilla website. During the > compilation, I ran into the error below. Are there any steps I'm > missing or is the problem with the actual code? [...] > nsStandardURL.cpp: In member function `nsresult > nsStandardURL::BuildNormalizedSpec(const char*)': > ../../../dist/include/string/nsTSubstring.h:502: error: > 'nsCSubstring::nsCSubstring(const nsCSubstring&)' is protected > nsStandardURL.cpp:497: error: within this context > ../../../dist/include/string/nsTSubstring.h:502: error: > 'nsCSubstring::nsCSubstring(const nsCSubstring&)' is protected > nsStandardURL.cpp:497: error: within this context You are using gcc 4.0 from Xcode 2.0. It's a prerelease compiler with a handful of bugs. It won't work, ever. As Javier points out, you need "sudo gcc_select 3.3". You should update to Xcode 2.1, which includes a gcc 4.0 that won't be tripped up by this same bug. You won't be able to build an unpatched Mozilla with that compiler yet, but a patch is available (bug 294244) and will be finding its way onto the trunk. Mark