Hi guys,

I dunno about rpms, but those who compile their own probably know that 
there are some problems when linking with imlib, at least with 1.3 (I
don't remember about older versions)... the problem being that if you
link with imlib, you have to 'manually' add -ltiff -lgif etc. to the
command that links the final executable... because the shared imlib
library itself is linked *without* those other libraries that it
actually needs. That is, the command that creates the imlib so file
looks like this:

gcc -shared -Wl,-soname -Wl,libImlib.so.1 -o .libs/libImlib.so.1.3.0
                cache.lo colors.lo load.lo misc.lo rend.lo utils.lo save.lo

whereas it should really look like:

gcc -shared -Wl,-soname -Wl,libImlib.so.1 -o .libs/libImlib.so.1.3.0
                cache.lo colors.lo load.lo misc.lo rend.lo utils.lo save.lo -lpng
                -ljpeg -lgif -ltiff -lz -lm

After wasting about 4 hours trying to figure out why the libs imlib
needs are not specified when it is linked I found out that the libtool
thing that is used to link imlib is broken when it comes to
inter-library dependencies. (Or at least I think that that's the
problem.) Here's a quote from libtool's own web page:

'Many people have been sending bug reports to me because libtool
doesn't do inter-library dependencies'

Oops... so what I'm trying to say... it is all well and nice to
acknowledge the fact (that it is broken), but it still *is* broken. I
mean, the net result is that imlib is linked wrongly, and other things
break as a result. E.g. eplus's config also does not work - it fails
when it tries to test for imlib. Eterm does not break because it
specifies all those other libraries explicitly, but should it?
Etc... Is it such a good idea then to use libtool in a situation where
it does not really work?  Could possibly something else be used
instead? Does anybody know a solution to the problem? Or am I crazy
(see subj :) and just missing something that is obvious to everybody
else?

BTW, if you do link imlib with a command like the one quoted above, e
links 'out of the box' - no need to mess around with Makefile.

-- 
Cheers,
 -Dima.

Maternity pay?  Now every Tom, Dick and Harry will get pregnant.
                -- Malcolm Smith
-
To unsubscribe from this list send mail to: [EMAIL PROTECTED]
with the message contents: unsubscribe e-develop

Reply via email to