Bug 97628 - emerging advancemenu-2.4.9 fails with USE=static
|
Bug#:
97628
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: x86
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: games@gentoo.org
|
Reported By: walch.martin@web.de
|
|
Component: Games
|
|
|
URL:
|
|
Summary: emerging advancemenu-2.4.9 fails with USE=static
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2005-07-01 09:13 0000
|
I tried emerging advancemenu-2.4.9 with several configurations on two different
systems.
First with
[ebuild N ] games-emulation/advancemenu-2.4.9 +alsa -debug +expat -fbcon
+ncurses +oss +sdl +slang +static -svga +truetype +zlib
resulted in an error telling me thas alsalib was not found. But I am absolutely
sure, it is installed:
* media-libs/alsa-lib
Latest version available: 1.0.8
Latest version installed: 1.0.8
Next, I disabled alsa:
[ebuild N ] games-emulation/advancemenu-2.4.9 -alsa -debug +expat -fbcon
+ncurses +oss +sdl +slang +static -svga +truetype +zlib
now configure interrupts with an error that sdl was not found, but also this
time I am sure, it is installed:
* media-libs/libsdl
Latest version available: 1.2.8-r1
Latest version installed: 1.2.8-r1
last, I disabled the sdl flag:
[ebuild N ] games-emulation/advancemenu-2.4.9 -alsa -debug +expat -fbcon
+ncurses +oss -sdl +slang +static -svga +truetype +zlib
but this time configure stopped with:
configure: error: no video library found. If you have the SDL library installed
somewhere try using the --with-sdl-prefix option.
(Other ebuilds find alsa and sdl)
Reproducible: Always
Steps to Reproduce:
1. as root: emerge advancemenu
2.
3.
emerge --info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r11 i686)
=================================================================
System uname: 2.6.11-gentoo-r11 i686 Intel(R) Celeron(R) CPU 2.00GHz
Gentoo Base System version 1.6.12
Python: dev-lang/python-2.3.5 [2.3.5 (#1, Jun 15 2005, 04:41:00)]
dev-lang/python: 2.3.5
sys-apps/sandbox: [Not Present]
sys-devel/autoconf: 2.59-r6, 2.13
sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils: 2.15.92.0.2-r10
sys-devel/libtool: 1.5.16
virtual/os-headers: 2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /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/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://ftp.gentoo.mesh-solutions.com/gentoo/
http://pandemonium.tiscali.de/pub/gentoo/
ftp://pandemonium.tiscali.de/pub/gentoo/ http://mirror.switch.ch/mirror/gentoo/
ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo
http://gentoo.mirror.solnet.ch"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 16bit 3dfx X Xaw3d a52 aac aalib alsa apm arts artswrappersuid asm avi
beepmp bitmap-fonts cacheemu cdr delays dga dpms dts encode esd expat fam flac
ggi gif glut gnokii gpm gtk gtk2 hal imlib jack jack-tmpfs java javascript jikes
jit joystick jpeg jpeg2k kde kdeenablefinal kqemu lcms libcaca libdsk libg++
livecd mad matrox mikmod mips16 mmx mng motif mp3 mpeg multislot multitarget
ncurses nls nocd nodrm nptl nvidia ogg oggvorbis openal openexr opengl oss pam
pcre pda pdflib physfs pic png portaudio python qt quicktime readline real
sblive sdl slang sndfile softmmu sse static svg symlink tcltk tetex threads tiff
transcode truetype truetype-fonts type1-fonts unicode vidix vorbis win32codecs
wmf wxgtk1 wxwindows xml2 xmms xrandr xv xvid zlib linguas_de userland_GNU
kernel_linux elibc_glibc"
Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
let's have the config.log from the build directory please. Attach it as
text/plain. So far, I suspect you've been neglecting some local maintenance,
but the log will make it more clear.
looks like remerging glibc and alsa-lib might help. Just for fun, let's see
the
output from "emerge -evp world" before you kick that off.
looks clean. thanks for doing that. proceed with the glibc and alsa-lib
remerge and see if that clears things up for you wrt advancemenu.
just started emerge glibc alsa-lib
It will probably take a rather long time, because I have not ccache installed on
that system and my computer is not really fast. nptl is set, but nptlonly is unset.
Now, I've done:
emerge glibc alsa-lib
[...]
>>> No outdated packages were found on your system.
* Regenerating GNU info directory index...
* Processed 125 info files.
env-update
>>> Regenerating /etc/ld.so.cache...
* Caching service dependencies ...
emerge advancemenu
[...]
checking for port in/out... yes
checking for snd_pcm_open in -lasound... no
configure: error: the ALSA library is missing
!!! ERROR: games-emulation/advancemenu-2.4.9 failed.
!!! Function egamesconf, Line 66, Exitcode 1
!!! egamesconf failed
!!! If you need support, post the topmost build error, NOT this status message.
still the same problem
darn. does running revdep-rebuild turn up anything?
revdep-rebuild does not find any problems:
revdep-rebuild
Checking reverse dependencies...
Packages containing binaries and libraries broken by any package update,
will be recompiled.
Collecting system binaries and libraries... done.
(/root/.revdep-rebuild.1_files)
Collecting complete LD_LIBRARY_PATH... done.
(/root/.revdep-rebuild.2_ldpath)
Checking dynamic linking consistency...
done.
(/root/.revdep-rebuild.3_rebuild)
Assigning files to ebuilds... Nothing to rebuild
Evaluating package order... done.
(/root/.revdep-rebuild.5_order)
Dynamic linking on your system is consistent... All done.
well, my next guess is that this is caused by you having set pic in your use
flags.
/ # prelink -ua
prelink: /usr/lib/nwwine/bin/wine: Could not find one of the dependencies
prelink: /usr/lib/nwwine/bin/wine: Could not find one of the dependencies
prelink: /usr/i686-pc-linux-gnu/gcc-bin/3.3.5-20050130/i686-pc-linux-gnu-g++ is
no longer hardlink to
/usr/i686-pc-linux-gnu/gcc-bin/3.3.5-20050130/i686-pc-linux-gnu-c++
/ # nano /etc/make.conf
/ # env-update
>>> Regenerating /etc/ld.so.cache...
* Caching service dependencies ...
[ ok ]
/ # emerge world -Npv
These are the packages that I would merge, in order:
Calculating world dependencies ...done!
[ebuild R ] app-arch/gzip-1.3.5-r7 -build +nls -pic* +static 0 kB
[ebuild R ] sys-libs/glibc-2.3.4.20041102-r1 -build -debug -erandom
-hardened (-multilib) +nls -nomalloccheck +nptl -nptlonly -pic* +userlocales 0 kB
Total size of downloads: 0 kB
/ # emerge world -N
currently running... I will got to bed now.
~ $ date +%X
01:16:37
Thank you for your help. I'll post the result tomorrow.
both packets successfully remerged with -pic
still the same problem
USE=pic does not cause issues for anyone ... the use of it in gzip/glibc is
unrelated
it's failing because of the static USE flag
when linking against libasound.a you have to add -lpthread to your linking flags
if you're using -static ... libasound.so has the info recorded in the lib itself
so you can just do -lasound
in this case, the configure.ac is misbehaving in that it uses AC_CHECK_LIB() on
libasound instead of consulting the alsa.pc file installed for pkg-config ... if
we update configure.ac like this, it should work:
elif test $ac_lib_alsa = yes; then
AC_CHECK_LIB(
[asound],
[snd_pcm_open],
[],
[AC_MSG_ERROR([the ALSA library is missing])],
- [-lm]
+ [`pkg-config alsa --libs`]
)
AC_MSG_CHECKING([for ALSA version])
AC_TRY_COMPILE([
#include <alsa/asoundlib.h>
], [
#if SND_LIB_VERSION < ((0<<16)|(9<<8)|0)
choke me
So, if I just remove the static flag an do a emerge world --newuse it should
work.
I tested it on a system with everything compiled -static. Emerges cleanly.
With your patch it should also work for +static, right?
Well, I applied this patch, created a new ebuild and tried to emerge it. But I
still get the same error.
added patch to 2.4.10 in cvs, thanks for the bug report