[MPlayer-users] bug when installing (again)

D Richard Felker III dalias at aerifal.cx
Sat Nov 20 10:14:49 CET 2004


On Sat, Nov 20, 2004 at 10:42:47AM +0200, Andrei Tunea wrote:
> 
> thanks for the advice rich, i thought about that one too but (sadly) 
> after i posted the mail
> so i'll put it in the mail now.....
> here it is :
> 
> make[1]: Leaving directory `/home/andrei/sources/MPlayer-1.0pre5/Gui'
> cc -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -march=athlon-tbird 
> -mcpu=athlon-tbird -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT 
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gtk-1.2 
> -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include 
> -Ilibmpdemux -Iloader -Ilibvo -I/usr/include/freetype2 
> -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include 
> -I/usr/X11R6/include   -I/usr/X11R6/include       -o mplayer mplayer.o 
> mp_msg.o cpudetect.o codec-cfg.o spudec.o playtree.o playtreeparser.o 
> asxparser.o vobsub.o subreader.o sub_cc.o find_sub.o m_config.o 
> m_option.o parser-cfg.o m_struct.o unrarlib.o mixer.o parser-mpcmd.o 
> libvo/libvo.a libao2/libao2.a  vidix/libvidix.a Gui/libgui.a 
> libmpcodecs/libmpcodecs.a mp3lib/libMP3.a liba52/liba52.a 
> libmpeg2/libmpeg2.a loader/libloader.a loader/dshow/libDS_Filter.a 
> loader/dmo/libDMO_Filter.a libaf/libaf.a libmpdemux/libmpdemux.a 
> input/libinput.a postproc/libswscale.a osdep/libosdep.a -Llibmpdvdkit2 
> -lmpdvdkit libavcodec/libavcodec.a    -lvorbis -logg       -lpng -lz 
> -lz      -lfreetype -ltermcap  -lnsl    -lsmbclient -ldl -lnsl  
> -lfontconfig    libfaad2/libfaad2.a  -L/usr/lib -L/usr/X11R6/lib -lgtk 
> -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm -L/usr/lib 
> -lglib  -lGL -lXxf86dga -lXv  -lXxf86vm -lXinerama -L/usr/X11R6/lib 
> -lXext -lX11 -lnsl -lnsl                 -lpthread -ldl -rdynamic   -lm
> /usr/lib/libglib.a(gstrfuncs.o)(.text+0x5b4): In function `g_strdown':
> : undefined reference to `__ctype_tolower'
> /usr/lib/libglib.a(gstrfuncs.o)(.text+0x614): In function `g_strup':
> : undefined reference to `__ctype_toupper'
> /usr/lib/libglib.a(gstrfuncs.o)(.text+0x8ee): In function `g_strchug':
> : undefined reference to `__ctype_b'
> /usr/lib/libglib.a(gstrfuncs.o)(.text+0x9e5): In function `g_strchomp':
> : undefined reference to `__ctype_b'
> /usr/lib/libglib.a(gstring.o)(.text+0xb74): In function `g_string_down':
> : undefined reference to `__ctype_tolower'
> /usr/lib/libglib.a(gstring.o)(.text+0xbd4): In function `g_string_up':
> : undefined reference to `__ctype_toupper'
> collect2: ld returned 1 exit status
> make: *** [mplayer] Error 1

my guess is that your glib is a static library (this is obvious) and
that it depends on some other strange library mplayer isn't linking to
(dependencies of one library on another are automatic with shared libs
but not with static..)

rich




More information about the MPlayer-users mailing list