[fixed in 4.2] C++ visibility attribute
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
firefox (Ubuntu) |
Fix Released
|
Medium
|
Mozilla Team | ||
gcc-defaults (Ubuntu) |
Fix Released
|
High
|
Matthias Klose |
Bug Description
In order to test edgy (using vmware server) - before installing it for real - I wanted to build the firefox trunk source, but the build process is killed real soon, too soon :(
I reported the bug on mozilla's bugzilla (https:/
So I open a bug here, in order to help.
Here is the error code I get :
c++ -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align
-Woverloaded-
-Wno-long-long -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -O2 -pipe -w
-fPIC -shared -Wl,-z,defs -Wl,-h,libjar50.so -o libjar50.so nsZipArchive.o
nsWildCard.o nsJARInputStream.o nsJARDirectoryI
nsJARFactory.o nsXPTZipLoader.o nsJARProtocolHa
nsJARURI.o -lpthread -Wl,--version-
-Wl,../
-L../../dist/bin -L../../dist/lib -L../../dist/lib -lmozz -L../../dist/bin
-lxpcom -lxpcom_core -L../../dist/bin -L../../dist/lib -lplds4 -lplc4 -lnspr4
-lpthread -ldl -ldl -lm
nsJAR.o:
nsZipReaderCach
nsSupportsWeakR
nsJARProtocolHa
nsJARProtocolHa
nsSupportsWeakR
collect2: ld returned 1 exit status
I was using the gcc linked to ubuntu edgy eft knot 3.
It is simple to reproduce : just try to build mozilla trunk code on edgy eft...
description: | updated |
I tried again with "gcc version 4.1.2 20060906 (prerelease) (Ubuntu 4.1.1-13ubuntu2)"
Using this .mozconfig, based on optimization flags used by ubuntu version of firefox.
"# www.mozilla. org/build/ for build instructions.
# See http://
#
. $topsrcdir/ browser/ config/ mozconfig
# Options for 'configure' (same as command-line options). default- toolkit= cairo-gtk2 optimize= "-O2 -pipe -g -fno-strict- aliasing"
ac_add_options --enable-
ac_add_options --disable-freetype2
ac_add_options --enable-pango
ac_add_options --enable-canvas
ac_add_options --enable-svg
ac_add_options --disable-debug
ac_add_options --disable-tests
ac_add_options --enable-
ac_add_options --enable-strip
ac_add_options --enable-static
ac_add_options --disable-shared"
And I launch build process, using make -f client.mk build >& buildlog.log in order to log the error.
"rm -f libjar50.so virtual -Wsynth -Wno-ctor- dtor-privacy -Wno-non- virtual- dtor -Wno-long-long -pedantic -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -O2 -pipe -g -fno-strict- aliasing -fPIC -shared -Wl,-z,defs -Wl,-h,libjar50.so -o libjar50.so nsZipArchive.o nsWildCard.o nsJARInputStream.o nsJARDirectoryI nputStream. o nsJAR.o nsJARFactory.o nsXPTZipLoader.o nsJARProtocolHa ndler.o nsJARChannel.o nsJARURI.o -lpthread -Wl,--version- script -Wl,../ ../build/ unix/gnu- ld-scripts/ components- version- script -Wl,-Bsymbolic -L../../dist/bin -L../../dist/lib -L../../dist/lib -lmozz -L../../dist/bin -lxpcom -lxpcom_core -L../../dist/bin -L../../dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -ldl -lm (.data. rel.ro. _ZTV16nsZipRead erCache[ vtable for nsZipReaderCach e]+0x54) : référence indéfinie vers « nsSupportsWeakR eference: :GetWeakReferen ce(nsIWeakRefer ence**) » ndler.o: (.data. rel.ro. _ZTV20nsJARProt ocolHandler[ vtable for nsJARProtocolHa ndler]+ 0x4c): référence indéfinie vers « nsSupportsWeakR eference: :GetWeakReferen ce(nsIWeakRefer ence**) » log/mozilla/ modules/ libjar » log/mozilla » log/mozilla » log/mozilla »
c++ -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-
nsJAR.o:
nsJARProtocolHa
collect2: ld returned 1 exit status
make[4]: *** [libjar50.so] Erreur 1
make[4]: quittant le répertoire « /home/fred/
make[3]: *** [libs_tier_gecko] Erreur 2
make[3]: quittant le répertoire « /home/fred/
make[2]: *** [tier_gecko] Erreur 2
make[2]: quittant le répertoire « /home/fred/
make[1]: *** [default] Erreur 2
make[1]: quittant le répertoire « /home/fred/
make: *** [build] Erreur 2"
I will attach a bzip2 version of the log in order to help. For me, it will be a blocker and a no-go for switching to edgy eft after its release if I cannot build firefox trunk (which will be firefox 3.0 next year).