Closed Bug 276649 Opened 20 years ago Closed 19 years ago

Compilation Fails when enabling Qt toolkit.

Categories

(Toolkit :: Startup and Profile System, defect)

x86
Linux
defect
Not set
major

Tracking

()

VERIFIED DUPLICATE of bug 281244

People

(Reporter: webmaster, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla CVS (31 December 2004)

OK, I have a little something to offer before I request this to be looked into.
I have been trying to compile Firefox with the Qt toolkit enabled, among other
things. But, I'm sure this is Qt-related since the .o files associated with this
problem have qt in them. At any rate, I did find a syntax error in
toolkit/xre/nsAppRunner.cpp that you may want to fix as well. On line 1878, it
should be 'QApplication' instead of 'QAppliction.' After I fixed that, I got
this later on in the build process. I took a look at it while trying to fix it
myself, but I'm not that familiar with the code, so if anyone would let me know
what might be the case here, I would appreciate it. Thanks.

> nsStaticComponents.cpp
nsStaticComponents.cpp
c++ -o nsStaticComponents.o -c -I../../dist/include/system_wrappers -include
/home/paul/Desktop/mozillasrc/mozilla/config/gcc_hidden.h -DAB_CD=en-US
-DOSTYPE=\"Linux2.6.9-1\" -DOSARCH=\"Linux\" -D_BUILD_STATIC_BIN=1
-DFIREFOX_ICO=\"../../dist/branding/firefox.ico\"
-DDOCUMENT_ICO=\"../../dist/branding/document.ico\" -DAPP_VERSION=\"1.0+\"
-DBUILD_ID=\"2004123118\" -I/home/paul/Desktop/mozillasrc/mozilla/toolkit/xre
-I../../dist/include/appshell -I../../dist/include/string
-I../../dist/include/xpcom -I../../dist/include/xulapp
-I../../dist/include/xpcom -I../../dist/include/string -I../../dist/include
-I../../dist/include
-I/home/paul/Desktop/mozillasrc/mozilla/obj-i686-pc-linux-gnu/dist/include/nspr
    -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
-fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O  -I/usr/X11R6/include
-DMOZILLA_CLIENT -include ../../mozilla-config.h
-Wp,-MD,.deps/nsStaticComponents.pp nsStaticComponents.cpp
c++ -o firefox-bin -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  -DNDEBUG -DTRIMMED -O  nsBrowserApp.o
nsStaticComponents.o      -L../../dist/bin -L../../dist/lib
-L../../dist/lib/components -lxpcom_compat_c -lxpconnect -luconv -lucvmath
-li18n -lnecko -lnecko2 -lpref -lcaps -lrdf -lhtmlpars -lgfxps -lgfxxprint
-lgfx_qt -limglib2 -lgkplugin -lwidget_qt -lgklayout -ldocshell
-lembedcomponents -lwebbrwsr -leditor -ltxmgr -lcomposer -lnsappshell -loji
-laccessibility -lchrome -lpipboot -lpipnss -lpippki -lmork -lfileview -lmozfind
-lappcomps -ltoolkitcomps -lcookie -lxmlextras -lautoconfig -ltransformiix
-luniversalchardet -lwebsrvcs -lpermissions -lbrowsercomps -lunicharutil_s
-lucvutil_s -lgfxshared_s -lgfxft2_s -lgfxpsshar -lxlibrgb -lxprintutil -lgkgfx
-ljsj -lxulapp_s ../../dist/lib/libxulapp_s.a -L../../dist/bin -lmozjs
-L../../dist/bin -lxpcom -lxpcom_core 
-L/home/paul/Desktop/mozillasrc/mozilla/obj-i686-pc-linux-gnu/dist/lib -lplds4
-lplc4 -lnspr4 -lpthread -ldl  -L/usr/X11R6/lib -L/usr/lib/qt-3.3/lib -lqt-mt
-lXext -lX11  -ldl -lm  -L../../dist/lib/components -L../../dist/lib -lmozpng
-L../../dist/lib -lmozjpeg -L../../dist/lib -lmozz  -L../../dist/bin
-L../../dist/lib ../../dist/lib/libcrmf.a -lsmime3 -lssl3 -lnss3 -lsoftokn3  
-L/usr/X11R6/lib -lXp -lXext -lX11 -L../../dist/lib -lxpcom_compat
../../dist/lib/components/libgfx_qt.a(nsRenderingContextQt.o)(.text+0x0): In
function `GraphicsState::GraphicsState()':
: multiple definition of `GraphicsState::GraphicsState()'
../../dist/lib/components/libgfxxprint.a(nsRenderingContextXlib.o)(.text+0x156):
first defined here
/usr/bin/ld: Warning: size of symbol `GraphicsState::GraphicsState()' changed
from 61 in ../../dist/lib/components/libgfxxprint.a(nsRenderingContextXlib.o) to
127 in ../../dist/lib/components/libgfx_qt.a(nsRenderingContextQt.o)
../../dist/lib/components/libgfx_qt.a(nsRenderingContextQt.o)(.text+0x80): In
function `GraphicsState::GraphicsState()':
: multiple definition of `GraphicsState::GraphicsState()'
../../dist/lib/components/libgfxxprint.a(nsRenderingContextXlib.o)(.text+0x194):
first defined here
/usr/bin/ld: Warning: size of symbol `GraphicsState::GraphicsState()' changed
from 61 in ../../dist/lib/components/libgfxxprint.a(nsRenderingContextXlib.o) to
127 in ../../dist/lib/components/libgfx_qt.a(nsRenderingContextQt.o)
../../dist/lib/components/libgfx_qt.a(nsRenderingContextQt.o)(.text+0x100): In
function `GraphicsState::~GraphicsState()':
: multiple definition of `GraphicsState::~GraphicsState()'
../../dist/lib/components/libgfxxprint.a(nsRenderingContextXlib.o)(.text+0x1d2):
first defined here
/usr/bin/ld: Warning: size of symbol `GraphicsState::~GraphicsState()' changed
from 32 in ../../dist/lib/components/libgfxxprint.a(nsRenderingContextXlib.o) to
19 in ../../dist/lib/components/libgfx_qt.a(nsRenderingContextQt.o)
../../dist/lib/components/libgfx_qt.a(nsRenderingContextQt.o)(.text+0x114): In
function `GraphicsState::~GraphicsState()':
: multiple definition of `GraphicsState::~GraphicsState()'
../../dist/lib/components/libgfxxprint.a(nsRenderingContextXlib.o)(.text+0x1f2):
first defined here
/usr/bin/ld: Warning: size of symbol `GraphicsState::~GraphicsState()' changed
from 32 in ../../dist/lib/components/libgfxxprint.a(nsRenderingContextXlib.o) to
19 in ../../dist/lib/components/libgfx_qt.a(nsRenderingContextQt.o)
../../dist/lib/components/libgfxxprint.a(nsXPrintContext.o)(.text+0x226d): In
function `nsXPrintContext::DrawImageBitsScaled(unsigned long, xGC*, nsIImage*,
int, int, int, int, int, int, int, int)':
: undefined reference to `RectStretch(unsigned int, unsigned int, unsigned int,
unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned
char*, unsigned int, unsigned char*, unsigned int, unsigned int)'
collect2: ld returned 1 exit status
gmake[4]: *** [firefox-bin] Error 1
gmake[4]: Leaving directory
`/home/paul/Desktop/mozillasrc/mozilla/obj-i686-pc-linux-gnu/browser/app'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory
`/home/paul/Desktop/mozillasrc/mozilla/obj-i686-pc-linux-gnu/browser'
gmake[2]: *** [tier_99] Error 2
gmake[2]: Leaving directory
`/home/paul/Desktop/mozillasrc/mozilla/obj-i686-pc-linux-gnu'
make[1]: *** [default] Error 2
make[1]: Leaving directory
`/home/paul/Desktop/mozillasrc/mozilla/obj-i686-pc-linux-gnu'
make: *** [build] Error 2


Reproducible: Always

Steps to Reproduce:
Build Mozilla with this config:

# sh
# Build configuration script
#
# See http://www.mozilla.org/build/unix.html for build instructions.
#

# Options for client.mk.
. $topsrcdir/browser/config/mozconfig
#mk_add_options MOZ_CO_PROJECT=browser
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@

# Options for 'configure' (same as command-line options).
ac_add_options --enable-optimize
ac_add_options --disable-debug
ac_add_options --enable-static
ac_add_options --disable-shared
ac_add_options --disable-tests
ac_add_options --enable-cairo
ac_add_options --disable-elf-dynstr-gc
ac_add_options --enable-default-toolkit=qt
ac_add_options --with-qtdir=/usr/lib/qt-3.3
ac_add_options --enable-application=browser
ac_add_options --enable-official-branding
#ac_add_options --enable-svg
#ac_add_options --enable-svg-renderer-cairo

Actual Results:  
Compilation failed.

Expected Results:  
Finished compiling.
Just some followup on this problem. I did get it to compile without making it
static. This is a problem when trying to produce static binaries.
Summary: Compilation Fails when enabling Qt toolkit. → Compilation Fails when enabling Qt toolkit.
Severity: blocker → major
Assignee: bryner → chase
Status: UNCONFIRMED → NEW
Ever confirmed: true
Product: Firefox → Toolkit
QA Contact: asa
Component: Build Config → XRE Startup
Assignee: chase → nobody
QA Contact: nobody

*** This bug has been marked as a duplicate of 281244 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Verified dup
Status: RESOLVED → VERIFIED
Component: XRE Startup → Startup and Profile System
QA Contact: nobody → startup
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: