This time I changed the Mozilla version (mozilla 1.6)
I had used the mingw with
1. gcc-core-3.4.0-20040501-1.tar ,
2. gcc-g++-3.4.0-20040501-1.tar ,
3. mingw-runtime-3.3.tar ,
4. w32api-2.5.tar
5. binutils-2.15.90-20040222-1.tar
I had used the wintools from http://ftp.mozilla.org/pub/mozilla.org/mozilla/source/wintools.zip
I had changed the header files under the wintools/include directory from DOS2UNIX using DOS2UNIX.exe
While Compiling I got the following Error.,
Please give me the details, How to compile the mozilla sources in Windows.
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_classes.h:47:18: ../../dist/include/string: Permission denied
In file included from c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../..
/../include/c++/3.4.0/ios:49,
from c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../..
/../include/c++/3.4.0/ostream:45,
from c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../..
/../include/c++/3.4.0/iostream:45,
from c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../..
/../include/c++/3.4.0/backward/iostream.h:32,
from c:/Mozilla_SDK/mozilla/xpcom/tests/TestCOMPtr.cpp:39:
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/ios_base.h:181: error: field `_M_msg' has incomplete type
In file included from c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../..
/../include/c++/3.4.0/locale:47,
from c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../..
/../include/c++/3.4.0/bits/ostream.tcc:40,
from c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../..
/../include/c++/3.4.0/ostream:545,
from c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../..
/../include/c++/3.4.0/iostream:45,
from c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../..
/../include/c++/3.4.0/backward/iostream.h:32,
from c:/Mozilla_SDK/mozilla/xpcom/tests/TestCOMPtr.cpp:39:
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc: In member function `_InIter std::num_get<_CharT, _InIter
>::_M_extract_float(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, std::s
tring&) const':
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:325: error: invalid use of undefined type `struct std::st
ring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:362: error: invalid use of undefined type `struct std::st
ring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:383: error: invalid use of undefined type `struct std::st
ring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:409: error: invalid use of undefined type `struct std::st
ring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc: In member function `_InIter std::num_get<_CharT, _InIter
>::_M_extract_int(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, _ValueT&
) const':
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:505: error: invalid use of undefined type `struct std::st
ring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:603: error: invalid use of undefined type `struct std::st
ring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc: In member function `virtual _InIter std::num_get<_CharT,
_InIter>::do_get(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, float&)
const':
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:738: error: invalid use of undefined type `struct std::st
ring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:740: error: invalid use of undefined type `struct std::st
ring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc: In member function `virtual _InIter std::num_get<_CharT,
_InIter>::do_get(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, double&)
const':
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:751: error: invalid use of undefined type `struct std::st
ring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:753: error: invalid use of undefined type `struct std::st
ring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc: In member function `virtual _InIter std::num_get<_CharT,
_InIter>::do_get(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, long dou
ble&) const':
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:764: error: invalid use of undefined type `struct std::st
ring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:771: error: invalid use of undefined type `struct std::st
ring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc: In member function `_InIter std::money_get<_CharT, _InIt
er>::_M_extract(_InIter, _InIter, std::ios_base&, std::_Ios_Iostate&, std::strin
g&) const':
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:1289: error: invalid use of undefined type `struct std::s
tring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:1301: error: invalid use of undefined type `struct std::s
tring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:1395: error: invalid use of undefined type `struct std::s
tring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:1429: error: invalid use of undefined type `struct std::s
tring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:1431: error: invalid use of undefined type `struct std::s
tring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:1432: error: incomplete type `std::string' used in nested
name specifier
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:1434: error: invalid use of undefined type `struct std::s
tring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:1434: error: invalid use of undefined type `struct std::s
tring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:1438: error: no match for 'operator[]' in '__res[0]'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:1439: error: invalid use of undefined type `struct std::s
tring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:1439: error: invalid use of undefined type `struct std::s
tring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:1442: error: invalid use of undefined type `struct std::s
tring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:1467: error: invalid use of undefined type `struct std::s
tring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc: In member function `virtual _InIter std::money_get<_Char
T, _InIter>::do_get(_InIter, _InIter, bool, std::ios_base&, std::_Ios_Iostate&,
long double&) const':
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:1488: error: invalid use of undefined type `struct std::s
tring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc: In member function `virtual _InIter std::money_get<_Char
T, _InIter>::do_get(_InIter, _InIter, bool, std::ios_base&, std::_Ios_Iostate&,
std::basic_string<_CharT, std::char_traits<_CharT>, std::allocator<_CharT> >&) c
onst':
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:1499: error: no type named `size_type' in `struct std::st
ring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:1509: error: invalid use of undefined type `struct std::s
tring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:1514: error: invalid use of undefined type `struct std::s
tring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:1514: error: invalid use of undefined type `struct std::s
tring'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `struct std::string'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc: In function `bool std::__verify_grouping(const char*, si
ze_t, const std::string&)':
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:2497: error: invalid use of undefined type `const struct
std::basic_string<char, std::char_traits<char>, std::allocator<char> >'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/stringfwd.h:56: error: declaration of `const struct std::basic_string<char,
std::char_traits<char>, std::allocator<char> >'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:2506: error: no match for 'operator[]' in '__grouping_tmp
[__i]'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:2508: error: no match for 'operator[]' in '__grouping_tmp
[__i]'
c:\Mozilla_SDK\mingw\bin\../lib/gcc/mingw32/3.4.0/../../../../include/c++/3.4.0/
bits/locale_facets.tcc:2511: error: no match for 'operator[]' in '__grouping_tmp
[0]'
make[4]: *** [TestCOMPtr.o] Error 1
make[4]: Leaving directory `/cygdrive/c/Mozilla_SDK/mozilla/xpcom/tests'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/cygdrive/c/Mozilla_SDK/mozilla/xpcom'
make[2]: *** [tier_2] Error 2
make[2]: Leaving directory `/cygdrive/c/Mozilla_SDK/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/cygdrive/c/Mozilla_SDK/mozilla'
make: *** [build] Error 2
Christopher Seawood wrote:
chandrasekar wrote:
Dear All
For more than a week Im trying to compile the Mozilla 1.5 in my Windows XP,
1. I got the "extra ;" error, then I had changed the gcc 3.4 to gcc 3.3.1,
2. Now I got the ../../dist/include/xpcom/nsCOMPtr.h:402: error: function ` nsCOMPtr_base::~nsCOMPtr_base()' definition is marked dllimport.
c:/Mozilla_SDK/mozilla/xpcom/tests/nsIFileEnumerator.cpp: In function `PRBool LoopInDir(nsILocalFile*)':
You need to search bugzilla for resolved bugs with mingw in the subject. Mozilla1.5 is quite old and there have been a number of fixes made to get Mozilla to work with newer versions of gcc. You also need to make sure that you're using a newer version of binutils when using a newer version of gcc. From my experience, mingw gcc >= 3.3.3 works best with binutils 2.15 and 3.3.1 & below work best with binutils 2.14.90-20030807 . And this should really be in n.p.builds.
- cls
_______________________________________________
Mozilla-seamonkey mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-seamonkey
