Red Hat Bugzilla – Bug 222766
DevIL needs link with allegro
Last modified: 2007-11-30 17:11:53 EST
Description of problem:
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):
trying to program with DevIL, trying to link with DevIL
Steps to Reproduce:
to work fine
Additional info: maybe the command from gcc is incomple, pkg-config would do it well
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
No, that's all. Thank you.
Maybe DevIL should include a pkg-config file for this issues.
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.