Firefox 1.5.0.2 / 1.5.0.3 build errors

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Firefox 1.5.0.2 / 1.5.0.3 build errors

Mozilla-3
I've been trying all day to build Firefox 1.5.0.2 and 1.5.0.3 under
Windows XP Pro, using a fresh install of cygwin, and MS Visual Studio
2003 (i.e., VC7.1).

I've followed all the steps on the web site, I've set my environment
variables appropriately, and no matter what I do, I end up with an error
in c:\mozilla\dist\include\string\nsString.h(55):  error C2006:
'#include' : expected a filename, found 'identifier'.

When I look at the line in question, it's "# include NEW_H"--which is
obviously invalid.

The only reference I've found to this problem so far is bug 311923,
which mysteriously went away when the author reinstalled cygwin.  
Unfortunately, I wasn't so lucky.  I reinstalled cygwin and experienced
the same problem.

Can anyone offer any further insight on this?

-- Chris

R. Christian Call
(Remove the first "i" to reply.)
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: Firefox 1.5.0.2 / 1.5.0.3 build errors

James Ross
Mozilla wrote:
> The only reference I've found to this problem so far is bug 311923,
> which mysteriously went away when the author reinstalled cygwin.  
> Unfortunately, I wasn't so lucky.  I reinstalled cygwin and experienced
> the same problem.
>
> Can anyone offer any further insight on this?

Although you found the bug that was filed as a result of someone
previously having this problem, one of the messages (and I know a few
other people who've done the same to fix this) suggested changing the
Cygwin text/binary mode. See:
   http://groups.google.com/group/mozilla.dev.builds/msg/c492d6a781c7878b

That didn't work for me, though, and I had to hack configure. Which is
not fun, and I recommend you try reinstalling Cygwin in text mode if it
isn't already.

--
James Ross <[hidden email]>
ChatZilla Developer
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: Firefox 1.5.0.2 / 1.5.0.3 build errors

Chris Seawood
In reply to this post by Mozilla-3
Mozilla wrote:

> I've been trying all day to build Firefox 1.5.0.2 and 1.5.0.3 under
> Windows XP Pro, using a fresh install of cygwin, and MS Visual Studio
> 2003 (i.e., VC7.1).
>
> I've followed all the steps on the web site, I've set my environment
> variables appropriately, and no matter what I do, I end up with an error
> in c:\mozilla\dist\include\string\nsString.h(55):  error C2006:
> '#include' : expected a filename, found 'identifier'.
>
> When I look at the line in question, it's "# include NEW_H"--which is
> obviously invalid.
>
> The only reference I've found to this problem so far is bug 311923,
> which mysteriously went away when the author reinstalled cygwin.  
> Unfortunately, I wasn't so lucky.  I reinstalled cygwin and experienced
> the same problem.
>
> Can anyone offer any further insight on this?

Reinstalling cygwin doesn't help diagnose the real problem.  We need
more details about the problem.

Is cygwin configured to use dos or unix line-endings?  Either should
work. What is your PATH set to?  How did you get the 1.5.0.x source
trees?  cvs? tarball?  Are you using cygwin cvs or wincvs?  Are you
using cygwin zip or tar or a native dos version?  Can you attach the
output of 'sh -x configure' to bug 311923 ?

- cls
--
All men are mortal.  Socrates was mortal.  Therefore, all men are Socrates.
                -- Woody Allen
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: Firefox 1.5.0.2 / 1.5.0.3 build errors

Mozilla-3
In article <[hidden email]>,
[hidden email] says...

> Mozilla wrote:
> > I've been trying all day to build Firefox 1.5.0.2 and 1.5.0.3 under
> > Windows XP Pro, using a fresh install of cygwin, and MS Visual Studio
> > 2003 (i.e., VC7.1).
> >
> > I've followed all the steps on the web site, I've set my environment
> > variables appropriately, and no matter what I do, I end up with an error
> > in c:\mozilla\dist\include\string\nsString.h(55):  error C2006:
> > '#include' : expected a filename, found 'identifier'.
> >
> > When I look at the line in question, it's "# include NEW_H"--which is
> > obviously invalid.
> >
> > The only reference I've found to this problem so far is bug 311923,
> > which mysteriously went away when the author reinstalled cygwin.  
> > Unfortunately, I wasn't so lucky.  I reinstalled cygwin and experienced
> > the same problem.
> >
> > Can anyone offer any further insight on this?
>
> Reinstalling cygwin doesn't help diagnose the real problem.  We need
> more details about the problem.
>
> Is cygwin configured to use dos or unix line-endings?  Either should
> work. What is your PATH set to?  How did you get the 1.5.0.x source
> trees?  cvs? tarball?  Are you using cygwin cvs or wincvs?  Are you
> using cygwin zip or tar or a native dos version?  Can you attach the
> output of 'sh -x configure' to bug 311923 ?
>
> - cls
>

Reinstalling cygwin to use DOS-style line endings did, in fact, get
around this problem.

I got the source trees by downloading the zipped tar files from
mozilla.com.

I'm not using cvs to retrieve the sources at all.

I use cygwin only for bzip2 files; otherwise, I use WinZip.

I'm afraid it's too late to do the "sh -x configure", since I've already
reinstalled cygwin.

I'd be happy to provide as much other information as I can.  Let me know
what else might be useful.

-- Chris

R. Christian Call
(Remove the first "i" to reply.)
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: Firefox 1.5.0.2 / 1.5.0.3 build errors

Chris Seawood
Mozilla wrote:
--
I bought some used paint. It was in the shape of a house.
                -- Steven Wright

> In article <[hidden email]>,
> [hidden email] says...
>> Mozilla wrote:
>>> I've been trying all day to build Firefox 1.5.0.2 and 1.5.0.3 under
>>> Windows XP Pro, using a fresh install of cygwin, and MS Visual Studio
>>> 2003 (i.e., VC7.1).
>>>
>>> I've followed all the steps on the web site, I've set my environment
>>> variables appropriately, and no matter what I do, I end up with an error
>>> in c:\mozilla\dist\include\string\nsString.h(55):  error C2006:
>>> '#include' : expected a filename, found 'identifier'.
>>>
>>> When I look at the line in question, it's "# include NEW_H"--which is
>>> obviously invalid.
>>>
>>> The only reference I've found to this problem so far is bug 311923,
>>> which mysteriously went away when the author reinstalled cygwin.  
>>> Unfortunately, I wasn't so lucky.  I reinstalled cygwin and experienced
>>> the same problem.
>>>
>>> Can anyone offer any further insight on this?
>> Reinstalling cygwin doesn't help diagnose the real problem.  We need
>> more details about the problem.
>>
>> Is cygwin configured to use dos or unix line-endings?  Either should
>> work. What is your PATH set to?  How did you get the 1.5.0.x source
>> trees?  cvs? tarball?  Are you using cygwin cvs or wincvs?  Are you
>> using cygwin zip or tar or a native dos version?  Can you attach the
>> output of 'sh -x configure' to bug 311923 ?
>>
>> - cls
>>
>
> Reinstalling cygwin to use DOS-style line endings did, in fact, get
> around this problem.
>
> I got the source trees by downloading the zipped tar files from
> mozilla.com.
>
> I'm not using cvs to retrieve the sources at all.
>
> I use cygwin only for bzip2 files; otherwise, I use WinZip.
>
> I'm afraid it's too late to do the "sh -x configure", since I've already
> reinstalled cygwin.
>
> I'd be happy to provide as much other information as I can.  Let me know
> what else might be useful.
>

That's fine.  I think the key piece of information there is that you
used winzip to unpackage the builds.  Being a native dos app, I'm
betting that winzip *always* uses dos line endings when it creates
files.  And using dos line-endings in the files when cygwin is setup to
expect unix line-endings would be problematic.

I don't think there's anything to do here except say...Don't Do
That(tm)!  Mixing the use of apps that expect different line-endings
causes nothing but pain & confusion.

- cls
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: Firefox 1.5.0.2 / 1.5.0.3 build errors

Mark Tyndall-2
Christopher Seawood wrote:

> That's fine.  I think the key piece of information there is that you
> used winzip to unpackage the builds.  Being a native dos app, I'm
> betting that winzip *always* uses dos line endings when it creates
> files.  And using dos line-endings in the files when cygwin is setup to
> expect unix line-endings would be problematic.

Not always, but by default, WinZip does do 'smart CR/LF conversion' for
TAR files (there's a tickbox in Options | Configuration, Miscellaneous tab).

And IIRC it went from a DOS app to a Win32 app around 8 years ago ;)

regards,
Mark..

--
British English localisations of:
SeaMonkey <http://www.tyndall.org.uk/moz_en-gb.html>
Firefox <http://www.tyndall.org.uk/fb_en-gb.html>
Thunderbird <http://www.tyndall.org.uk/tb_en-gb.html>
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds