Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106088 - games-puzzle/gtetrinet doesn't properly link to libesd
Summary: games-puzzle/gtetrinet doesn't properly link to libesd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-15 11:12 UTC by Marien Zwart (RETIRED)
Modified: 2005-09-15 18:12 UTC (History)
0 users

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


Attachments
gtetrinet configure.in patch (gtetrinet-esd-configure.patch,272 bytes, patch)
2005-09-15 11:14 UTC, Marien Zwart (RETIRED)
Details | Diff
patch to gtetrinet-0.7.9.ebuild (ebuild.diff,702 bytes, patch)
2005-09-15 11:16 UTC, Marien Zwart (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marien Zwart (RETIRED) gentoo-dev 2005-09-15 11:12:40 UTC
gtetrinet seems to use some libesound functions but doesn't link properly to it,
see http://forums.gentoo.org/viewtopic-t-381218-highlight-gtetrinet.html. A
small addition to configure.in makes the problem go away, but since my autoconf
skills are *extremely* limited I suggest someone with more of those skills
confirms this configure.in patch makes sense, and the running of autoreconf
makes sense (esp. if parameters like --force may be needed to make it not break
if parts of the autotools on the system are newer than what used by gtetrinet).

Reproducible: Always
Steps to Reproduce:
1. emerge gtetrinet
2.
3.

Actual Results:  
The following, which also seems to happen for x86 stable users, see the forum post:

i686-pc-linux-gnu-gcc  -O2 -march=athlon-xp -pipe -fomit-frame-pointer -fweb
-frename-registers   -o gtetrinet  client.o commands.o config.o dialogs.o
fields.o gtetrinet.o misc.o partyline.o sound.o tetrinet.o tetris.o winlist.o
-Wl,--export-dynamic -pthread -lgnomeui-2 -lSM -lICE -lbonoboui-2
-lgnome-keyring -lxml2 -lz -lgnomecanvas-2 -lgnome-2 -lpopt -lart_lgpl_2
-lpangoft2-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0
-lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgnomevfs-2 -lbonobo-2
-lgconf-2 -lbonobo-activation -lORBit-2 -lm -lgmodule-2.0 -ldl -lgthread-2.0
-lglib-2.0   
sound.o: In function `sound_cache':
sound.c:(.text+0x50): undefined reference to `esd_sample_free'
sound.o: In function `sound_playsound':
sound.c:(.text+0xc0): undefined reference to `esd_sample_play'
collect2: ld returned 1 exit status
make[3]: *** [gtetrinet] Error 1
make[3]: Leaving directory
`/var/tmp/portage/gtetrinet-0.7.9/work/gtetrinet-0.7.9/src'


Expected Results:  
merged gtetrinet (properly linking to libesd).

Gentoo Base System version 1.12.0_pre8
Portage 1.589-cvs (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1,
2.6.13-gentoo-r1-m1-initrd i686)
=================================================================
System uname: 2.6.13-gentoo-r1-m1-initrd i686 AMD Athlon(tm) XP 2600+
Python:              dev-lang/python-2.4.1-r1 [2.4.1 (#1, Sep  1 2005, 01:32:07)]
distcc: No such file or directory [disabled]
dev-lang/python:     2.4.1-r1
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.59-r7, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -fweb -frename-registers"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c
/etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -fweb
-frename-registers -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache collision-protect distlocks noauto
sandbox sfperms strict userpriv usersandbox verify-rdepend"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/"
LANG="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/private /usr/local/portage/pub
/usr/local/portage/gentopia"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex 3dnowext X a52 alsa ansi bonobo browserplugin bzip2 cairo
ccache cdr crypt dbus dri eds emacs evo evo2 faad fbcon firefox flac gif glitz
glut gnome gstreamer gtk2 hal javascript jit jpeg kdeenablefinal kqemu libcaca
mad maildir md5sum mikmod mmx mmx2 mmxext mng mono mozdevelop moznomail mozsvg
mpeg ncurses nethack network new-login nfs nls nntp no-helpbrowser no-old-linux
nonfsv4 nptl nptlonly ogg oggvorbis opengl pam png python qemu-fast quicktime
readline real rtc sdl softmmu spell splash sse ssl startup-notification svg
symlink tetex theora truetype truetype-fonts unicode userlocales vorbis
win32codecs xinerama xml2 xv zlib video_cards_radeon userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, LINGUAS

Config files: /etc/make.conf, /etc/portage/bashrc, /etc/portage/package.mask,
/etc/portage/package.unmask, /etc/portage/package.keywords
Comment 1 Marien Zwart (RETIRED) gentoo-dev 2005-09-15 11:14:07 UTC
Created attachment 68523 [details, diff]
gtetrinet configure.in patch

Patch adding ESD_LIBS detected by autoconf magic to LIBS used by the rest of
the build process.
Comment 2 Marien Zwart (RETIRED) gentoo-dev 2005-09-15 11:16:04 UTC
Created attachment 68524 [details, diff]
patch to gtetrinet-0.7.9.ebuild

This applies the previous patch and runs autoreconf.
Comment 3 SpanKY gentoo-dev 2005-09-15 18:12:51 UTC
fixed in cvs, thanks