Closed
Bug 345134
Opened 19 years ago
Closed 19 years ago
gcc-4.1.2 gets mimeeobj.h:57: error: previous declaration of 'MimeExternalObjectClass mimeExternalObjectClass' with 'C++' linkage
Categories
(SeaMonkey :: Build Config, defect)
Tracking
(Not tracked)
VERIFIED
DUPLICATE
of bug 344694
People
(Reporter: makoto, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.7.12) Gecko/20051129
Build Identifier: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.7.12) Gecko/20051129
compiling mozila 1.7.13 with gcc-4.1.2, getting following problems, this is also filed as debian-bugs-dist Bug#377176.
c++ -o mimemult.o -c -DE ....
mimemult.cpp:55: warning: missing braces around initializer for 'MimeContainerClass'
mimemult.cpp:55: warning: missing braces around initializer for 'MimeObjectClass'
mimeeobj.h:57: error: previous declaration of 'MimeExternalObjectClass mimeExternalObjectClass' with 'C++' linkage
mimemult.cpp:76: error: conflicts with new declaration with 'C' linkage
Reproducible: Always
Steps to Reproduce:
1. making mozilla 1.7.13 with gcc-4.1.2 machine.
2. My example is (on NetBSD) cd /usr/pkgsrc/www/mozilla; make
3.
Following patch may fix this problem, thanks a lot,
--- mailnews/mime/src/mimeeobj.h.~1.3.~ 2001-09-29 05:07:42.000000000 +0900
+++ mailnews/mime/src/mimeeobj.h 2006-07-19 08:38:25.000000000 +0900
@@ -54,7 +54,7 @@
MimeLeafClass leaf;
};
-extern MimeExternalObjectClass mimeExternalObjectClass;
+extern "C" MimeExternalObjectClass mimeExternalObjectClass;
struct MimeExternalObject {
MimeLeaf leaf;
Reporter | ||
Updated•19 years ago
|
Version: unspecified → 1.7 Branch
Comment 1•19 years ago
|
||
um, 1.7 is ancient. this has very low chances of getting fixed on that branch.
*** This bug has been marked as a duplicate of 344694 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•