Closed Bug 266087 Opened 20 years ago Closed 20 years ago

cvs build fails on Linux

Categories

(SeaMonkey :: Build Config, defect)

x86
All
defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.8beta1

People

(Reporter: Mitch, Assigned: darin.moz)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a5) Gecko/20041025
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a5) Gecko/20041025

Build fails with following error

g++ -o nsAppRunner.o -c -DXPCOM_GLUE -DMOZILLA_STRICT_API -DOSTYPE=\"Linux2.6\"
-DOSARCH=\"Linux\" -DSPLASH_XPM=\"./splash.xpm\" -I. -I.
-I../../dist/include/xpcom -I../../dist/include/string
-I../../dist/include/webbrwsr -I../../dist/include/widget
-I../../dist/include/dom -I../../dist/include/necko -I../../dist/include/content
-I../../dist/include/pref -I../../dist/include/appshell -I../../dist/include/gfx
-I../../dist/include/xpinstall -I../../dist/include/uriloader
-I../../dist/include/windowwatcher -I../../dist/include/embed_base
-I../../dist/include/embedcomponents -I../../dist/include/docshell
-I../../dist/include/locale -I../../dist/include/profile
-I../../dist/include/chrome -I../../dist/include/jprof
-I../../dist/include/xremoteservice -I../../dist/include/apprunner
-I../../dist/include -I/usr/src/moz/mozilla/dist/include/nspr 
-I/usr/local/include -I/usr/local/include -I/usr/local/include
-I/usr/X11R6/include   -fPIC  -I/usr/X11R6/include -fno-rtti -fno-exceptions
-Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic
-I/usr/local/include -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED
-ffunction-sections -Os -DWIDGET_DLL=\"libwidget_gtk2.so\"
-DGFXWIN_DLL=\"libgfx_gtk2.so\" -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -I/usr/local/include/pango-1.0
-I/usr/X11R6/include -I/usr/local/include -I/usr/local/include/freetype2
-I/usr/local/include/gtk-2.0 -I/usr/local/include/atk-1.0
-I/usr/local/lib/gtk-2.0/include    -I/usr/X11R6/include -DMOZILLA_CLIENT
-include ../../mozilla-config.h -Wp,-MD,.deps/nsAppRunner.pp nsAppRunner.cpp
In file included from nsAppRunner.cpp:48:
../../dist/include/xpcom/nsIServiceManagerUtils.h: In function `nsresult
CallGetService(const nsCID&, DestinationType**)':
../../dist/include/xpcom/nsIServiceManagerUtils.h:153: error: there are no
arguments to `NS_GetServiceManager' that depend on a template parameter, so a
declaration of `NS_GetServiceManager' must be available
../../dist/include/xpcom/nsIServiceManagerUtils.h:153: error: (if you use
`-fpermissive', G++ will accept your code, but allowing the use of an undeclared
name is deprecated)
../../dist/include/xpcom/nsIServiceManagerUtils.h: In function `nsresult
CallGetService(const char*, DestinationType**)':
../../dist/include/xpcom/nsIServiceManagerUtils.h:173: error: there are no
arguments to `NS_GetServiceManager' that depend on a template parameter, so a
declaration of `NS_GetServiceManager' must be available
make[3]: *** [nsAppRunner.o] Error 1
make[3]: Leaving directory `/usr/src/moz/mozilla/xpfe/bootstrap'
make[2]: *** [tier_99] Error 2
make[2]: Leaving directory `/usr/src/moz/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/usr/src/moz/mozilla'
make: *** [build] Error 2


Reproducible: Always
Steps to Reproduce:
1. Build from today's cvs
2.
3.

Actual Results:  
Build failed


I believe this is due to yesterdays checkin by darin for bug 262218 which
touched nsAppRunner.cpp since the previous days build worked fine until that
checkin.
GCC 3.4 right?  I think I just checked in a fix for this.  'cvs update
xpfe/bootstrap/nsAppRunner.cpp'

marking FIXED, but please reopen if my fix didn't do the trick.  (i don't have
GCC 3.4 with which to test.)
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Thanks Darin. Yes gcc 3.4. Pulling new cvs and rebuilding. Will update the bug
with outcome. Thanks for quick fix.
Darin, same thing needed for nsWindowCreator.cpp



g++ -o nsWindowCreator.o -c -DXPCOM_GLUE -DMOZILLA_STRICT_API
-DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DSPLASH_XPM=\"./splash.xpm\" -I. -I.
-I../../dist/include/xpcom -I../../dist/include/string
-I../../dist/include/webbrwsr -I../../dist/include/widget
-I../../dist/include/dom -I../../dist/include/necko -I../../dist/include/content
-I../../dist/include/pref -I../../dist/include/appshell -I../../dist/include/gfx
-I../../dist/include/xpinstall -I../../dist/include/uriloader
-I../../dist/include/windowwatcher -I../../dist/include/embed_base
-I../../dist/include/embedcomponents -I../../dist/include/docshell
-I../../dist/include/locale -I../../dist/include/profile
-I../../dist/include/chrome -I../../dist/include/jprof
-I../../dist/include/xremoteservice -I../../dist/include/apprunner
-I../../dist/include -I/usr/src/moz/mozilla/dist/include/nspr 
-I/usr/local/include -I/usr/local/include -I/usr/local/include
-I/usr/X11R6/include   -fPIC  -I/usr/X11R6/include -fno-rtti -fno-exceptions
-Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic
-I/usr/local/include -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED
-ffunction-sections -Os -DWIDGET_DLL=\"libwidget_gtk2.so\"
-DGFXWIN_DLL=\"libgfx_gtk2.so\" -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -I/usr/local/include/pango-1.0
-I/usr/X11R6/include -I/usr/local/include -I/usr/local/include/freetype2
-I/usr/local/include/gtk-2.0 -I/usr/local/include/atk-1.0
-I/usr/local/lib/gtk-2.0/include    -I/usr/X11R6/include -DMOZILLA_CLIENT
-include ../../mozilla-config.h -Wp,-MD,.deps/nsWindowCreator.pp nsWindowCreator.cpp
In file included from nsWindowCreator.cpp:77:
../../dist/include/xpcom/nsIServiceManagerUtils.h: In function `nsresult
CallGetService(const nsCID&, DestinationType**)':
../../dist/include/xpcom/nsIServiceManagerUtils.h:153: error: there are no
arguments to `NS_GetServiceManager' that depend on a template parameter, so a
declaration of `NS_GetServiceManager' must be available
../../dist/include/xpcom/nsIServiceManagerUtils.h:153: error: (if you use
`-fpermissive', G++ will accept your code, but allowing the use of an undeclared
name is deprecated)
../../dist/include/xpcom/nsIServiceManagerUtils.h: In function `nsresult
CallGetService(const char*, DestinationType**)':
../../dist/include/xpcom/nsIServiceManagerUtils.h:173: error: there are no
arguments to `NS_GetServiceManager' that depend on a template parameter, so a
declaration of `NS_GetServiceManager' must be available
make[3]: *** [nsWindowCreator.o] Error 1
make[3]: Leaving directory `/usr/src/moz/mozilla/xpfe/bootstrap'
make[2]: *** [tier_99] Error 2
make[2]: Leaving directory `/usr/src/moz/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/usr/src/moz/mozilla'
make: *** [build] Error 2
Status: RESOLVED → UNCONFIRMED
Resolution: FIXED → ---
I see this with Win32/MinGW/cygwin. Marking NEW and changing OS to ALL.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Assignee: nobody → darin
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.8beta
OK, I checked in a fix for nsWindowCreator.cpp... I'll keep an eye on the GCC
3.4 tinderbox on the Seamonkey-Ports page.  It may require additional patching...
looks like the tinderbox went green.. marking FIXED
Status: ASSIGNED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → FIXED
Confirmed. Clean build. Thanks Darin.
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.