In Windows XP, xpidl.exe aborts during build of nsIConsoleListener.h

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

In Windows XP, xpidl.exe aborts during build of nsIConsoleListener.h

David Wilson-6
We want to get a build of Thunderbird for Windows that includes
autocongif:
   ac_add_options --enable-extensions=pref
If someone else has already done this, we'd be glad to use their
version rather than build our own.

When I attempt the build, xpidl.exe aborts inside ntdll.dll.  I'm using
Windows XP SP 2.

nsIConsoleListener.idl
/cygdrive/d/mozilla/build/cygwin-wrapper ../../dist/bin/xpidl.exe -m
header -w -
I/cygdrive/d/mozilla/xpcom/base -I../../dist/idl -o
_xpidlgen/nsIConsoleListener
 /cygdrive/d/mozilla/xpcom/base/nsIConsoleListener.idl
make[4]: *** [_xpidlgen/nsIConsoleListener.h] Error 5
make[4]: *** Deleting file `_xpidlgen/nsIConsoleListener.h'
make[4]: Leaving directory `/cygdrive/d/mozilla/objdir/xpcom/base'
make[3]: *** [export] Error 2
make[3]: Leaving directory `/cygdrive/d/mozilla/objdir/xpcom'
make[2]: *** [tier_2] Error 2
make[2]: Leaving directory `/cygdrive/d/mozilla/objdir'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/cygdrive/d/mozilla/objdir'
make: *** [build] Error 2

   My ~/.mozconfig file has:

. $topsrcdir/mail/config/mozconfig
mk_add_options MOZ_OBJDIR=d:/mozilla/objdir
ac_add_options --disable-optimize
ac_add_options --enable-debug
GLIB_PREFIX=c:/apps/vc7
LIBIDL_PREFIX=c:/apps/vc7
ac_add_options --enable-extensions=pref
ac_add_options --disable-tests

  C:\cygwin\cygwin.bat contains:

@echo off
rem --- Basic config, with VC7 libIDL files
SET MOZ_TOOLS=C:\moztools
SET GLIB_PREFIX=C:\apps\vc7
SET LIBIDL_PREFIX=C:\apps\vc7
SET CYGWINBASE=C:\cygwin

rem --- Clean slate start
SET INCLUDE=
SET LIB=
SET PATH=C:\;C:\windows\system32;C:\windows;C:\windows\system32\wbem

rem --- Set VC7 compiler environment vars

CALL "C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\bin\vcvars32.bat"

rem --- Add moztools to build environment
SET PATH=%PATH%;%MOZ_TOOLS%\bin;%CYGWINBASE%\bin
SET PATH=%PATH%;%GLIB_PREFIX%;%GLIB_PREFIX%\bin
SET INCLUDE=%GLIB_PREFIX%\include;%INCLUDE%
SET LIB=%GLIB_PREFIX%\lib;%LIB%

C:
chdir C:\cygwin\bin

bash --login -i

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

Re: In Windows XP, xpidl.exe aborts during build of nsIConsoleListener.h

Christian Biesinger
David Wilson wrote:
> We want to get a build of Thunderbird for Windows that includes
> autocongif:
>    ac_add_options --enable-extensions=pref

FWIW, this should be "default,pref", not just "pref".

However... aren't the normal Thunderbird releases build with that extension?

> If someone else has already done this, we'd be glad to use their
> version rather than build our own.
>
> When I attempt the build, xpidl.exe aborts inside ntdll.dll.  I'm using
> Windows XP SP 2.

See the FAQ: http://developer.mozilla.org/en/docs/Mozilla_Build_FAQ near
the bottom.
_______________________________________________
mozilla-builds mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-builds
Reply | Threaded
Open this post in threaded view
|

Re: In Windows XP, xpidl.exe aborts during build of nsIConsoleListener.h

David Wilson-6
Christian Biesinger wrote:
> FWIW, this should be "default,pref", not just "pref".

Thanks.  Done.

> However... aren't the normal Thunderbird releases build with that extension?

No. See
http://www.int-evry.fr/mci/user/procacci/netscape/en/mozilla-autoconfig-en.html#htoc8

> See the FAQ: http://developer.mozilla.org/en/docs/Mozilla_Build_FAQ near
> the bottom.

After reading the FAQ I switched from using the vc7 versions of the
glib & libIDL libraries to using the vc71 version since I'm using
Visual Studio .NET 2003.  This did not help.  I'm still getting the
same abort.

AppName: xpild.exe   ModName: ntdll.dll
ModVer: 5.1.2600.2180   Offset: 00018fea

Code: 0xc0000005  Address: 0x7c918fea

                                             David Wilson
[hidden email]

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

Re: In Windows XP, xpidl.exe aborts during build of nsIConsoleListener.h

Christian Biesinger
David Wilson wrote:
> No. See
> http://www.int-evry.fr/mci/user/procacci/netscape/en/mozilla-autoconfig-en.html#htoc8

Hm, indeed. The branch from which Tbird 1.0.x is built
(AVIARY_1_0_1_20050124_BRANCH) does not seem to enable that extension.

It does look like Tbird 1.5 will enable it by default, though.

> After reading the FAQ I switched from using the vc7 versions of the
> glib & libIDL libraries to using the vc71 version since I'm using
> Visual Studio .NET 2003.  This did not help.  I'm still getting the
> same abort.

If you're getting the crash, then it was using the VC6 version of the
libraries. Make sure that the VC7.1 versions are first in the path.
_______________________________________________
mozilla-builds mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-builds
Reply | Threaded
Open this post in threaded view
|

Re: In Windows XP, xpidl.exe aborts during build of nsIConsoleListener.h

ben turner-6
I just ran into this to, so in case you haven't figured it out here's
how to fix it. Chris was absolutely right.

In your cygwin.bat file, this:

rem --- Add moztools to build environment
SET PATH=%PATH%;%MOZ_TOOLS%\bin;%CYGWINBASE%\bin
SET PATH=%PATH%;%GLIB_PREFIX%;%GLIB_PREFIX%\bin

needs to be reversed to this:

rem --- Add moztools to build environment
SET PATH=%PATH%;%GLIB_PREFIX%;%GLIB_PREFIX%\bin
SET PATH=%PATH%;%MOZ_TOOLS%\bin;%CYGWINBASE%\bin

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

Re: In Windows XP, xpidl.exe aborts during build of nsIConsoleListener.h

Paul-56
[hidden email] wrote:

> I just ran into this to, so in case you haven't figured it out here's
> how to fix it. Chris was absolutely right.
>
> In your cygwin.bat file, this:
>
> rem --- Add moztools to build environment
> SET PATH=%PATH%;%MOZ_TOOLS%\bin;%CYGWINBASE%\bin
> SET PATH=%PATH%;%GLIB_PREFIX%;%GLIB_PREFIX%\bin
>
> needs to be reversed to this:
>
> rem --- Add moztools to build environment
> SET PATH=%PATH%;%GLIB_PREFIX%;%GLIB_PREFIX%\bin
> SET PATH=%PATH%;%MOZ_TOOLS%\bin;%CYGWINBASE%\bin
>

I just downloaded and built firefox 1.5 today on window 2003 server sp1,
with vc71. This was my first time ever, it took about 3 hours to get it
done. I can confirm that the above path reversal was crucial to getting
the build to work -- I had the smae error.

My executable comes up named "Deer Park", how funny.



_______________________________________________
mozilla-builds mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-builds