Bug 222766

Summary: DevIL needs link with allegro
Product: [Fedora] Fedora Reporter: Juan Manuel Borges Caño <juanmabc3>
Component: DevILAssignee: Ian Chapman <packages>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium 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-01-17 19:35:42 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 Juan Manuel Borges Caño 2007-01-16 02:45:46 UTC
Description of problem:

the bug:
gcc  -g -O2   -o nehe-6 `sdl-config --libs` -lGL -lGLU  -lalleg_unsharable
image.o nehe.o nehe-6.o -lIL -lILUT
/usr/lib/liballeg.so.4.2: undefined reference to `_poly_zbuf_atex_mask_trans15'
...

anyway i don't use allegro, i only wan't to use DevIL, and the need to link with
a library that i don't use is not good for me. Maybe if DevIL uses pkg-config,
should resolve this bug?

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

How reproducible:
trying to program with DevIL, trying to link with DevIL

Steps to Reproduce:
1.
2.
3.
  
Actual results:
linkage failure

Expected results:
to work fine

Additional info: maybe the command from gcc is incomple, pkg-config would do it well

Comment 1 Ian Chapman 2007-01-17 14:52:41 UTC
DevIL is intentionally not linked with liballeg_unsharable because the resultant
library is not PIC compliant. This causes problems for SELinux. This means when
linking you'll need to add  `allegro-config --libs`  to the linking line, or
similar. If this is not appropriate for you, you'll have to explain in more
detail why.  



Comment 2 Juan Manuel Borges Caño 2007-01-17 19:18:43 UTC
No, that's all. Thank you.
Maybe DevIL should include a pkg-config file for this issues.

Comment 3 Ian Chapman 2007-01-17 19:35:42 UTC
Thanks for the suggestion, I'll consider using pkg-config but I'll need to look
in more detail before making a decision :). For the moment, I'll close this bug.
Thanks.