Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50190 - openbox-3.2 fails to compile on x86
Summary: openbox-3.2 fails to compile on x86
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Commonbox Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-06 01:48 UTC by Jeremy Huddleston (RETIRED)
Modified: 2004-05-06 12:02 UTC (History)
0 users

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


Attachments
openbox-3.2-Mafefile.patch (openbox-3.2.patch,413 bytes, patch)
2004-05-06 01:58 UTC, Jeremy Huddleston (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Huddleston (RETIRED) gentoo-dev 2004-05-06 01:48:34 UTC
l-control.o -lSM -lICE  -L/usr/X11R6/lib -lX11 
/bin/sh ./libtool --silent --mode=link gcc  -march=pentium3 -mcpu=pentium4 -O3 -                                                                                                                    pipe -fomit-frame-pointer -falign-functions=4 -falign-jumps=4 -falign-loops=4 -D                                                                                                                    NDEBUG -DG_DISABLE_ASSERT   -o openbox/openbox -export-dynamic openbox/openbox_o                                                                                                                    penbox-action.o openbox/openbox_openbox-client.o openbox/openbox_openbox-client_                                                                                                                    list_menu.o openbox/openbox_openbox-client_menu.o openbox/openbox_openbox-config                                                                                                                    .o openbox/openbox_openbox-debug.o openbox/openbox_openbox-dock.o openbox/openbo                                                                                                                    x_openbox-event.o openbox/openbox_openbox-extensions.o openbox/openbox_openbox-f                                                                                                                    ocus.o openbox/openbox_openbox-frame.o openbox/openbox_openbox-framerender.o ope                                                                                                                    nbox/openbox_openbox-grab.o openbox/openbox_openbox-group.o openbox/openbox_open                                                                                                                    box-keyboard.o openbox/openbox_openbox-keytree.o openbox/openbox_openbox-mainloo                                                                                                                    p.o openbox/openbox_openbox-menuframe.o openbox/openbox_openbox-menu.o openbox/o                                                                                                                    penbox_openbox-mouse.o openbox/openbox_openbox-moveresize.o openbox/openbox_open                                                                                                                    box-openbox.o openbox/openbox_openbox-place.o openbox/openbox_openbox-popup.o op                                                                                                                    enbox/openbox_openbox-prop.o openbox/openbox_openbox-resist.o openbox/openbox_op                                                                                                                    enbox-screen.o openbox/openbox_openbox-session.o openbox/openbox_openbox-stackin                                                                                                                    g.o openbox/openbox_openbox-startupnotify.o openbox/openbox_openbox-translate.o                                                                                                                     openbox/openbox_openbox-window.o openbox/openbox_openbox-xerror.o -lSM -lICE -L/                                                                                                                    usr/X11R6/lib -lXft -lX11 -lfreetype -lXrender -lfontconfig   -lXext -lXinerama                                                                                                                      -lXext -lXrender -lXrandr -lXext -lXxf86vm -lXext -lglib-2.0   -lSM -lICE  -L/u                                                                                                                    sr/X11R6/lib -lX11 -lstartup-notification-1   -lxml2 -lpthread -lz -lm     rende                                                                                                                    r/libobrender.la parser/libobparser.la 
/bin/sh ./libtool --silent --mode=link gcc  -march=pentium3 -mcpu=pentium4 -O3 -                                                                                                                    pipe -fomit-frame-pointer -falign-functions=4 -falign-jumps=4 -falign-loops=4 -D                                                                                                                    NDEBUG -DG_DISABLE_ASSERT   -o render/rendertest  render/render_rendertest-test.                                                                                                                    o parser/libobparser.la render/libobrender.la -L/usr/X11R6/lib -lXft -lX11 -lfre                                                                                                                    etype -lXrender -lfontconfig   -lglib-2.0   -lxml2 -lpthread -lz -lm   -lSM -lIC                                                                                                                    E  -L/usr/X11R6/lib -lX11 
render/.libs/libobrender.so: undefined reference to `XftInit'
render/.libs/libobrender.so: undefined reference to `XftDrawStringUtf8'
render/.libs/libobrender.so: undefined reference to `XftDrawDestroy'
render/.libs/libobrender.so: undefined reference to `XftTextExtentsUtf8'
render/.libs/libobrender.so: undefined reference to `XftFontOpenPattern'
render/.libs/libobrender.so: undefined reference to `XftDrawCreate'
render/.libs/libobrender.so: undefined reference to `XftFontMatch'
render/.libs/libobrender.so: undefined reference to `XftNameParse'
render/.libs/libobrender.so: undefined reference to `XftFontClose'
collect2: ld returned 1 exit status
make[1]: *** [openbox/openbox] Error 1
make[1]: Leaving directory `/usr/local/tmp/portage/openbox-3.2/work/openbox-3.2'
make: *** [all-recursive] Error 1

!!! ERROR: x11-wm/openbox-3.2 failed.
!!! Function src_compile, Line 30, Exitcode 2
!!! (no error message)

Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-gentoo)
=================================================================
System uname: 2.6.5-gentoo i686 Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz
Gentoo Base System version 1.4.8
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -mcpu=pentium4 -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-jumps=4 -falign-loops=4"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb/rules /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -mcpu=pentium4 -O3 -pipe -fomit-frame-pointer -falign-functions=4 -falign-jumps=4 -falign-loops=4"
DISTDIR="/usr/local/download/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/local/download/portage/packages-pentium4"
PORTAGE_TMPDIR="/usr/local/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/download/portage"
SYNC="rsync://192.168.0.1/gentoo-portage"
USE="3ds S3TC X X509 Xaw3d aalib acl afs alsa altivec amd apache2 apm ardour-ksi arts artswrappersuid atlas autofs avantgo avi berkdb bidi bindist bonobo caps cdr chroot clamav clanJavaScript clanVoice clearpasswd clisp cmucl crypt cscope cups curl dedicated dga directfb dnd doc dv dvd emacs emacs-w3 encode esd ethereal evo expat faad fax fbcon fbdev ffmpeg flac flash foomaticdb gb gcl gd gd-external gdbm ggi gif glut gmtfull gmthigh gmtsuppl gmttria gnome gnomedb gphoto2 gpm gps gstreamer gtk gtk2 gtkhtml guile hbci icc imagemagick imap imlib imlib2 innodb ipalias ipv6 jack jack-caps java javascript jbig jikes joystick jpeg js junit justify kde kerberos krb4 ladcca lcd lcms ldam leim libdsk libg libg++ libgda libwww lids lmtp ltsp lua lucid mad maildir mcal md5sum menu mikmod milter mmx mng mono motif mozcalendar mozctl mozilla mozinterfaceinfo mozp3p mozsvg mozxmlterm mpeg mpeg4 mpi mule music mysql nas ncurses neXt nls nviz oav objc oci8 odbc offensive ofx oggvorbis oldworld openal opengl oscar oss pam parse-clocks passfile pcap pcmcia pcre pda pdflib perl php pic plotutils png pnp ppds prelude psyco python qhull qt quicktime radeon readline regexp rplay ruby ruby18 samba sasl scanner sdk sdl skey slang slp snmp socks5 sox speex spell sqlite src sse ssl svga tcltk tcpd tetex theora tiff transcode transparent-proxy truetype trusted type1 ucs2 unicode usb video_cards_radeon videos vim-with-x wmf wxwin wxwindows x86 xchattext xine xinerama xml xml2 xmms xosd xv xvid zeo zlib"


Looking into a patch...
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2004-05-06 01:58:15 UTC
Created attachment 30835 [details, diff]
openbox-3.2-Mafefile.patch

cd ${S}
epatch ${FILESDIR}/${P}-Makefile.patch
--

Adds linkst to the dependent libs...

You should probably send this upstream...
Comment 2 Brandon Hale (RETIRED) gentoo-dev 2004-05-06 08:57:31 UTC
Are you using xfree-4.3.0-r6? For me this works everywhere else, -r6 replaces XFree's libxft with an external one and fails.
Comment 3 Brandon Hale (RETIRED) gentoo-dev 2004-05-06 09:00:07 UTC
Upstream tried to reproduce with XFree and an external libxft and failed.
https://bugzilla.icculus.org/show_bug.cgi?id=1397

This does not fail with XFree -r5 or xorg-x11, seems like a bug in -r6, what do you think?
Comment 4 Brandon Hale (RETIRED) gentoo-dev 2004-05-06 09:17:50 UTC
Read/tested the patch, even if the problem only exists in a single case, it seems "more correct", I added it for now. The bug is reopened upstream, check the link above.
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2004-05-06 09:41:06 UTC
$ qpkg -I -v xfree
x11-base/xfree-4.3.0-r5

It's not a problem with libXft.  The lib that gets linked isn't linked against the proper libraries, but when 'render' links against it, it is told to additionally link against the dependent libs (so the lib should link against libXft, but instead the program linking against the lib is linked against it... this works on some platforms, but not others, and it is pretty bad form in general...)
Comment 6 Brandon Hale (RETIRED) gentoo-dev 2004-05-06 12:02:23 UTC
Applied to -r1 and in CVS upstream.
Thanks.