LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   undefined reference to `XF86VidModeGetModeLine' (http://www.linuxquestions.org/questions/linux-general-1/undefined-reference-to-%60xf86vidmodegetmodeline-341584/)

apokryphos 07-09-2005 08:34 AM

undefined reference to `XF86VidModeGetModeLine'
 
I've had this error for an awful long amount of time, and it stops me compiling things that I really need. Done several Google searches but haven't found anything too conclusive. More info:

/bin/sh ../../libtool --silent --mode=link --tag=CXX g++ -DINFO_OPENGL_AVAILABLE -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wno-non-virtual-dtor -g3 -fno-inline -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -D_GNU_SOURCE -o kcm_info.la -rpath /home/kdedev/kde-unstable/lib/kde3 -L/home/kdedev/kde-unstable/lib -L/usr/share/qt3/lib -L/usr/X11R6/lib -module -avoid-version -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined main.lo memory.lo opengl.lo -lkdeui -lGLU -lGL -lX11
/usr/lib/libGL.a(glxcmds.o)(.text+0x2eea): In function `glXGetMscRateOML':
: undefined reference to `XF86VidModeQueryVersion'
/usr/lib/libGL.a(glxcmds.o)(.text+0x2f1a): In function `glXGetMscRateOML':
: undefined reference to `XF86VidModeGetModeLine'
collect2: ld returned 1 exit status
make[3]: *** [kcm_info.la] Error 1
make[3]: Leaving directory `/home/kdedev/src/kde/kdebase/kcontrol/info'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/kdedev/src/kde/kdebase/kcontrol'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kdedev/src/kde/kdebase'
make: *** [all] Error 2

verdeboy2k 08-07-2005 06:40 PM

I get the same error compiling mplayer:

gcc-3.3 -I../libvo -I../../libvo -I/usr/X11R6/include -fno-PIC -O4 -march=athlon-xp -mcpu=athlon-xp -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/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 edl.o unrarlib.o mixer.o parser-mpcmd.o subopt-helper.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 -lpng -lz -lz -ljpeg -lasound -ldl -lpthread -lfreetype -lz -ltermcap -lcdda_interface -lcdda_paranoia -lnsl -lfontconfig libfaad2/libfaad2.a mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a tremor/libvorbisidec.a -laa -lGL -L/usr/X11R6/lib -lXext -lX11 -lnsl -lnsl -L/usr/lib -lSDL -lpthread -lvgagl -lvga -lm -ldirectfb -L/usr/lib -ldl -lartsc -lpthread -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 -L/usr/lib -lesd -laudiofile -lm -laudio -lXt -L/usr/X11R6/lib -lXext -lX11 -lnsl -lpthread -ldl -rdynamic -lm
/usr/X11R6/lib/libGL.a(glxcmds.o): In function `glXGetMscRateOML':
: undefined reference to `XF86VidModeQueryVersion'
/usr/X11R6/lib/libGL.a(glxcmds.o): In function `glXGetMscRateOML':
: undefined reference to `XF86VidModeGetModeLine'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1

I didn't have this on older versions of my X11 libs/X.org


All times are GMT -5. The time now is 04:04 AM.