Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58547 - lame-3.96.1 failes to compile
Summary: lame-3.96.1 failes to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
: 61174 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-27 06:57 UTC by Jim Nutt
Modified: 2004-10-03 17:05 UTC (History)
5 users (show)

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


Attachments
Redirect of emerge output (lame_log,45.16 KB, text/plain)
2004-08-03 13:23 UTC, Dave
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Nutt 2004-07-27 06:57:31 UTC
Attempting to emerge lame fails with the following (early stuff omitted):

gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -o mp3x mp3x.o gtkanal.o gpkplotting.o get_audio.o lametime.o parse.o portableio.o timestatus.o brhist.o -rdynamic  ../libmp3lame/.libs/libmp3lame.a -lncurses -L/usr/lib -L/usr/X11R6/lib /usr/lib/libgtk.a /usr/lib/libgdk.a /usr/lib/libgmodule.a /usr/lib/libglib.a -ldl -lXi -lXext -lX11 -lm
/usr/lib/libglib.a(gstrfuncs.o)(.text+0x785): In function `g_strdown':
: undefined reference to `__ctype_tolower'
/usr/lib/libglib.a(gstrfuncs.o)(.text+0x825): In function `g_strup':
: undefined reference to `__ctype_toupper'
/usr/lib/libglib.a(gstrfuncs.o)(.text+0x1296): In function `g_strchug':
: undefined reference to `__ctype_b'
/usr/lib/libglib.a(gstrfuncs.o)(.text+0x137a): In function `g_strchomp':
: undefined reference to `__ctype_b'
/usr/lib/libglib.a(gstring.o)(.text+0x606): In function `g_string_down':
: undefined reference to `__ctype_tolower'
/usr/lib/libglib.a(gstring.o)(.text+0x6a6): In function `g_string_up':
: undefined reference to `__ctype_toupper'
collect2: ld returned 1 exit status


Reproducible: Always
Steps to Reproduce:
1. emerge -UD lame
2.
3.

Actual Results:  
See details

Expected Results:  
Successful build and emerge

moe root # emerge info
Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040619-r0,2.2.5-r4,
2.6.7)
=================================================================
System uname: 2.6.7 i686 AMD Duron(tm) processor
Gentoo Base System version 1.5.1
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-tbird -mcpu=athlon-tbird -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-tbird -mcpu=athlon-tbird -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X alsa apache2 apm avantgo avi berkdb cdr crypt cups curl
dillo doc dvd encode esd foomaticdb gd gdbm gif gimpprint gpg gpgme gphoto2 gpm
gps gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib java jpeg jpilot
libg++ libwww mad maildir mbox mikmod motif mozilla moznocompose moznoirc
moznomail mozsvg mozxmlterm mpeg mpeg4 mysql ncurses nptl ofx ogg oggvorbis
openal opengl pam pda pdflib pear perl png postgres ppds python quicktime
readline samba scanner sdl slang sox speedo spell sse ssl svg svga tcltk tcpd
tetex tiff transcode truetype type1 usb v4l vcd wmf x86 xemacs xface xfs xine
xml2 xmms xv xvid zlib"
Comment 1 Jim Nutt 2004-07-27 07:07:24 UTC
Adding 'USE="-gtk"' gets the encoder to compile, so it's a problem in the gtk stuff.
Comment 2 Alexander Jenisch 2004-07-27 18:18:16 UTC
same here. please fix.
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2004-07-27 19:47:54 UTC
I got it to compile with USE=gtk

What versions of gtk+ and glib  do youu have installed?
Comment 4 Haroon Rafique 2004-07-28 08:04:23 UTC
Same problem as OP. USE="-gtk" let's me compile.

My versions for gtk+ and glib are as follows:

x11-libs/gtk+-2.4.4 *
x11-libs/gtk+-1.2.10-r11 *
dev-libs/glib-1.2.10-r5 *
dev-libs/glib-2.4.4 *

> emerge info
Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040619-r0, 2.6.7-ck5)
=================================================================
System uname: 2.6.7-ck5 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
Gentoo Base System version 1.5.1
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -s -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -ffast-math"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /etc/tomcat /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/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/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -s -fomit-frame-pointer -fforce-addr
-falign-functions=4 -fprefetch-loop-arrays -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://mirrors.tds.net/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo"
MAKEOPTS="-j11"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage.local"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X aalib alsa apache2 apm arts avi berkdb bonobo cdr crypt cups encode esd
foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java jikes jpeg junit
kde ldap libg++ libwww mad mbox mikmod motif mozilla mpeg mysql ncurses nls
offensive oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime
readline ruby sdl slang spell ssl svga tcltk tcpd tetex tiff truetype x86
xinerama xml2 xmms xv zlib"
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2004-07-30 18:46:51 UTC
I have...

dev-libs/glib-1.2.10-r5 *
dev-libs/glib-2.4.1 *

x11-libs/gtk+-1.2.10-r11 *
x11-libs/gtk+-2.4.1 *

What's the rest of the command line that errors?  You cut off the start, so I'm not sure what it's trying to link there...
Comment 6 Haroon Rafique 2004-08-03 08:56:10 UTC
I'm not the OP, but from comment 0, its trying to link mp3x.
Comment 7 Dave 2004-08-03 13:20:55 UTC
Same problem for me. I've attached complete build output.

My system is "~x86", 
x11-libs/gtk+-2.4.4 *
x11-libs/gtk+-1.2.10-r11 *
sys-libs/glibc-2.3.4.20040619 *
dev-libs/glib-2.4.5 *
dev-libs/glib-1.2.10-r5 *

Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040619-r0, 2.6.7-mm2)
=================================================================
System uname: 2.6.7-mm2 i686 Intel(R) Pentium(R) III Mobile CPU      1133MHz
Gentoo Base System version 1.5.2
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/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/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acpi alsa apm arts avi berkdb bonobo cdr crypt cups dga directfb dvd encode esd foomaticdb g77 gamma gdbm ggi gif gnome gpm gtk gtk2 gtkhtml guile i810 i830 imlib java jpeg kde ldap libg++ libwww mad mikmod motif mozilla moznocompose moznoirc moznomail mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcltk tcpd tetex tiff truetype x86 xml2 xmms xv zlib"
Comment 8 Dave 2004-08-03 13:23:26 UTC
Created attachment 36710 [details]
Redirect of emerge output

Attachment promised above.
Comment 9 Daniel Webert 2004-08-21 10:28:52 UTC
*** Bug 61174 has been marked as a duplicate of this bug. ***
Comment 10 Jeremy Huddleston (RETIRED) gentoo-dev 2004-09-01 01:16:44 UTC
I dunno... it works fine for me... gnome devs have any idea?
Comment 11 foser (RETIRED) gentoo-dev 2004-09-01 04:03:32 UTC
see bug #9607 . I don't know why lame tries to use the static libs, I don't think it should be doing that.
Comment 12 Przemyslaw Maciag (RETIRED) gentoo-dev 2004-09-04 13:49:04 UTC
I couldn't reproduce this bug... Everything is working fine on my machine.

From my x86 box: epm -qa | grep "^gtk+\|^glib"
gtk+-2.4.4
gtk+-1.2.10-r11
glib-2.4.0
glib-1.2.10-r5

Also on my ppc machine (iBook G4) there are no problems:
gtk+-1.2.10-r11
glib-2.4.6
glib-1.2.10-r5

Maybe try to upgrade packages one by one and test when it finnaly got  to work - then it will be posible to add apprioperiate depedencies (in my opinion this _may be_ the problem... but I'm not a gtk/gnome guru... ;-) ).

Regards,
Przemek
Comment 13 Miran Bozicevic 2004-09-07 13:33:33 UTC
The solution described in bug #9607 worked for me.  I did:

emerge /usr/portage/dev-libs/glib/glib-1.2.10-r5.ebuild
emerge /usr/portage/dev-libs/glib/glib-2.4.6.ebuild
emerge lame

Yay!
Comment 14 foser (RETIRED) gentoo-dev 2004-09-07 14:24:03 UTC
nah i bet thats a workaround just happens to recompiles the static lib to another glibc & in that way fixing the symbol problems, i guess rebuilding the same version would also work.

No, nobody noticed this, but lame is at this point seemingly building static, which is not how it should be.
Comment 15 Jeremy Huddleston (RETIRED) gentoo-dev 2004-10-03 17:05:46 UTC
fixed... now links against the shared libs...