You are right, you're rambling <grin />...  read on...

On my Linux box, libpng.so.3 is a link to the real library:

[bstrauss@tigger ntop-current]$ ls -l /usr/lib/libpng.so.3
lrwxrwxrwx    1 root     root           19 Apr 18 10:19
/usr/lib/libpng.so.3 -> libpng12.so.0.1.2.2

Doing a cp will create a copy, not another link.  If you then update libpng,
you have a version mismatch...

The message - as described in the FAQ entry - occurs because RedHat (and
probably other distros although I decline to claim knowledge about them)
have already installed shared versions (.so) of the libpng libraries of
particular (peculiar) versions.

That's why the standard ntop instructions tell you to build a STATIC version
(.a) of the libraries and links against that.  You build STATIC against a
version, you run STATIC against the same version ... no mismatch errors.

Somehow you didn't do that - get it all static - or the .so wouldn't have
mattered.

Now I did notice that the file in the cvs still has the old version numbers
for zlib and libpng, so I'll update that.  But the right versions were the
only ones present in the .tgz. (I just checked).

Perhaps you commingled two downloads (one with the old versions) and then
did build 1.0.8 and 1.2.1?  The Makefile does use 1.2.1 for the .h files...
that might cause the problem, but I'm still clueless about the .so issue, it
shouldn't have happened.

Sorry, but in the absence of more info, if I haven't guessed correctly
above, I'm going to tag this as user error, given that 10s or 100s of people
have followed those instructions on a huge variety of distros w/o problem...

-----Burton


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of John
Martin
Sent: Friday, June 14, 2002 4:24 AM
To: [EMAIL PROTECTED]
Subject: [Ntop] libpng


Hi guys,
Downloaded ntop-2.0.99-rc2.tgz and followed the instructions in
BUILD-NTOP.txt and the compile went fine.
The first problem was a file not found: libpng.so.3 - I cheated here and
located the file in the 'ntop' distribution and copied it to /usr/local/lib.
That's probably the wrong thing to do but it allowed ntop to run for a
while.
After ten minutes or so it hung ( presumably when I tried to access a page
requiring 'libpng' ), syslog said 'compiled with libpng1.2.1 needs
libpng1.0.8' or something similar.

There is a reference on the website in the FAQ to libpng and I tried to
follow the instructions without success.

I realise this is a bit rambling, I'll supply more specific info if needed.
My distro is SuSE7.2.

--
John Martin
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop

Reply via email to