LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-03-2004, 08:17 PM   #1
doubleds
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Rep: Reputation: 0
Linking Problems


Hi,

I'm trying to build a program I downloaded and when I ran make on it, I got the following error:

/usr/bin/ld: cannot find -lXi

I checked around and it seemed I needed to install X Window developing packages, so I installed xorg-x11-devel (I'm using Fedora Core 2 at the moment), but now I get this output when I try to make the program:

/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXi.so when searching for -lXi
/usr/bin/ld: skipping incompatible /usr/X11R6/lib/libXi.a when searching for -lXi
/usr/bin/ld: cannot find -lXi

Does anyone know what's going on here? Why is it skipping those files, I thought they were the ones that -lXi refers to? Anyway, if anyone can offer any suggestions it'd be greatly appreciated.
 
Old 12-03-2004, 08:23 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
What program are you trying to install and what version of the devel packages did you install? Are they the correct version? Are they in your lib path?
 
Old 12-03-2004, 08:38 PM   #3
doubleds
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Original Poster
Rep: Reputation: 0
The program I'm trying to compile is little open-source game that a professor of mine is working on. I installed xorg-x11-devel-6.7.0-11 (and the rest of the xorg-x11 stuff of the same version). I don't know what version they are supposed to be, the only versions it specifies are for g++, make, SDL, and OpenGL. So that might be it, I guess.

The makefile has in it:
SHARED_LIBS0 := -L/usr/X11R6/lib ...
and the libXi.a and libX.so files are in there (which makes sense cause it finds them, I just don't know why it skips them). Should I try installing older versions of the xorg packages, do you think?
 
Old 12-03-2004, 10:02 PM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
is this suse ?
give us the ls -l readout on
/usr/X11R6/lib
seems like i remember someone saying something about missing X11 symlinks in suse
should look like
libXi.so -> libXi.so.6.0
libXi.so.6 -> libXi.so.6.0
libXi.so.6.0
 
Old 12-03-2004, 10:49 PM   #5
doubleds
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Nope not SuSe, I'm using Fedora Core 2. Here's the ls -l of /usr/X11R6/lib - lots of stuff:

-rw-r--r-- 1 root root 407072 Dec 2 13:21 libdps.a
lrwxrwxrwx 1 root root 13 Dec 3 14:29 libdps.so -> libdps.so.1.0
lrwxrwxrwx 1 root root 13 Dec 3 14:28 libdps.so.1 -> libdps.so.1.0
-rwxr-xr-x 1 root root 278104 Dec 2 13:22 libdps.so.1.0
-rw-r--r-- 1 root root 31682 Dec 2 13:21 libdpstk.a
lrwxrwxrwx 1 root root 15 Dec 3 14:29 libdpstk.so -> libdpstk.so.1.0
lrwxrwxrwx 1 root root 15 Dec 3 14:28 libdpstk.so.1 -> libdpstk.so.1.0
-rwxr-xr-x 1 root root 27612 Dec 2 13:22 libdpstk.so.1.0
-rw-r--r-- 1 root root 13614 Dec 2 13:21 libfntstubs.a
-rw-r--r-- 1 root root 24268 Dec 2 13:21 libfontenc.a
lrwxrwxrwx 1 root root 17 Dec 3 14:29 libfontenc.so -> libfontenc.so.1.0
lrwxrwxrwx 1 root root 17 Dec 3 14:28 libfontenc.so.1 -> libfontenc.so.1.0
-rwxr-xr-x 1 root root 22080 Dec 2 13:22 libfontenc.so.1.0
-rw-r--r-- 1 root root 67982 Dec 2 13:21 libFS.a
lrwxrwxrwx 1 root root 12 Dec 3 14:28 libFS.so.6 -> libFS.so.6.0
-rwxr-xr-x 1 root root 43368 Dec 2 13:22 libFS.so.6.0
-rw-r--r-- 1 root root 675916 Dec 2 13:21 libGL.a
lrwxrwxrwx 1 root root 12 Dec 3 14:29 libGL.so -> libGL.so.1.2
lrwxrwxrwx 1 root root 12 Nov 21 22:49 libGL.so.1 -> libGL.so.1.2
-rwxr-xr-x 1 root root 495456 Nov 16 13:44 libGL.so.1.2
-rw-r--r-- 1 root root 664612 Dec 2 13:21 libGLU.a
lrwxrwxrwx 1 root root 13 Dec 3 14:29 libGLU.so -> libGLU.so.1.3
lrwxrwxrwx 1 root root 13 Nov 21 22:49 libGLU.so.1 -> libGLU.so.1.3
-rwxr-xr-x 1 root root 495704 Nov 16 13:44 libGLU.so.1.3
-rw-r--r-- 1 root root 28174 Dec 2 13:21 libGLw.a
lrwxrwxrwx 1 root root 13 Dec 3 14:28 libGLw.so.1 -> libGLw.so.1.0
-rwxr-xr-x 1 root root 22328 Dec 2 13:22 libGLw.so.1.0
-rw-r--r-- 1 root root 68070 Dec 2 13:21 libI810XvMC.a
lrwxrwxrwx 1 root root 18 Dec 3 14:29 libI810XvMC.so -> libI810XvMC.so.1.0
lrwxrwxrwx 1 root root 18 Dec 3 14:28 libI810XvMC.so.1 -> libI810XvMC.so.1.0
-rwxr-xr-x 1 root root 63360 Dec 2 13:22 libI810XvMC.so.1.0
-rw-r--r-- 1 root root 114122 Dec 2 13:21 libICE.a
lrwxrwxrwx 1 root root 13 Dec 3 14:29 libICE.so -> libICE.so.6.3
lrwxrwxrwx 1 root root 13 Dec 3 14:28 libICE.so.6 -> libICE.so.6.3
-rwxr-xr-x 1 root root 84704 Dec 2 13:22 libICE.so.6.3
-rw-r--r-- 1 root root 9056 Dec 2 13:21 liboldX.a
-rw-r--r-- 1 root root 1649406 Dec 2 13:21 libOSMesa.a
lrwxrwxrwx 1 root root 16 Dec 3 14:29 libOSMesa.so -> libOSMesa.so.4.0
lrwxrwxrwx 1 root root 16 Dec 3 14:28 libOSMesa.so.4 -> libOSMesa.so.4.0
-rwxr-xr-x 1 root root 1374496 Dec 2 13:22 libOSMesa.so.4.0
-rw-r--r-- 1 root root 18828 Dec 2 13:21 libpsres.a
lrwxrwxrwx 1 root root 15 Dec 3 14:29 libpsres.so -> libpsres.so.1.0
lrwxrwxrwx 1 root root 15 Dec 3 14:28 libpsres.so.1 -> libpsres.so.1.0
-rwxr-xr-x 1 root root 19368 Dec 2 13:22 libpsres.so.1.0
-rw-r--r-- 1 root root 37536 Dec 2 13:21 libSM.a
lrwxrwxrwx 1 root root 12 Dec 3 14:29 libSM.so -> libSM.so.6.0
lrwxrwxrwx 1 root root 12 Dec 3 14:28 libSM.so.6 -> libSM.so.6.0
-rwxr-xr-x 1 root root 31360 Dec 2 13:22 libSM.so.6.0
-rw-r--r-- 1 root root 1412244 Dec 2 13:21 libX11.a
lrwxrwxrwx 1 root root 13 Dec 3 14:29 libX11.so -> libX11.so.6.2
lrwxrwxrwx 1 root root 13 Dec 3 14:28 libX11.so.6 -> libX11.so.6.2
-rwxr-xr-x 1 root root 817176 Dec 2 13:22 libX11.so.6.2
-rw-r--r-- 1 root root 14080 Dec 2 13:21 libXau.a
-rw-r--r-- 1 root root 482342 Dec 2 13:21 libXaw.a
lrwxrwxrwx 1 root root 13 Dec 3 14:29 libXaw.so -> libXaw.so.7.0
lrwxrwxrwx 1 root root 13 Dec 3 14:28 libXaw.so.6 -> libXaw.so.6.1
-rwxr-xr-x 1 root root 256672 Dec 2 13:22 libXaw.so.6.1
lrwxrwxrwx 1 root root 13 Dec 3 14:28 libXaw.so.7 -> libXaw.so.7.0
-rwxr-xr-x 1 root root 366272 Dec 2 13:22 libXaw.so.7.0
-rw-r--r-- 1 root root 36594 Dec 2 13:21 libXcursor.a
lrwxrwxrwx 1 root root 19 Dec 3 14:29 libXcursor.so -> libXcursor.so.1.0.2
lrwxrwxrwx 1 root root 19 Dec 3 14:28 libXcursor.so.1 -> libXcursor.so.1.0.2
-rwxr-xr-x 1 root root 32692 Dec 2 13:22 libXcursor.so.1.0.2
-rw-r--r-- 1 root root 36870 Dec 2 13:21 libXdmcp.a
-rw-r--r-- 1 root root 73676 Dec 2 13:21 libXext.a
lrwxrwxrwx 1 root root 14 Dec 3 14:29 libXext.so -> libXext.so.6.4
lrwxrwxrwx 1 root root 14 Dec 3 14:28 libXext.so.6 -> libXext.so.6.4
-rwxr-xr-x 1 root root 52640 Dec 2 13:22 libXext.so.6.4
-rw-r--r-- 1 root root 134290 Dec 2 13:21 libxf86config.a
-rw-r--r-- 1 root root 605236 Dec 2 13:21 libXfont.a
-rw-r--r-- 1 root root 3466 Dec 2 13:21 libXfontcache.a
lrwxrwxrwx 1 root root 20 Dec 3 14:29 libXfontcache.so -> libXfontcache.so.1.2
lrwxrwxrwx 1 root root 20 Dec 3 14:28 libXfontcache.so.1 -> libXfontcache.so.1.2
-rwxr-xr-x 1 root root 5004 Dec 2 13:22 libXfontcache.so.1.2
lrwxrwxrwx 1 root root 15 Dec 3 14:29 libXfont.so -> libXfont.so.1.5
lrwxrwxrwx 1 root root 15 Dec 3 14:28 libXfont.so.1 -> libXfont.so.1.5
-rwxr-xr-x 1 root root 441816 Dec 2 13:22 libXfont.so.1.5
-rw-r--r-- 1 root root 86446 Dec 2 13:21 libXft.a
lrwxrwxrwx 1 root root 15 Dec 3 14:29 libXft.so -> libXft.so.2.1.2
lrwxrwxrwx 1 root root 13 Dec 3 14:28 libXft.so.1 -> libXft.so.1.1
-rwxr-xr-x 1 root root 51636 Dec 2 13:22 libXft.so.1.1
lrwxrwxrwx 1 root root 15 Dec 3 14:28 libXft.so.2 -> libXft.so.2.1.2
-rwxr-xr-x 1 root root 72048 Dec 2 13:22 libXft.so.2.1.2
-rw-r--r-- 1 root root 60876 Dec 2 13:21 libXi.a
-rw-r--r-- 1 root root 4722 Dec 2 13:21 libXinerama.a
lrwxrwxrwx 1 root root 18 Dec 3 14:29 libXinerama.so -> libXinerama.so.1.0
lrwxrwxrwx 1 root root 18 Dec 3 14:28 libXinerama.so.1 -> libXinerama.so.1.0
-rwxr-xr-x 1 root root 6540 Dec 2 13:22 libXinerama.so.1.0
lrwxrwxrwx 1 root root 12 Dec 3 14:29 libXi.so -> libXi.so.6.0
lrwxrwxrwx 1 root root 12 Dec 3 14:28 libXi.so.6 -> libXi.so.6.0
-rwxr-xr-x 1 root root 27392 Dec 2 13:22 libXi.so.6.0
-rw-r--r-- 1 root root 163504 Dec 2 13:21 libxkbfile.a
lrwxrwxrwx 1 root root 17 Dec 3 14:29 libxkbfile.so -> libxkbfile.so.1.0
lrwxrwxrwx 1 root root 17 Dec 3 14:28 libxkbfile.so.1 -> libxkbfile.so.1.0
-rwxr-xr-x 1 root root 134656 Dec 2 13:22 libxkbfile.so.1.0
-rw-r--r-- 1 root root 8796 Dec 2 13:21 libxkbui.a
lrwxrwxrwx 1 root root 15 Dec 3 14:29 libxkbui.so -> libxkbui.so.1.0
lrwxrwxrwx 1 root root 15 Dec 3 14:28 libxkbui.so.1 -> libxkbui.so.1.0
-rwxr-xr-x 1 root root 10504 Dec 2 13:22 libxkbui.so.1.0
-rw-r--r-- 1 root root 131470 Dec 2 13:21 libXmu.a
lrwxrwxrwx 1 root root 13 Dec 3 14:29 libXmu.so -> libXmu.so.6.2
lrwxrwxrwx 1 root root 13 Dec 3 14:28 libXmu.so.6 -> libXmu.so.6.2
-rwxr-xr-x 1 root root 85752 Dec 2 13:22 libXmu.so.6.2
-rw-r--r-- 1 root root 11968 Dec 2 13:21 libXmuu.a
lrwxrwxrwx 1 root root 14 Dec 3 14:29 libXmuu.so -> libXmuu.so.1.0
lrwxrwxrwx 1 root root 14 Dec 3 14:28 libXmuu.so.1 -> libXmuu.so.1.0
-rwxr-xr-x 1 root root 10392 Dec 2 13:22 libXmuu.so.1.0
-rw-r--r-- 1 root root 39516 Dec 2 13:21 libXp.a
-rw-r--r-- 1 root root 86144 Dec 2 13:21 libXpm.a
lrwxrwxrwx 1 root root 14 Dec 3 14:29 libXpm.so -> libXpm.so.4.11
lrwxrwxrwx 1 root root 14 Dec 3 14:28 libXpm.so.4 -> libXpm.so.4.11
-rwxr-xr-x 1 root root 58400 Dec 2 13:22 libXpm.so.4.11
lrwxrwxrwx 1 root root 12 Dec 3 14:29 libXp.so -> libXp.so.6.2
lrwxrwxrwx 1 root root 12 Dec 3 14:28 libXp.so.6 -> libXp.so.6.2
-rwxr-xr-x 1 root root 26772 Dec 2 13:22 libXp.so.6.2
-rw-r--r-- 1 root root 7846 Dec 2 13:21 libXrandr.a
lrwxrwxrwx 1 root root 16 Dec 3 14:29 libXrandr.so -> libXrandr.so.2.0
lrwxrwxrwx 1 root root 16 Dec 3 14:28 libXrandr.so.2 -> libXrandr.so.2.0
-rwxr-xr-x 1 root root 9692 Dec 2 13:22 libXrandr.so.2.0
-rw-r--r-- 1 root root 36656 Dec 2 13:21 libXrender.a
lrwxrwxrwx 1 root root 19 Dec 3 14:29 libXrender.so -> libXrender.so.1.2.2
lrwxrwxrwx 1 root root 19 Dec 3 14:28 libXrender.so.1 -> libXrender.so.1.2.2
-rwxr-xr-x 1 root root 27924 Dec 2 13:22 libXrender.so.1.2.2
-rw-r--r-- 1 root root 3818 Dec 2 13:21 libXRes.a
lrwxrwxrwx 1 root root 14 Dec 3 14:29 libXRes.so -> libXRes.so.1.0
lrwxrwxrwx 1 root root 14 Dec 3 14:28 libXRes.so.1 -> libXRes.so.1.0
-rwxr-xr-x 1 root root 5612 Dec 2 13:22 libXRes.so.1.0
-rw-r--r-- 1 root root 5852 Dec 2 13:21 libXss.a
lrwxrwxrwx 1 root root 13 Dec 3 14:29 libXss.so -> libXss.so.1.0
lrwxrwxrwx 1 root root 13 Dec 3 14:28 libXss.so.1 -> libXss.so.1.0
-rwxr-xr-x 1 root root 7468 Dec 2 13:22 libXss.so.1.0
-rw-r--r-- 1 root root 430742 Dec 2 13:21 libXt.a
-rw-r--r-- 1 root root 34550 Dec 2 13:21 libXTrap.a
lrwxrwxrwx 1 root root 15 Dec 3 14:29 libXTrap.so -> libXTrap.so.6.4
lrwxrwxrwx 1 root root 15 Dec 3 14:28 libXTrap.so.6 -> libXTrap.so.6.4
-rwxr-xr-x 1 root root 31392 Dec 2 13:22 libXTrap.so.6.4
lrwxrwxrwx 1 root root 12 Dec 3 14:29 libXt.so -> libXt.so.6.0
lrwxrwxrwx 1 root root 12 Dec 3 14:28 libXt.so.6 -> libXt.so.6.0
-rwxr-xr-x 1 root root 325240 Dec 2 13:22 libXt.so.6.0
-rw-r--r-- 1 root root 17714 Dec 2 13:21 libXtst.a
lrwxrwxrwx 1 root root 14 Dec 3 14:29 libXtst.so -> libXtst.so.6.1
lrwxrwxrwx 1 root root 14 Dec 3 14:28 libXtst.so.6 -> libXtst.so.6.1
-rwxr-xr-x 1 root root 18060 Dec 2 13:22 libXtst.so.6.1
-rw-r--r-- 1 root root 12666 Dec 2 13:21 libXv.a
-rw-r--r-- 1 root root 6736 Dec 2 13:21 libXvMC.a
lrwxrwxrwx 1 root root 14 Dec 3 14:29 libXvMC.so -> libXvMC.so.1.0
lrwxrwxrwx 1 root root 14 Dec 3 14:28 libXvMC.so.1 -> libXvMC.so.1.0
-rwxr-xr-x 1 root root 8396 Dec 2 13:22 libXvMC.so.1.0
lrwxrwxrwx 1 root root 12 Dec 3 14:29 libXv.so -> libXv.so.1.0
lrwxrwxrwx 1 root root 12 Dec 3 14:28 libXv.so.1 -> libXv.so.1.0
-rwxr-xr-x 1 root root 14264 Dec 2 13:22 libXv.so.1.0
-rw-r--r-- 1 root root 18304 Dec 2 13:21 libXxf86dga.a
lrwxrwxrwx 1 root root 18 Dec 3 14:29 libXxf86dga.so -> libXxf86dga.so.1.0
lrwxrwxrwx 1 root root 18 Dec 3 14:28 libXxf86dga.so.1 -> libXxf86dga.so.1.0
-rwxr-xr-x 1 root root 18060 Dec 2 13:22 libXxf86dga.so.1.0
-rw-r--r-- 1 root root 7352 Dec 2 13:21 libXxf86misc.a
lrwxrwxrwx 1 root root 19 Dec 3 14:29 libXxf86misc.so -> libXxf86misc.so.1.1
lrwxrwxrwx 1 root root 19 Dec 3 14:28 libXxf86misc.so.1 -> libXxf86misc.so.1.1
-rwxr-xr-x 1 root root 9068 Dec 2 13:22 libXxf86misc.so.1.1
-rw-r--r-- 1 root root 5242 Dec 2 13:21 libXxf86rush.a
lrwxrwxrwx 1 root root 19 Dec 3 14:29 libXxf86rush.so -> libXxf86rush.so.1.0
lrwxrwxrwx 1 root root 19 Dec 3 14:28 libXxf86rush.so.1 -> libXxf86rush.so.1.0
-rwxr-xr-x 1 root root 6796 Dec 2 13:22 libXxf86rush.so.1.0
-rw-r--r-- 1 root root 14834 Dec 2 13:21 libXxf86vm.a
lrwxrwxrwx 1 root root 17 Dec 3 14:29 libXxf86vm.so -> libXxf86vm.so.1.0
lrwxrwxrwx 1 root root 17 Dec 3 14:28 libXxf86vm.so.1 -> libXxf86vm.so.1.0
-rwxr-xr-x 1 root root 15660 Dec 2 13:22 libXxf86vm.so.1.0
drwxr-xr-x 12 root root 4096 Dec 3 14:29 X11
drwxr-xr-x 2 root root 4096 Nov 22 00:08 xscreensaver

Thanks for taking the time to check this out, by the way.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linking problems wmoti Programming 11 09-25-2005 12:30 AM
Problems linking linux and Win 2K Scroto Linux - Networking 5 02-24-2005 10:23 AM
Linking problems Avatar33 Programming 1 10-05-2004 07:21 PM
Problems statically linking with libsdl jakobf Programming 3 08-27-2004 01:20 AM
math.h linking problems spuzzzzzzz Programming 3 02-21-2004 06:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration