Closed Bug 334705 Opened 19 years ago Closed 19 years ago

reproducible linking failure

Categories

(Firefox Build System :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 305185

People

(Reporter: marius, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060211 Firefox/1.5.0.1 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060211 Firefox/1.5.0.1 I'm trying to build Firefox from source. I tried with different mozconfig's same result. Here is my mozconfig : . $topsrcdir/browser/config/mozconfig # # See http://www.mozilla.org/build/ for build instructions. # # Options for 'configure' (same as command-line options). ac_add_options --enable-default-toolkit=gtk2 ac_add_options --enable-static ac_add_options --disable-shared And here is the error message that I get : ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsAutoDrawSpecBuffer::Flush()':nsFontMetricsXft.cpp:(.text+0x284): undefined reference to `XftGlyphExtents' :nsFontMetricsXft.cpp:(.text+0x2b4): undefined reference to `XftDrawGlyphFontSpec' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXftCustom::SetFT_FaceCharmap()':nsFontMetricsXft.cpp:(.text+0x38b): undefined reference to `XftLockFace' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXft::CharToGlyphIndex(unsigned int)':nsFontMetricsXft.cpp:(.text+0x3e2): undefined reference to `XftCharIndex' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXftCustom::CharToGlyphIndex(unsigned int)':nsFontMetricsXft.cpp:(.text+0x411): undefined reference to `XftCharIndex' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXft::GetTextExtents32(unsigned int const*, unsigned int, _XGlyphInfo&)':nsFontMetricsXft.cpp:(.text+0x456): undefined reference to `XftTextExtents32' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXft::GetXftFont()':nsFontMetricsXft.cpp:(.text+0x4e3): undefined reference to `XftFontOpenPattern' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXft::~nsFontXft()':nsFontMetricsXft.cpp:(.text+0x528): undefined reference to `XftFontClose' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXft::~nsFontXft()':nsFontMetricsXft.cpp:(.text+0x58c): undefined reference to `XftFontClose' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXft::~nsFontXft()':nsFontMetricsXft.cpp:(.text+0x5e8): undefined reference to `XftFontClose' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXftCustom::~nsFontXftCustom()':nsFontMetricsXft.cpp:(.text+0x641): undefined reference to `XftUnlockFace' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXftCustom::~nsFontXftCustom()':nsFontMetricsXft.cpp:(.text+0x67d): undefined reference to `XftUnlockFace' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXftCustom::~nsFontXftCustom()':nsFontMetricsXft.cpp:(.text+0x6b1): undefined reference to `XftUnlockFace' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontMetricsXft::DrawUnknownGlyph(unsigned int, int, int, _XftColor*, _XftDraw*)':nsFontMetricsXft.cpp:(.text+0x89e): undefined reference to `XftDrawRect' :nsFontMetricsXft.cpp:(.text+0x8d1): undefined reference to `XftDrawRect' :nsFontMetricsXft.cpp:(.text+0x909): undefined reference to `XftDrawRect' :nsFontMetricsXft.cpp:(.text+0x940): undefined reference to `XftDrawRect' :nsFontMetricsXft.cpp:(.text+0x9ce): undefined reference to `XftDrawString8' :nsFontMetricsXft.cpp:(.text+0xa21): undefined reference to `XftDrawString8' :nsFontMetricsXft.cpp:(.text+0xa71): undefined reference to `XftDrawString8' :nsFontMetricsXft.cpp:(.text+0xac3): undefined reference to `XftDrawString8' :nsFontMetricsXft.cpp:(.text+0xb27): undefined reference to `XftDrawString8' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o):nsFontMetricsXft.cpp:(.text+0xb6d): more undefined references to `XftDrawString8' follow ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontMetricsXft::SetupMiniFont()':nsFontMetricsXft.cpp:(.text+0xd49): undefined reference to `XftDefaultSubstitute' :nsFontMetricsXft.cpp:(.text+0xd83): undefined reference to `XftFontOpenPattern' :nsFontMetricsXft.cpp:(.text+0xdd9): undefined reference to `XftTextExtents8' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontMetricsXft::GetWidth(char const*, unsigned int, int&, nsRenderingContextGTK*)':nsFontMetricsXft.cpp:(.text+0x1103): undefined reference to `XftTextExtents8' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontMetricsXft::SetupFCPattern()':nsFontMetricsXft.cpp:(.text+0x151d): undefined reference to `XftDefaultSubstitute' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXft::DrawStringSpec(unsigned int*, unsigned int, void*)':nsFontMetricsXft.cpp:(.text+0x17c9): undefined reference to `XftGlyphExtents' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontMetricsXft::PrepareToDraw(nsRenderingContextGTK*, nsDrawingSurfaceGTK*, _XftDraw**, _XftColor&)':nsFontMetricsXft.cpp:(.text+0x1f27): undefined reference to `XftDrawSetClipRectangles' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontMetricsXft::~nsFontMetricsXft()':nsFontMetricsXft.cpp:(.text+0x20ad): undefined reference to `XftFontClose' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontMetricsXft::~nsFontMetricsXft()':nsFontMetricsXft.cpp:(.text+0x3c33): undefined reference to `XftFontClose' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontMetricsXft::~nsFontMetricsXft()':nsFontMetricsXft.cpp:(.text+0x3d55): undefined reference to `XftFontClose' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXftCustom::GetTextExtents32(unsigned int const*, unsigned int, _XGlyphInfo&)':nsFontMetricsXft.cpp:(.text+0x4287): undefined reference to `XftTextExtents32' :nsFontMetricsXft.cpp:(.text+0x42f3): undefined reference to `XftGlyphExtents' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontMetricsXft::CacheFontMetrics()':nsFontMetricsXft.cpp:(.text+0x4432): undefined reference to `XftLockFace' :nsFontMetricsXft.cpp:(.text+0x467c): undefined reference to `XftTextExtents16' :nsFontMetricsXft.cpp:(.text+0x4c8d): undefined reference to `XftUnlockFace' ../../dist/lib/components/libgfx_gtk.a(nsDrawingSurfaceGTK.o): In function `nsDrawingSurfaceGTK::GetXftDraw()':nsDrawingSurfaceGTK.cpp:(.text+0x132): undefined reference to `XftDrawCreate' ../../dist/lib/components/libgfx_gtk.a(nsDrawingSurfaceGTK.o): In function `nsDrawingSurfaceGTK::~nsDrawingSurfaceGTK()':nsDrawingSurfaceGTK.cpp:(.text+0x44a): undefined reference to `XftDrawDestroy' ../../dist/lib/components/libgfx_gtk.a(nsDrawingSurfaceGTK.o): In function `nsDrawingSurfaceGTK::~nsDrawingSurfaceGTK()':nsDrawingSurfaceGTK.cpp:(.text+0x736): undefined reference to `XftDrawDestroy' ../../dist/lib/components/libgfx_gtk.a(nsDrawingSurfaceGTK.o): In function `nsDrawingSurfaceGTK::~nsDrawingSurfaceGTK()':nsDrawingSurfaceGTK.cpp:(.text+0x790): undefined reference to `XftDrawDestroy' collect2: ld returned 1 exit status gmake[3]: *** [firefox-bin] Error 1 gmake[3]: Leaving directory `/kit/mozilla/browser/app' gmake[2]: *** [libs] Error 2 gmake[2]: Leaving directory `/kit/mozilla/browser' gmake[1]: *** [tier_99] Error 2 gmake[1]: Leaving directory `/kit/mozilla' make: *** [default] Error 2 Reproducible: Always Steps to Reproduce: 1.Compile a static version firefox from source. 2. 3. Actual Results: ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsAutoDrawSpecBuffer::Flush()':nsFontMetricsXft.cpp:(.text+0x284): undefined reference to `XftGlyphExtents' :nsFontMetricsXft.cpp:(.text+0x2b4): undefined reference to `XftDrawGlyphFontSpec' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXftCustom::SetFT_FaceCharmap()':nsFontMetricsXft.cpp:(.text+0x38b): undefined reference to `XftLockFace' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXft::CharToGlyphIndex(unsigned int)':nsFontMetricsXft.cpp:(.text+0x3e2): undefined reference to `XftCharIndex' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXftCustom::CharToGlyphIndex(unsigned int)':nsFontMetricsXft.cpp:(.text+0x411): undefined reference to `XftCharIndex' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXft::GetTextExtents32(unsigned int const*, unsigned int, _XGlyphInfo&)':nsFontMetricsXft.cpp:(.text+0x456): undefined reference to `XftTextExtents32' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXft::GetXftFont()':nsFontMetricsXft.cpp:(.text+0x4e3): undefined reference to `XftFontOpenPattern' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXft::~nsFontXft()':nsFontMetricsXft.cpp:(.text+0x528): undefined reference to `XftFontClose' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXft::~nsFontXft()':nsFontMetricsXft.cpp:(.text+0x58c): undefined reference to `XftFontClose' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXft::~nsFontXft()':nsFontMetricsXft.cpp:(.text+0x5e8): undefined reference to `XftFontClose' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXftCustom::~nsFontXftCustom()':nsFontMetricsXft.cpp:(.text+0x641): undefined reference to `XftUnlockFace' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXftCustom::~nsFontXftCustom()':nsFontMetricsXft.cpp:(.text+0x67d): undefined reference to `XftUnlockFace' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXftCustom::~nsFontXftCustom()':nsFontMetricsXft.cpp:(.text+0x6b1): undefined reference to `XftUnlockFace' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontMetricsXft::DrawUnknownGlyph(unsigned int, int, int, _XftColor*, _XftDraw*)':nsFontMetricsXft.cpp:(.text+0x89e): undefined reference to `XftDrawRect' :nsFontMetricsXft.cpp:(.text+0x8d1): undefined reference to `XftDrawRect' :nsFontMetricsXft.cpp:(.text+0x909): undefined reference to `XftDrawRect' :nsFontMetricsXft.cpp:(.text+0x940): undefined reference to `XftDrawRect' :nsFontMetricsXft.cpp:(.text+0x9ce): undefined reference to `XftDrawString8' :nsFontMetricsXft.cpp:(.text+0xa21): undefined reference to `XftDrawString8' :nsFontMetricsXft.cpp:(.text+0xa71): undefined reference to `XftDrawString8' :nsFontMetricsXft.cpp:(.text+0xac3): undefined reference to `XftDrawString8' :nsFontMetricsXft.cpp:(.text+0xb27): undefined reference to `XftDrawString8' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o):nsFontMetricsXft.cpp:(.text+0xb6d): more undefined references to `XftDrawString8' follow ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontMetricsXft::SetupMiniFont()':nsFontMetricsXft.cpp:(.text+0xd49): undefined reference to `XftDefaultSubstitute' :nsFontMetricsXft.cpp:(.text+0xd83): undefined reference to `XftFontOpenPattern' :nsFontMetricsXft.cpp:(.text+0xdd9): undefined reference to `XftTextExtents8' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontMetricsXft::GetWidth(char const*, unsigned int, int&, nsRenderingContextGTK*)':nsFontMetricsXft.cpp:(.text+0x1103): undefined reference to `XftTextExtents8' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontMetricsXft::SetupFCPattern()':nsFontMetricsXft.cpp:(.text+0x151d): undefined reference to `XftDefaultSubstitute' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXft::DrawStringSpec(unsigned int*, unsigned int, void*)':nsFontMetricsXft.cpp:(.text+0x17c9): undefined reference to `XftGlyphExtents' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontMetricsXft::PrepareToDraw(nsRenderingContextGTK*, nsDrawingSurfaceGTK*, _XftDraw**, _XftColor&)':nsFontMetricsXft.cpp:(.text+0x1f27): undefined reference to `XftDrawSetClipRectangles' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontMetricsXft::~nsFontMetricsXft()':nsFontMetricsXft.cpp:(.text+0x20ad): undefined reference to `XftFontClose' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontMetricsXft::~nsFontMetricsXft()':nsFontMetricsXft.cpp:(.text+0x3c33): undefined reference to `XftFontClose' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontMetricsXft::~nsFontMetricsXft()':nsFontMetricsXft.cpp:(.text+0x3d55): undefined reference to `XftFontClose' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontXftCustom::GetTextExtents32(unsigned int const*, unsigned int, _XGlyphInfo&)':nsFontMetricsXft.cpp:(.text+0x4287): undefined reference to `XftTextExtents32' :nsFontMetricsXft.cpp:(.text+0x42f3): undefined reference to `XftGlyphExtents' ../../dist/lib/components/libgfx_gtk.a(nsFontMetricsXft.o): In function `nsFontMetricsXft::CacheFontMetrics()':nsFontMetricsXft.cpp:(.text+0x4432): undefined reference to `XftLockFace' :nsFontMetricsXft.cpp:(.text+0x467c): undefined reference to `XftTextExtents16' :nsFontMetricsXft.cpp:(.text+0x4c8d): undefined reference to `XftUnlockFace' ../../dist/lib/components/libgfx_gtk.a(nsDrawingSurfaceGTK.o): In function `nsDrawingSurfaceGTK::GetXftDraw()':nsDrawingSurfaceGTK.cpp:(.text+0x132): undefined reference to `XftDrawCreate' ../../dist/lib/components/libgfx_gtk.a(nsDrawingSurfaceGTK.o): In function `nsDrawingSurfaceGTK::~nsDrawingSurfaceGTK()':nsDrawingSurfaceGTK.cpp:(.text+0x44a): undefined reference to `XftDrawDestroy' ../../dist/lib/components/libgfx_gtk.a(nsDrawingSurfaceGTK.o): In function `nsDrawingSurfaceGTK::~nsDrawingSurfaceGTK()':nsDrawingSurfaceGTK.cpp:(.text+0x736): undefined reference to `XftDrawDestroy' ../../dist/lib/components/libgfx_gtk.a(nsDrawingSurfaceGTK.o): In function `nsDrawingSurfaceGTK::~nsDrawingSurfaceGTK()':nsDrawingSurfaceGTK.cpp:(.text+0x790): undefined reference to `XftDrawDestroy' collect2: ld returned 1 exit status gmake[3]: *** [firefox-bin] Error 1 gmake[3]: Leaving directory `/kit/mozilla/browser/app' gmake[2]: *** [libs] Error 2 gmake[2]: Leaving directory `/kit/mozilla/browser' gmake[1]: *** [tier_99] Error 2 gmake[1]: Leaving directory `/kit/mozilla' make: *** [default] Error 2 Expected Results: Clean build.
Fedora Core 5 / gcc 4.1.0 /Firefox 1.5.0.2
Do you have gtk2.8 ? If so, this is a dupe of bug 305185.
Summary: reproducible crash → reproducible linking failure
Yes it is gtk2-2.8.15-1. I did not know it is gtk's fault.
*** This bug has been marked as a duplicate of 305185 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
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.