Hi!
This one is not about troubles but about success. I hope you apologize...

I was about to post this mail to the list:

[quote]

Don't you just love it: thinking you have fixed a problem after a long
fight and next time, you get the same problem all over again...?
I am trying to compile kexplorer 0.2 and again the configure script won't
recognize that I've libpng installed and 'make' fails ('undefined
reference blah'). That's just the same game as it was with kexpress. But I
fixed that, damnit! I compiled kexpress 0.17 and 0.2 without any problems
(the app wasn't worth it, but that's another story).
Here are some details:

from configure:
 
checking for main in -ljpeg... yes 
checking for main in -ltiff... yes 
checking for main in -lpng... no 

from config.log:

configure:4413: checking for main in -lpng
configure:4428: g++ -o conftest -O2 -Wall  -s conftest.C -lpng '-lz'  1>&5
g++: '-lz': No such file or directory

from /usr/lib:

[jpeg]
lrwxrwxrwx    1 root        root                    25 Apr  3 16:30 libjpeg.so 
->libjpeg.so.6.0.1*  
lrwxrwxrwx    1 root        root                    16 Mär 29 20:11 libjpeg.so.6
->libjpeg.so.6.0.1* 
-rwxr-xr-x    1 root        root            134632 Jun 10  1998 libjpeg.so.6.0.1*  
lrwxrwxrwx    1 root      root          17 Mär 29 20:11 libjpeg.so.62-> 
libjpeg.so.62.0.0*      
-rwxr-xr-x    1 root        root    136927 Okt 13  1998  libjpeg.so.62.0.0

[png]
-rw-r--r--    1 root        root            122694 Sep 24  1998 libpng.a
lrwxrwxrwx    1 root        root                    24 Apr 24 22:44 libpng.so -> 
libpng.so.2.1.0*
lrwxrwxrwx    1 root        root                    15 Mär 29 20:11 libpng.so.2 -> 
libpng.so.2.1.0*
-rwxr-xr-x    1 root        root            114848 Sep 24  1998 libpng.so.2.1.0*       
 

[z]
-rw-r--r--   1 root     root        67544 Sep 10  1998 /usr/lib/libz.a
lrwxrwxrwx   1 root     root           13 Mär 29 20:13 /usr/lib/libz.so -> 
libz.so.1.1.3*
lrwxrwxrwx   1 root     root           13 Mär 29 20:09 /usr/lib/libz.so.1 -> 
libz.so.1.1.3*
-rwxr-xr-x   1 root     root        58435 Sep 10  1998 /usr/lib/libz.so.1.1.3*  

The png-devel-package is installed, of course. What the hell....?


Slightly irritated

tom

[end of quote]

Summing up all the gory details I encountered suddenly a 'magic moment'.
"Hey, wait...". And indeed: the configure script reads:

LIBS="-lpng '-lz' $LIBS"

I changed that line to

LIBS="-lpng -lz $LIBS"

and everything went well...

tom

 --
"Anybody complaining about a copyright license is a whiner." 
(Linus Torvalds)
 Thomas 'Tom' Berger, [EMAIL PROTECTED] No UCE. No spam. 'nuff said.
Questions? Answers! The a.o.l.m.-FAQ at http://aolmfaq.tsx.org

Reply via email to