SuSE 10.1 - XMLTV install problem
Although a tedious process, XMLTV installed and worked on SuSE 10.0. Compiling XMLTV requires kernel source and X devel packages which I did install. Installing the prerequisites for XMLTV on a new SuSE 10.1 system, I came across the following and am unsure how to proceed.
% cd /home/fragos/bin/xmltv/xmltv_prereq-7/00_Tk-804.027
% perl Makefile.PL PREFIX=/usr/local
% make test install
<snip>
LD_RUN_PATH="/usr/X11R6/lib" cc -shared -L/usr/local/lib64 Tk.o chnGlue.o encGlue.o evtGlue.o objGlue.o tixGlue.o tkGlue.o tkGlue_f.o tkWin32Dll.o -o blib/arch/auto/Tk/Tk.so pTk/libpTk.a \
-L/usr/X11R6/lib -lX11 -lm \
/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.so when searching for -lX11
/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.a when searching for -lX11
/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/Tk/Tk.so] Error 1
Geo:/home/fragos/bin/xmltv/xmltv_prereq-7/00_Tk-804.027 #
----------------------------------------------
I found the following on Geek Times which may relate. I don't however know how to implement this in my example. Where would the mentioned flag go? Is there a different answer?
<Geek Times said>
When building a program designed to run in the X Window System I encountered the following error message:
make[1]: Entering directory `/usr/src/redhat/SOURCES/aterm-0.3.6/src'
gcc -O -o aterm [numerous object files elided] -lX11
/usr/bin/ld: cannot find -lX11
I was sure that I'd installed the X development package, so that wasn't the problem. (If you haven't already installed it, you may want to read Finding an RPM on the distribution media.) Why then couldn't the development environment find libX11.so?
It turns out that the /usr/X11R6/lib directory isn't part of the default ld(1) search path, so I needed to have the flag "-L/usr/X11R6/lib" somewhere before "-lX11" in the offending command.
|