Compiles fine here. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 55193 [details] mozilla-1.7.6-gcc4-fix.patch
that may let the package compile but does it work afterwards ? ive seen a patch that looks very much like this one before where the package compiled fine but then just segfaulted all over the place
Works fine here with all the gcc-4.0 snapshots from portage and from cvs.
I agree with Spanky. This patch isn't really fixing the issue and changes the meaning of the code. It looks like there are some patches upstream already. I'll look through them and try them out when I get the time.
Created attachment 55512 [details, diff] GCC4 compile fix This is the upstream patch for this issue which is already applied in their CVS. Successfully compiles and runs here. The patch applies fine to Firefox and Thunderbird.
I've tested this patch with the suite, firefox and thunderbird. It applies fine to all of them and allows compilation with GCC4. If there are no objections, I would like to add these patches soon.
*** Bug 90118 has been marked as a duplicate of this bug. ***
Patches committed to the tree. All mozilla related packages should be fixed now.
i just tried compiling firefox using gcc4 and failed. maybe the fact that i'm running on an amd64 may be a factor. i don't know the error any more it was something about incompatible array types. i'll check that out.
here is the error ('Fehler' means 'Error'). i'm not shure if this error has to do with this bug. c++ -o nsHttpConnectionMgr.o -c -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -I./../../../base/src -I../../../../dist/include/xpcom -I../../../../dist/include/string -I../../../../dist/include/pref -I../../../../dist/include/nkcache -I../../../../dist/include/mimetype -I../../../../dist/include/intl -I../../../../dist/include/unicharutil -I../../../../dist/include/caps -I../../../../dist/include/xpconnect -I../../../../dist/include/js -I../../../../dist/include/uconv -I../../../../dist/include/necko -I../../../../dist/include -I/var/tmp/portage/mozilla-thunderbird-1.0.2/work/mozilla/dist/include/nspr -fPIC -fno-rtti -fno-exceptions -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=k8 -pipe -fPIC -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -ffunction-sections -O1 -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -Wp,-MD,.deps/nsHttpConnectionMgr.pp nsHttpConnectionMgr.cpp nsHttpRequestHead.cpp c++ -o nsHttpRequestHead.o -c -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -I./../../../base/src -I../../../../dist/include/xpcom -I../../../../dist/include/string -I../../../../dist/include/pref -I../../../../dist/include/nkcache -I../../../../dist/include/mimetype -I../../../../dist/include/intl -I../../../../dist/include/unicharutil -I../../../../dist/include/caps -I../../../../dist/include/xpconnect -I../../../../dist/include/js -I../../../../dist/include/uconv -I../../../../dist/include/necko -I../../../../dist/include -I/var/tmp/portage/mozilla-thunderbird-1.0.2/work/mozilla/dist/include/nspr -fPIC -fno-rtti -fno-exceptions -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=k8 -pipe -fPIC -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -ffunction-sections -O1 -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -Wp,-MD,.deps/nsHttpRequestHead.pp nsHttpRequestHead.cpp nsHttpConnectionMgr.cpp: In member function
here is the error ('Fehler' means 'Error'). i'm not shure if this error has to do with this bug. c++ -o nsHttpConnectionMgr.o -c -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -I./../../../base/src -I../../../../dist/include/xpcom -I../../../../dist/include/string -I../../../../dist/include/pref -I../../../../dist/include/nkcache -I../../../../dist/include/mimetype -I../../../../dist/include/intl -I../../../../dist/include/unicharutil -I../../../../dist/include/caps -I../../../../dist/include/xpconnect -I../../../../dist/include/js -I../../../../dist/include/uconv -I../../../../dist/include/necko -I../../../../dist/include -I/var/tmp/portage/mozilla-thunderbird-1.0.2/work/mozilla/dist/include/nspr -fPIC -fno-rtti -fno-exceptions -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=k8 -pipe -fPIC -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -ffunction-sections -O1 -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -Wp,-MD,.deps/nsHttpConnectionMgr.pp nsHttpConnectionMgr.cpp nsHttpRequestHead.cpp c++ -o nsHttpRequestHead.o -c -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -I./../../../base/src -I../../../../dist/include/xpcom -I../../../../dist/include/string -I../../../../dist/include/pref -I../../../../dist/include/nkcache -I../../../../dist/include/mimetype -I../../../../dist/include/intl -I../../../../dist/include/unicharutil -I../../../../dist/include/caps -I../../../../dist/include/xpconnect -I../../../../dist/include/js -I../../../../dist/include/uconv -I../../../../dist/include/necko -I../../../../dist/include -I/var/tmp/portage/mozilla-thunderbird-1.0.2/work/mozilla/dist/include/nspr -fPIC -fno-rtti -fno-exceptions -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=k8 -pipe -fPIC -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -ffunction-sections -O1 -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -Wp,-MD,.deps/nsHttpRequestHead.pp nsHttpRequestHead.cpp nsHttpConnectionMgr.cpp: In member function »void nsHttpConnectionMgr::OnMsgUpdateParam(nsresult, void*)«: nsHttpConnectionMgr.cpp:837: Fehler: cast from »void*« to »PRUint32« loses precision nsHttpConnectionMgr.cpp:838: Fehler: cast from »void*« to »PRUint32« loses precision gmake[5]: *** [nsHttpConnectionMgr.o] Fehler 1