Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22935 - Mozilla (1.3-r2) compilation failed (missing library in a linking phase)
Summary: Mozilla (1.3-r2) compilation failed (missing library in a linking phase)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Alpha Linux
: High major (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 22936 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-06-16 11:16 UTC by Mathieu MILLET
Modified: 2003-10-01 09:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
diff between the the original ebuild script and mine (diff-mozilla-1.3-r2-missing-Xlib-in-linking,755 bytes, text/plain)
2003-06-24 15:39 UTC, Mathieu MILLET
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu MILLET 2003-06-16 11:16:24 UTC
I try to compile mozilla 1.3-r2 and the compilation failed with the following error:
nsDeviceContextGTK.o(.text._Z9GetXftDPIv+0x2c): In function `GetXftDPI()':
: undefined reference to `XGetDefault'
nsDeviceContextGTK.o(.text._Z9GetXftDPIv+0x30): In function `GetXftDPI()':
: undefined reference to `XGetDefault'
collect2: ld returned 1 exit status
make[1]: *** [libgfx_gtk.so] Error 1
make[1]: Leaving directory `/home/var/tmp/portage/mozilla-1.3-r2/work/mozilla/gfx/src/gtk'
make: *** [all] Error 2

As I find, the XGetDefault function is provided by the file libX11.a|so (meaning linked with a -lX11) and it seems that the linking command doesn't reference that library.

Reproducible: Always
Steps to Reproduce:
1.emerge mozilla
2.
3.
Actual Results:  
compilation failed at this step:
g++ -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-long-long -mcpu=ev56 -pipe -Wno-deprecated -mieee -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-sections -O2  -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -fPIC -shared -Wl,-h -Wl,libgfx_gtk.so -o libgfx_gtk.so  nsPrintdGTK.o nsDeviceContextGTK.o nsDeviceContextSpecFactoryG.o nsDeviceContextSpecG.o nsDrawingSurfaceGTK.o nsGfxFactoryGTK.o nsGraphicsStateGTK.o nsImageGTK.o nsGCCache.o nsRenderingContextGTK.o nsScreenGtk.o nsScreenManagerGtk.o nsPrintOptionsGTK.o nsFontMetricsUtils.o nsAntiAliasedGlyph.o nsFontFreeType.o nsFT2FontNode.o nsFT2FontCatalog.o nsX11AlphaBlend.o nsXFontAAScaledBitmap.o nsXFontNormal.o nsFontMetricsGTK.o nsGdkUtils.o nsFontMetricsXft.o nsRegionGTK2.o     -Wl,--version
nsDeviceContextGTK.o(.text._Z9GetXftDPIv+0x2c): In function `GetXftDPI()':
: undefined reference to `XGetDefault'
nsDeviceContextGTK.o(.text._Z9GetXftDPIv+0x30): In function `GetXftDPI()':
: undefined reference to `XGetDefault'
collect2: ld returned 1 exit status
make[1]: *** [libgfx_gtk.so] Error 1
make[1]: Leaving directory `/home/var/tmp/portage/mozilla-1.3-r2/work/mozilla/gfx/src/gtk'
make: *** [all] Error 2

Expected Results:  
No error

Portage 2.0.48-r1 (default-alpha-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-raid2 alpha EV56
GENTOO_MIRRORS="ftp://gentoo.irisa.fr/pub/gentoo-sources http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="alpha crypt cups encode gif jpeg libg++ mikmod ncurses nls oss pdflib png quicktime sdl spell truetype xml2 xmms xv zlib gnome-libs gdbm berkdb slang readline tetex ruby mysql X gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk motif opengl ldap acl alsa avi doc dvd evo flash gb gd gtk2 gtkhtml guile imap innodb ipv6 kerberos libgda mcal mdb mozaccess mozcalendar mozilla mozinterfaceinfo mozirc mozp3p mozxmlterm mpeg pda plotutils samba sasl scanner snmp tcltk tiff usb vim-with-x wmf xfs xinerama xml xosd -kde -qt"
COMPILER="gcc3"
CHOST="alpha-unknown-linux-gnu"
CFLAGS="-mcpu=ev56 -O3 -pipe "
CXXFLAGS="-mcpu=ev56 -O3 -pipe "
ACCEPT_KEYWORDS="alpha ~alpha"
MAKEOPTS=""
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="ccache"
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2003-06-16 15:21:07 UTC
*** Bug 22936 has been marked as a duplicate of this bug. ***
Comment 2 Mathieu MILLET 2003-06-24 15:39:33 UTC
Created attachment 13802 [details]
diff between the the original ebuild script and mine

This diff enables the use of xlib instead of gtk or gtk2 for 'toolkit'.
Comment 3 Mathieu MILLET 2003-06-24 15:41:28 UTC
I know that it is written in the ebuild script that xlib isn't stable but I have used this toolkit for a year and half on RedHat 7.x on alpha.

For now (2 days), mozilla hasn't crashed yet.

I don't know if it's possible but it should be great to allow/enable xlib on aplha platform.
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-06-30 15:19:02 UTC
Any volenteers from the Alpha guys to test these patches ?
Comment 5 Mathieu MILLET 2003-06-30 23:05:20 UTC
So far (one week of regular use), no problem (no hangs, crash or whatever...).
Comment 6 Tavis Ormandy (RETIRED) gentoo-dev 2003-08-16 04:34:28 UTC
I think i fixed this when i was getting firebird working, reporter please reopen if you are still experiencing this with mozilla-1.4-r3.
Comment 7 Aron Griffis (RETIRED) gentoo-dev 2003-10-01 09:00:59 UTC
Reclosing this bug