Bug 253242 - /usr/bin/ld: cannot find -lILUT
/usr/bin/ld: cannot find -lILUT
Product: Fedora
Classification: Fedora
Component: DevIL (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: Ian Chapman
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-08-17 11:27 EDT by Carl-Johan Kjellander
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-08-17 14:08:41 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Carl-Johan Kjellander 2007-08-17 11:27:43 EDT
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

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
cat > /tmp/foo.c <<EOF 
#include <stdio.h>
int main(){printf("bajs\n");return 0;}
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
Comment 1 Ian Chapman 2007-08-17 14:08:41 EDT
(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 14:10:13 EDT
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.