Bug 253242 - /usr/bin/ld: cannot find -lILUT
Summary: /usr/bin/ld: cannot find -lILUT
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: DevIL
Version: 6
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: Ian Chapman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-08-17 15:27 UTC by Carl-Johan Kjellander
Modified: 2007-11-30 22:12 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-08-17 18:08:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Carl-Johan Kjellander 2007-08-17 15:27:43 UTC
Description of problem:
Of course, the mid FC6 split of DevIL into DevIL-ILUT caused some
compilation problems for us and our build system.

But more importantly, the new DevIL-ILUT doesn't contain a
/usr/lib/libILUT.so as customary so ld barfs when you try
to link with -lILUT

# rpm -ql DevIL-ILUT
/usr/lib/libILUT.so.1
/usr/lib/libILUT.so.1.0.0

Version-Release number of selected component (if applicable):
DevIL-1.6.8-0.12.rc2.fc6
DevIL-ILUT-1.6.8-0.12.rc2.fc6

How reproducible:
100%

Steps to Reproduce:
cat > /tmp/foo.c <<EOF 
#include <stdio.h>
int main(){printf("bajs\n");return 0;}
EOF
gcc -O2 -o /tmp/foo /tmp/foo.c -lILUT
  
Actual results:
/usr/bin/ld: cannot find -lILUT
collect2: ld returned 1 exit status


Expected results:
Well. that won't really compile since it needs allegro, but anyway
it should be able to compile against libILUT.so

Additional info:
Probably someone just forgot to include the link in the new rpm.

Workaround for now:

cd /usr/lib
ln -s libILUT.so.1.0.0 libILUT.so
ldconfig

Comment 1 Ian Chapman 2007-08-17 18:08:41 UTC
(In reply to comment #0)

> But more importantly, the new DevIL-ILUT doesn't contain a
> /usr/lib/libILUT.so as customary so ld barfs when you try
> to link with -lILUT

The file you're looking for is in DevIL-ILUT-devel as it's customary to separate
the development files from the run-time files. I should probably have made the
changelog clearer in retrospect. 

yum -y -install DevIL-ILUT-devel

as root should solve your problem. Please feel free to re-open this bug if you
find otherwise. Thanks.

Comment 2 Ian Chapman 2007-08-17 18:10:13 UTC
Ooops typo, that should have been:

yum -y install DevIL-ILUT-devel


Note You need to log in before you can comment on or make changes to this bug.