[MPlayer-users] fb_dev_name undefined

Torinthiel torinthiel at megapolis.pl
Fri Nov 12 17:19:57 CET 2004


On Thu, Nov 11, 2004 at 09:19:10PM -0800, Steven M. Schultz wrote:
> 
> Hi -
> 
> 	I know this problem (building on a SuSE 9.2 system) has been
> 	mentioned before:
> 
> cc -c -I../libvo -I../../libvo -I/usr/X11/include -fno-PIC -O4 -march=pentium4 -mcpu=pentium4 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I. -I.. -I../osdep -I/usr/include/freetype2 -I/usr/include/SDL -D_REENTRANT -I/usr/X11/include   -I/usr/include/directfb -DMPG12PLAY  -o vo_fbdev.o vo_fbdev.c
> In file included from /usr/include/linux/list.h:7,
>                  from ../osdep/kerneltwosix.h:5,
>                  from vo_fbdev.c:21:
> /usr/include/linux/prefetch.h: In function `prefetch_range':
> /usr/include/linux/prefetch.h:64: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared (first use in this function)
> /usr/include/linux/prefetch.h:64: error: (Each undeclared identifier is reported only once
> /usr/include/linux/prefetch.h:64: error: for each function it appears in.)
> gmake[1]: *** [vo_fbdev.o] Error 1
> gmake[1]: Leaving directory `/usr/local/src/MPlayer-cvs/libvo'
> gmake: *** [libvo/libvo.a] Error 2
> 	
> 	So, ok - I'll just add a "--disable-fbdev" since I don't need it.
> 
> 	Using --disable-fbdev gives an undefined symbol at the final linking
> 	step of MPlayer:
> 
> gmake[1]: Leaving directory `/usr/local/src/MPlayer-cvs/libmpdvdkit2'
> cc -I../libvo -I../../libvo -I/usr/X11/include -fno-PIC -O4 -march=pentium4 -mcpu=pentium4 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I. -I/usr/include/freetype2   -I/usr/include/SDL -D_REENTRANT -I/usr/X11/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 edl.o unrarlib.o mixer.o parser-mpcmd.o libvo/libvo.a libao2/libao2.a  vidix/libvidix.a  libmpcodecs/libmpcodecs.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 libavformat/libavformat.a  -lmad -lvorbis -logg -ldv -ltheora -logg -lfaad -llzo -lmp3lame -lvorbis -logg -lxvidcore -lm  -lpng -lz -lz -ljpeg -lasound -ldl -lpthread   -lfreetype  -lcdda_int!
>  erface -lcdda_paranoia /usr/local/
> src/live/liveMedia/libliveMedia.a /usr/local/src/live/groupsock/libgroupsock.a /usr/local/src/live/UsageEnvironment/libUsageEnvironment.a /usr/local/src/live/BasicUsageEnvironment/libBasicUsageEnvironment.a -lstdc++ -lnsl  -lungif  -lsmbclient  -lfontconfig    mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a  -laa -lGL -lXxf86dga -lXv  -lXxf86vm -lXinerama -L/usr/X11R6/lib -lXext -lX11 -lnsl -lnsl -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread     -ldirectfb  -L/opt/kde3/lib -ldl -lartsc -lpthread -L/opt/gnome/lib -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 -L/usr/lib -lesd -laudiofile -lm -lasound      -llirc_client   -lpthread -ldl -rdynamic   -lm
> mplayer.o(.data+0x484): undefined reference to `fb_dev_name'
> collect2: ld returned 1 exit status
> 
> 	Running "nm" on the .o files it's seen that mplayer.o is the only
> 	reference:
> 
> ./mplayer.o:         U fb_dev_name
> 
> 	I can't see fb_dev_name explicitly used in mplayer.c - must be a 
> 	reference to it hidden in a .h file somewhere.
> 
> 	What's a good workaround (or fix ;)) to enable building MPlayer
> 	on a SuSE 9.2 system (with or without fbdev is fine).

Try --disable-directfb in addition (or in place of) --disable-fbdev
That should be a workaround.
For a fix try to find it in configure.log and in configure and try
to find out why autodetct misdetected what you have.
Torinthiel

-- 
 Waclaw "Torinthiel" Schiller       GG#: 542916, 3073512
   torinthiel(at)megapolis(dot)pl
   gpg: B06901F1 fpr: FAA3 559F CAE9 34DE CDC8  7346 2B6E 39F2 B069 01F1
 "No classmates may be used during this examination"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20041112/6f0172eb/attachment.pgp>


More information about the MPlayer-users mailing list