Bug 253242

Summary: /usr/bin/ld: cannot find -lILUT
Product: [Fedora] Fedora Reporter: Carl-Johan Kjellander <carljohan>
Component: DevILAssignee: Ian Chapman <packages>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: medium    
Version: 6   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-08-17 18:08:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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