[MPlayer-dev-eng] tgetent undefined - need a -lncurses

Steven M. Schultz sms at 2BSD.COM
Sun Oct 28 10:09:45 CET 2001


Greetings -

	Building the latest CVS version of MPlayer gives undefined symbols
	during the final linking:

gcc -rdynamic -O4 -march=i686 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -D_THREAD_SAFE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -fomit-frame-pointer  -Ilibmpdemux -Iloader -Ilibvo -I/usr/include    -o mplayer mplayer.o -Llibmpdemux -lmpdemux ima4.o xacodec.o cpudetect.o mp_msg.o ac3-iec958.o find_sub.o dec_audio.o dec_video.o codec-cfg.o subreader.o lirc_mp.o cfgparser.o mixer.o spudec.o dll_init.o    -ltermcap -Lloader -lloader -Lloader/DirectShow -lDS_Filter -lstdc++  -Llibmpeg2 -lmpeg2 -Llibao2 -lao2 -Lmp3lib -lMP3 -Llibac3 -lac3     -Llibvo -lvo  -L/usr/X11R6/lib -L/usr/lib   -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lm -L/usr/contrib/lib -lesd -laudiofile -lm -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lXxf86dga -lXv -ldl -lsem -lXxf86dga -lX11 -lXext -lXv -lXxf86vm  -lpng -lz    -lXinerama  -lz -ldvdread -Lencore -lencore  -rdynamic -pthread -ldvd -liconv -Llinux -losdep -Lpostproc -lpostproc -Lxa -lxa -Lopendivx -ldecore -lm
linux/libosdep.a(getch2.o): In function `load_termcap':
getch2.o(.text+0x28): undefined reference to `tgetent'
getch2.o(.text+0x69): undefined reference to `tgetnum'
getch2.o(.text+0x7b): undefined reference to `tgetnum'
getch2.o(.text+0xc3): undefined reference to `tgetstr'
getch2.o(.text+0x168): undefined reference to `tgetstr'
getch2.o(.text+0x20d): undefined reference to `tgetstr'
getch2.o(.text+0x2b2): undefined reference to `tgetstr'
getch2.o(.text+0x357): undefined reference to `tgetstr'
linux/libosdep.a(getch2.o)(.text+0x3fc): more undefined references to `tgetstr' follow

	This is due to a missing "-lncurses".   When I manually added a 
	-lncurses to the command the build was succesful.   'tgetent' (and
	other functions) are defined in -lncurses and not -ltermcap - it is
	necessary to include both -ltermcap and -lncurses.

	Alas, the latestg MPlayer still says this when playing a DVD:

DEMUXER: Too many (4096 in 8285115 bytes) video packets in the buffer!
(maybe you play a non-interleaved stream/file or the codec failed)
Successfully enabled DPMS.386 ct:  7.457  3093/3093  46% 43% 13.6% 2294 0 0%

	Steven Schultz
	sms at 2bsd.com



More information about the MPlayer-dev-eng mailing list