[mythtv-users] /usr/bin/ld: cannot find -lXext

cythrault at gmail.com cythrault at gmail.com
Mon Apr 4 19:55:29 UTC 2005


Hi,

Compiling libmyth-0.17:

/usr/bin/ld: cannot find -lXext
collect2: ld returned 1 exit status

I know… this has been discussed to death. I have red the posts. I must
be too thick... I had to hack the Makefile to make it work. My older
backend, running FC1 did not have this problem. I've compared what I
could think of and did not see appreciable differences...

/usr/src/mythtv/libs/libmyth/Makefile:

Before:

LIBS     = $(SUBLIBS) -L$(QTDIR)/lib -L../libmythsamplerate
-lmythsamplerate-0.17 -L../libmythsoundtouch -lmythsoundtouch-0.17
-lqt-mt -lXext -lX11 -lm -lpthread

After:

LIBS     = $(SUBLIBS) -L$(QTDIR)/lib -L../libmythsamplerate
-lmythsamplerate-0.17 -L../libmythsoundtouch -lmythsoundtouch-0.17
-lqt-mt -I/usr/X11R6/lib -lm -lpthread

The libs are there since it compiles fine with this hack... it seems a
matter of ld. Tho everything seems appropriate:

[root at teevee2 ~]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/lib/mysql
/usr/local/lib
[root at teevee2 ~]# ls /etc/ld.so.conf.d/
qt-i386.conf  xorg-x11-i386.conf
[root at teevee2 ~]# ls /etc/ld.so.conf.d/xorg-x11-i386.conf 
/etc/ld.so.conf.d/xorg-x11-i386.conf
[root at teevee2 ~]# cat /etc/ld.so.conf.d/xorg-x11-i386.conf   
/usr/X11R6/lib

[root at teevee2 ~]# ls -lha /usr/X11R6/lib/libXext.*
-rw-r--r--  1 root root 72K Mar 30 10:26 /usr/X11R6/lib/libXext.a
lrwxrwxrwx  1 root root  14 Apr  3 17:33 /usr/X11R6/lib/libXext.so ->
libXext.so.6.4
lrwxrwxrwx  1 root root  14 Apr  3 17:09 /usr/X11R6/lib/libXext.so.6
-> libXext.so.6.4
-rwxr-xr-x  1 root root 53K Mar 30 10:27 /usr/X11R6/lib/libXext.so.6.4

[root at teevee2 ~]# rpm -qa|grep xorg|grep -vi mesa
xorg-x11-libs-6.8.2-1.FC3.13_2.rhfc3.at
xorg-x11-devel-6.8.2-1.FC3.13_2.rhfc3.at

[root at teevee2 ~]# rpm -qf /usr/X11R6/lib/libXext.*
xorg-x11-devel-6.8.2-1.FC3.13_2.rhfc3.at
xorg-x11-devel-6.8.2-1.FC3.13_2.rhfc3.at
xorg-x11-libs-6.8.2-1.FC3.13_2.rhfc3.at
xorg-x11-libs-6.8.2-1.FC3.13_2.rhfc3.at

[root at teevee2 ~]# ldconfig -p |grep Xext
        libXext.so.6 (libc6) => /usr/X11R6/lib/libXext.so.6
        libXext.so (libc6) => /usr/X11R6/lib/libXext.so


More information about the mythtv-users mailing list