Closed
Bug 235760
Opened 22 years ago
Closed 22 years ago
unable to compile on FreeBSD 4.8 with gcc 2.95.4
Categories
(Core :: Web Painting, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: cnst+bmo, Assigned: roc)
Details
I am unable to compile the latest mozilla on FreeBSD 4.8 with gcc 2.95.4.
I used the following commands to get the source and compile:
setenv CVSROOT :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot
cvs login
cvs checkout mozilla/client.mk
cd mozilla
gmake -f client.mk checkout
gmake -f client.mk build
I got the following error message:
c++ -I/usr/X11R6/include -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 -pipe
-DDEBUG -D_DEBUG -DDEBUG_constant -DTRACING -g -o DumpColors DumpColors.o
-L../../dist/bin -L../../dist/lib -lgkgfx -L../../dist/bin -lxpcom
-L../../dist/bin -lmozjs -L/usr/X11R6/lib -L/usr/X11R6/lib -lgtk12 -lgdk12
-L/usr/local/lib -Wl,-E -lgmodule12 -lglib12 -lintl -lXi -lXext -lX11 -lm
-L/usr/home/constant/mozillacvs/mozilla/dist/lib -lplds4 -lplc4 -lnspr4 -pthread
-lm
../../dist/bin/libgkgfx.so: undefined reference to `nsIView::GetWidget(void) const'
gmake[4]: *** [DumpColors] Error 1
gmake[4]: Leaving directory `/usr/home/constant/mozillacvs/mozilla/gfx/tests'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/usr/home/constant/mozillacvs/mozilla/gfx'
gmake[2]: *** [tier_9] Error 2
gmake[2]: Leaving directory `/usr/home/constant/mozillacvs/mozilla'
gmake[1]: *** [default] Error 2
gmake[1]: Leaving directory `/usr/home/constant/mozillacvs/mozilla'
gmake: *** [build] Error 2
%
I have the following system:
%uname -mprsv
FreeBSD 4.8-RELEASE FreeBSD 4.8-RELEASE #16: Sun May 11 19:24:54 EDT 2003
constant@cnst:/usr/src/sys/compile/MYKERNEL i386 i386
%gcc --version
2.95.4
%
| Assignee | ||
Comment 1•22 years ago
|
||
sigh.
Sticking 'virtual' in front of GetWidget in nsIView.h will make it compile, I
suppose?
| Reporter | ||
Comment 2•22 years ago
|
||
I am unable to reproduce this problem due to some other problems with the tree
(see below). I will try to look at this bug when the tree is going to be more
stable, i.e. during the next freeze, for 1.7b. Remind me if I do not post
anything during the freeze.
../../../config/nsinstall -R -m 644
/usr/home/constant/mozillacvs/mozilla/gfx/src/xlibrgb/xlibrgb.h
../../../dist/include/xlibrgb
/usr/bin/perl5 -I/usr/home/constant/mozillacvs/mozilla/config
/usr/home/constant/mozillacvs/mozilla/config/build-list.pl
../../../dist/include/xlibrgb/.headerlist xlibrgb.h
gmake[5]: Leaving directory
`/usr/home/constant/mozillacvs/mozilla/obj-i386-unknown-freebsd4.8/gfx/src/xlibrgb'
gmake: *** xprintutil: No such file or directory. Stop.
gmake: Entering an unknown directorygmake: Leaving an unknown directorygmake[4]:
*** [export] Error 2
gmake[4]: Leaving directory
`/usr/home/constant/mozillacvs/mozilla/obj-i386-unknown-freebsd4.8/gfx/src'
gmake[3]: *** [export] Error 2
gmake[3]: Leaving directory
`/usr/home/constant/mozillacvs/mozilla/obj-i386-unknown-freebsd4.8/gfx'
gmake[2]: *** [tier_9] Error 2
gmake[2]: Leaving directory
`/usr/home/constant/mozillacvs/mozilla/obj-i386-unknown-freebsd4.8'
gmake[1]: *** [default] Error 2
gmake[1]: Leaving directory
`/usr/home/constant/mozillacvs/mozilla/obj-i386-unknown-freebsd4.8'
gmake: *** [build] Error 2
Mon 1 Mar 2004 21:24:46 EST
%
Comment 3•22 years ago
|
||
gmake: *** xprintutil: No such file or directory. Stop.
xprintutil is still very much part of the Mozilla tree. This has nothing to do
with any trunk "instability"
http://lxr.mozilla.org/mozilla/source/gfx/src/xprintutil/
Comment 4•22 years ago
|
||
I also got "undefined reference to `nsIView::GetWidget(void) const'" on Debian
3.0 ("woody") using the following:
g++ 2.95.4-14 The GNU C++ compiler.
gcc 2.95.4-14 The GNU C compiler.
libc6-dev 2.2.5-11.5 GNU C Library: Development Libraries
libfreetype6-dev 2.0.9-1 FreeType 2 font engine, development files
libglib1.2-dev 1.2.10-4 Development files for GLib library
libgtk1.2-dev 1.2.10-11 Development files for the GIMP Toolkit
libidl-dev 0.7.4-3 development files for libIDL
libstdc++2.10-dev 2.95.4-11woody The GNU stdc++ library (development files)
xlibs-dev 4.1.0-16woody3 X Window System client library development
(In reply to comment #1)
> Sticking 'virtual' in front of GetWidget in nsIView.h will make it compile,
> I suppose?
Indeed, on both mozilla-source-1.7a.tar.bz2 and on the nightly
mozilla-source.tar.bz2 (timestamp of Mar 8 18:18).
Unfortunaly, I got the following on execution (which could be totaly unrelated
the this bug since it's the first time I build mozilla) :
./mozilla-bin: relocation error:
/home/soli/mozilla/mozilla/dist/bin/components/libgfx_gtk.so: undefined symbol:
GetContent__C8nsIFrame
Continue your great work, Mozilla is fabulous!
| Reporter | ||
Comment 5•22 years ago
|
||
I downloaded everything from scratch today and it all compiled and worked with
no problem and no modifications from my side. Marking WORKSFORME. Thanks for
your help!
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
Comment 6•21 years ago
|
||
I get same error "undefined reference to `nsIView::GetWidget(void) const"
on Slackware 8.0.0 with gcc 2.95.3 . Should I use newer gcc ?
Why does it happen ?
Comment 7•21 years ago
|
||
I just ran into this problem while trying to compile firefox-1.0.3 with
gcc-2.95.3. As the problem appears to be related to handling of inline
functions, I added
ac_add_options --enable-optimize
ac_add_options --disable-debug
to my .mozconfig file and that solved the problem (I think only the first
was relevant, as it enables inlining).
Updated•7 years ago
|
Component: Layout: View Rendering → Layout: Web Painting
You need to log in
before you can comment on or make changes to this bug.
Description
•