Closed
Bug 257108
Opened 20 years ago
Closed 18 years ago
Error in "/modules/plugin/samples/default/mac" when trying to build Firefox with Apple GCC-3.5-tree-ssa
Categories
(Core Graveyard :: Plug-ins, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: MMx, Unassigned)
References
Details
I tryed to compile Firefox AVIARY_BRANCH (both 0.9.3 and recent source) with Apple's gcc-3.5-tree-ssa in OS X 10.3.5 and it failed at the following file: http://lxr.mozilla.org/mozilla/source/modules/plugin/samples/default/mac/npmac.cpp ------------------8<---------------------------------------------------------- (NOTE: project DefaultPlugin was written by an older version of Xcode (38) -- temporarily upgrading it to version 39 (without modifying project file)) === BUILDING LEGACY TARGET Resources USING BUILD STYLE Deployment === /usr/bin/gnumake resources gnumake[5]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. gnumake[5]: Nothing to be done for `resources'. === BUILDING BUNDLE TARGET Default Plugin USING BUILD STYLE Deployment === /Developer/Private/jam -d2 -j1 JAMBASE=/Developer/Makefiles/pbx_jamfiles/ProjectBuilderJambase JAMFILE=- build ACTION=build _DEFAULT_GCC_VERSION=3.5 BUILD_STYLE=Deployment "CPP_HEADER_SYMLINKS_DIR=/Volumes/FW_Jaguar/TEMP/Builds/Firefox/Trunk/mozilla/modules/plugin/samples/default/mac/build/DefaultPlugin.build/Default Plugin.build/Default Plugin.hdrs" SRCROOT=/Volumes/FW_Jaguar/TEMP/Builds/Firefox/Trunk/mozilla/modules/plugin/samples/default/mac OBJROOT=/Volumes/FW_Jaguar/TEMP/Builds/Firefox/Trunk/mozilla/modules/plugin/samples/default/mac/build SYMROOT=/Volumes/FW_Jaguar/TEMP/Builds/Firefox/Trunk/mozilla/modules/plugin/samples/default/mac/build DSTROOT=/tmp/DefaultPlugin.dst PBXCp /Volumes/FW_Jaguar/TEMP/Builds/Firefox/Trunk/mozilla/modules/plugin/samples/default/mac/build/Default Plugin.plugin/Contents/Info.plist /Developer/Tools/pbxcp -exclude .DS_Store -exclude CVS -strip-debug-symbols -resolve-src-symlinks "/Volumes/FW_Jaguar/TEMP/Builds/Firefox/Trunk/mozilla/modules/plugin/samples/default/mac/build/DefaultPlugin.build/Default Plugin.build/Info.plist" "/Volumes/FW_Jaguar/TEMP/Builds/Firefox/Trunk/mozilla/modules/plugin/samples/default/mac/build/Default Plugin.plugin/Contents" PBXCp /Volumes/FW_Jaguar/TEMP/Builds/Firefox/Trunk/mozilla/modules/plugin/samples/default/mac/build/Default Plugin.plugin/Contents/pbdevelopment.plist /Developer/Tools/pbxcp -exclude .DS_Store -exclude CVS -strip-debug-symbols -resolve-src-symlinks "/Volumes/FW_Jaguar/TEMP/Builds/Firefox/Trunk/mozilla/modules/plugin/samples/default/mac/build/DefaultPlugin.build/Default Plugin.build/pbdevelopment.plist" "/Volumes/FW_Jaguar/TEMP/Builds/Firefox/Trunk/mozilla/modules/plugin/samples/default/mac/build/Default Plugin.plugin/Contents" BuildPhase <CopyResources>Default Plugin.plugin echo Completed phase "<CopyResources>" for "<CopyResources>Default Plugin.plugin" Completed phase <CopyResources> for <CopyResources>Default Plugin.plugin CompileCplusplus /Volumes/FW_Jaguar/TEMP/Builds/Firefox/Trunk/mozilla/modules/plugin/samples/default/mac/build/DefaultPlugin.build/Default Plugin.build/Objects-normal/ppc/npmac.o /usr/bin/g++-3.5 -c -F/Volumes/FW_Jaguar/TEMP/Builds/Firefox/Trunk/mozilla/modules/plugin/samples/default/mac/build -F/System/Library/Frameworks/CoreFoundation.framework -I/Volumes/FW_Jaguar/TEMP/Builds/Firefox/Trunk/mozilla/modules/plugin/samples/default/mac/build/include -I../../../../../dist/sdk/xpcom/include -I../../../../../dist/include/caps -I../../../../../dist/include/java -I../../../../../dist/include/js -I../../../../../dist/include/nspr -I../../../../../dist/include/nspr/obsolete -I../../../../../dist/include/oji -I../../../../../dist/include/plugin -I../../../../../dist/include/xpcom -I../../../../../dist/include/xpconnect -I../../../../../dist/include -I/Developer/Headers/FlatCarbon -arch ppc -fno-common -fpascal-strings -Os -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -pipe "-fmessage-length=0" "-I/Volumes/FW_Jaguar/TEMP/Builds/Firefox/Trunk/mozilla/modules/plugin/samples/default/mac/build/DefaultPlugin.build/Default Plugin.build/Default Plugin.hdrs" -g -include DefaultPluginPrefix.h "-DXP_MACOSX=1" "-DNO_X11=1" "-DUSE_SYSTEM_CONSOLE=1" npmac.cpp -o "/Volumes/FW_Jaguar/TEMP/Builds/Firefox/Trunk/mozilla/modules/plugin/samples/default/mac/build/DefaultPlugin.build/Default Plugin.build/Objects-normal/ppc/npmac.o" npmac.cpp:115: error: non-local variable `<anonymous struct> gPluginFuncsGlueTable' uses anonymous type npmac.cpp:153: error: non-local variable `<anonymous struct> gNetscapeFuncsGlueTable' uses anonymous type npmac.cpp: In function `NPError Private_Initialize()': npmac.cpp:404: warning: statement has no effect npmac.cpp: In function `void Private_Shutdown()': npmac.cpp:413: warning: statement has no effect npmac.cpp: In function `NPError Private_New(char*, NPP_t*, short unsigned int, short int, char**, char**, NPSavedData*)': npmac.cpp:428: warning: statement has no effect npmac.cpp: In function `NPError Private_Destroy(NPP_t*, NPSavedData**)': npmac.cpp:437: warning: statement has no effect npmac.cpp: In function `NPError Private_SetWindow(NPP_t*, NPWindow*)': npmac.cpp:447: warning: statement has no effect npmac.cpp: In function `NPError Private_NewStream(NPP_t*, char*, NPStream*, NPBool, short unsigned int*)': npmac.cpp:457: warning: statement has no effect npmac.cpp: In function `int32 Private_WriteReady(NPP_t*, NPStream*)': npmac.cpp:467: warning: statement has no effect npmac.cpp: In function `int32 Private_Write(NPP_t*, NPStream*, int32, int32, void*)': npmac.cpp:477: warning: statement has no effect npmac.cpp: In function `void Private_StreamAsFile(NPP_t*, NPStream*, const char*)': npmac.cpp:486: warning: statement has no effect npmac.cpp: In function `NPError Private_DestroyStream(NPP_t*, NPStream*, NPError)': npmac.cpp:496: warning: statement has no effect npmac.cpp: In function `short int Private_HandleEvent(NPP_t*, void*)': npmac.cpp:506: warning: statement has no effect npmac.cpp: In function `void Private_Print(NPP_t*, NPPrint*)': npmac.cpp:515: warning: statement has no effect npmac.cpp: In function `void Private_URLNotify(NPP_t*, const char*, NPReason, void*)': npmac.cpp:523: warning: statement has no effect npmac.cpp: In function `_jobject* Private_GetJavaClass()': npmac.cpp:532: warning: statement has no effect npmac.cpp: In function `int main(NPNetscapeFuncs*, NPPluginFuncs*, void (**)())': npmac.cpp:662: warning: statement has no effect ...failed CompileCplusplus /Volumes/FW_Jaguar/TEMP/Builds/Firefox/Trunk/mozilla/modules/plugin/samples/default/mac/build/DefaultPlugin.build/Default Plugin.build/Objects-normal/ppc/npmac.o ... ** BUILD FAILED ** make[4]: *** [build-plugin] Error 1 -----------------8<------------------ See bug 257100 and blocking bugs of the latter for additional information CCing sfraser because he changed code in this file and might be able to help.
Reporter | ||
Comment 1•20 years ago
|
||
forgot to change severity - sorry for the bugspam
Severity: normal → blocker
Reporter | ||
Comment 2•20 years ago
|
||
changing summary to what it was supposed to be. One should check *all* fields before pressing "submit" - sorry for the bugspam again
Summary: "/modules/plugin/samples/default/mac" → Error in "/modules/plugin/samples/default/mac" when trying to build Firefox with Apple GCC-3.5-tree-ssa
Comment 3•20 years ago
|
||
That could probably be just changed (line 153) to struct NetscapeFuncsGlueTable { ... } gNetscapeFuncsGlueTable;
Comment 4•18 years ago
|
||
Another bug against a vanished compiler.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WONTFIX
Updated•2 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•