Closed Bug 275580 Opened 20 years ago Closed 20 years ago

Compile fails in profile/src/nsProfile.cpp

Categories

(Firefox Build System :: General, defect)

1.0 Branch
Sun
Solaris
defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: peter.oshea, Assigned: bryner)

Details

Compiling Firefox 1.0 with gcc-3.3.5 on sparc Solaris 8, I run into a compile
failure.

Here's my configure line:

setenv MOZ_PHOENIX=1
setenv MOZILLA_OFFICIAL=1
setenv BUILD_OFFICIAL=1
setenv MOZ_PKG_APPNAME="firefox"
./configure --prefix=/home/poshea/usr/mozilla \
--with-libIDL-prefix=/home/poshea/usr \
--enable-optimize="-O3" \
--disable-ldap \
--disable-mailnews \
--enable-extensions="cookie,xml-rpc,xmlextras,pref,transformiix,universalchardet,webservices,inspector,p3p,gnomevfs,negotiateauth"
\
--enable-crypto \
--disable-composer \
--disable-debug \
--disable-tests \
--enable-static \
--disable-shared \
--with-xprint \
--disable-x11-shm \
--enable-ctl \
--enable-default-toolkit=gtk2 \
--disable-freetype2 \
--enable-xft \
--without-system-nspr \
--without-system-zlib \
--without-system-jpeg \
--without-system-png \
--without-system-mng \
--x-includes=/usr/openwin/include \
--x-libraries=/usr/openwin/lib 


And here is the error:

gmake[3]: Entering directory `/home/poshea/usr/source/misc/firefox/profile/src'
nsProfile.cpp
/home/poshea/usr/bin/g++ -o nsProfile.o -c -DOSTYPE=\"SunOS5\"
-DOSARCH=\"SunOS\" -I./../dirserviceprovider/src -I../../dist/include/xpcom
-I../../dist/include/xpcom_obsolete -I../../dist/include/string
-I../../dist/include/content -I../../dist/include/docshell
-I../../dist/include/webbrwsr -I../../dist/include/dom -I../../dist/include/js
-I../../dist/include/xpconnect -I../../dist/include/widget
-I../../dist/include/necko -I../../dist/include/uriloader
-I../../dist/include/intl -I../../dist/include/pref
-I../../dist/include/prefmigr -I../../dist/include/appshell
-I../../dist/include/uconv -I../../dist/include/windowwatcher
-I../../dist/include/profdirserviceprovider -I../../dist/include/profile
-I../../dist/include -I/home/poshea/usr/source/misc/firefox/dist/include/nspr  
  -I/usr/openwin/include     -I/home/poshea/usr/include  -I/usr/openwin/include
-fno-rtti -fno-exceptions -Wno-long-long -pedantic -O3 -mcpu=ultrasparc
-I/home/poshea/usr/include -fshort-wchar -pthreads  -DNDEBUG -DTRIMMED -O3 
-I/home/poshea/usr/include  -I/usr/openwin/include -DMOZILLA_CLIENT -include
../../mozilla-config.h -Wp,-MD,.deps/nsProfile.pp nsProfile.cpp
nsProfile.cpp: In member function `virtual nsresult 
   nsProfile::StartupWithArgs(nsICmdLineService*, int)':
nsProfile.cpp:415: error: `SelectLocaleForProfile' undeclared (first use this 
   function)
nsProfile.cpp:415: error: (Each undeclared identifier is reported only once for 
   each function it appears in.)
nsProfile.cpp: In member function `virtual nsresult 
   nsProfile::CreateNewProfileWithLocales(const PRUnichar*, const PRUnichar*, 
   const PRUnichar*, const PRUnichar*, int)':
nsProfile.cpp:1725: error: `SelectLocaleForProfile' undeclared (first use this 
   function)
nsProfile.cpp:1736: error: `GetSelectedSkin' undeclared (first use this 
   function)
nsProfile.cpp:1739: error: `SelectSkinForProfile' undeclared (first use this 
   function)
gmake[3]: *** [nsProfile.o] Error 1
gmake[3]: Leaving directory `/home/poshea/usr/source/misc/firefox/profile/src'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/home/poshea/usr/source/misc/firefox/profile'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory `/home/poshea/usr/source/misc/firefox'
Severity: normal → blocker
I get exactly the same thing .. Suse 9.x -i686

Here is my configure:
./configure --with-gtk-prefix=/usr/local --with-gtk-exec-prefix=/usr/local
--disable-gtktest --disable-glibtest --disable-libIDLtest
--with-libIDL-prefix=/usr/local --with-libIDL-exec-prefix=/usr/local
--with-glib-prefix=/usr/local --with-glib-exec-prefix=/usr/local
--disable-glibtest --enable-default-toolkit=gtk2 --disable-freetype2 --enable-xft
(In reply to comment #1)
> I get exactly the same thing .. Suse 9.x -i686
> 
> Here is my configure:
> ./configure --with-gtk-prefix=/usr/local --with-gtk-exec-prefix=/usr/local
> --disable-gtktest --disable-glibtest --disable-libIDLtest
> --with-libIDL-prefix=/usr/local --with-libIDL-exec-prefix=/usr/local
> --with-glib-prefix=/usr/local --with-glib-exec-prefix=/usr/local
> --disable-glibtest --enable-default-toolkit=gtk2 --disable-freetype2 --enable-xft

and my error ............

gmake[3]: Leaving directory
`/home/jpf/software/firefox-installer/mozilla/profile/dirserviceprovider'
gmake[3]: Entering directory
`/home/jpf/software/firefox-installer/mozilla/profile/src'
nsProfile.cpp
c++ -o nsProfile.o -c -DOSTYPE=\"Linux2.6.5-7.111\" -DOSARCH=\"Linux\"
-I./../dirserviceprovider/src -I../../dist/include/xpcom
-I../../dist/include/xpcom_obsolete -I../../dist/include/string
-I../../dist/include/content -I../../dist/include/docshell
-I../../dist/include/webbrwsr -I../../dist/include/dom -I../../dist/include/js
-I../../dist/include/xpconnect -I../../dist/include/widget
-I../../dist/include/necko -I../../dist/include/uriloader
-I../../dist/include/intl -I../../dist/include/pref
-I../../dist/include/prefmigr -I../../dist/include/appshell
-I../../dist/include/uconv -I../../dist/include/windowwatcher
-I../../dist/include/profdirserviceprovider -I../../dist/include/profile
-I../../dist/include
-I/home/jpf/software/firefox-installer/mozilla/dist/include/nspr    
-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
-fshort-wchar -pthread -pipe  -DDEBUG -D_DEBUG -DDEBUG_jpf -DTRACING -g
-fno-inline  -I/usr/X11R6/include -DMOZILLA_CLIENT -include
../../mozilla-config.h -Wp,-MD,.deps/nsProfile.pp nsProfile.cpp
nsProfile.cpp: In member function `virtual nsresult
   nsProfile::StartupWithArgs(nsICmdLineService*, int)':
nsProfile.cpp:415: error: `SelectLocaleForProfile' undeclared (first use this
   function)
nsProfile.cpp:415: error: (Each undeclared identifier is reported only once for
   each function it appears in.)
nsProfile.cpp: In member function `virtual nsresult
   nsProfile::CreateNewProfileWithLocales(const PRUnichar*, const PRUnichar*,
   const PRUnichar*, const PRUnichar*, int)':
nsProfile.cpp:1725: error: `SelectLocaleForProfile' undeclared (first use this
   function)
nsProfile.cpp:1736: error: `GetSelectedSkin' undeclared (first use this
   function)
nsProfile.cpp:1739: error: `SelectSkinForProfile' undeclared (first use this
   function)
gmake[3]: *** [nsProfile.o] Error 1
gmake[3]: Leaving directory
`/home/jpf/software/firefox-installer/mozilla/profile/src'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/home/jpf/software/firefox-installer/mozilla/profile'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory `/home/jpf/software/firefox-installer/mozilla'
make: *** [default] Error 2
See http://kb.mozillazine.org/Solutions_to_typical_compiling_errors
I suggest you follow the link for creating a .mozconfig (this setenv method
doesn't seem to work).
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Component: Build Config → General
Product: Firefox → Firefox Build System
You need to log in before you can comment on or make changes to this bug.