ntop really isn't version sensitive.  It's the libpng internals that are
incompatible.    ntop works fine with both versions 2 and 3 of the libpng
interface (and thus with both the 1.0.x and 1.2.x versions of libpng).
While it seems - based on the ntop experience - that there could have been
(and normally would be) a conversion layer, the libpng developers didn't
implement it, instead they issue the message you've seen.

It's that linking you did, which really is a bad idea.  It doesn't seem to
be an issue for the 2 or 3 calls ntop uses, but anybody using the calls that
HAVE changed... With that link, anybody sending v3 interface calls instead
invokes v2, which can lead to segmentation faults, etc.

-----Burton

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of jac
engel
Sent: Sunday, July 06, 2003 3:38 AM
To: [EMAIL PROTECTED]
Subject: RE: [Ntop] Tip for Ntop on LINDOWS 4.0


Burton,
Thanks , I already informed the lindows team.

libpng.so.2 was linked to version 1.0.12
libpng.so.3 is linked to version 1.2.5
now libpng.so.2 is also linked to version 1.2.5
( Ntop uses libpng.so.2  ?)

cheers
Jac

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
Burton M. Strauss III
Sent: Saturday, July 05, 2003 14:14
To: [EMAIL PROTECTED]
Subject: RE: [Ntop] Tip for Ntop on LINDOWS 4.0


Be aware that lying about the libpng version via

ln -s libpng.so.3 libpng.so.2

could potentially cause loads of other problems.  As we've discussed
previously, not only is .3 a different interface from .2 (which is how it's
supposed to work), but the program is not upwards compatible - hence the
error message.  What you're doing is claiming to implement the .3 interface
but in reality implementing .2 -- this works for anything that expects .2,
but anything expecting .3 will now fail horribly...

The RIGHT answer is to:

1. Compile ntop from source, so that the expected run environment matches
the real one

and/or

2. Contact the Lindows distributor and get them to fix their errors (1. out
of date software and 2. libpng library version mismatch).

There's a lot of history in the list on this specific problem.


-----Burton



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of jac
engel
Sent: Friday, July 04, 2003 4:51 PM
To: [EMAIL PROTECTED]
Subject: [Ntop] Tip for Ntop on LINDOWS 4.0


Using Lindows version 4.0.302-Final.
When you installed the network monitor NTOP version 2.1
from CNR, do the following first:

start ntop first to enter the admin password with command:

/usr/sbin/ntop -A

and enter the password.

Start ntop now with command :
/etc/init.d/ntop start

When you start the browser with http://localhost:3000
you will get console errors when accessing charts and the
charts are not displayed.
The error is:
libpng warning:Application was compiled with png.h from libpng-1.2.5
libpng warning:Application is running with png.c from libpng-1.0.12
gd-png: fatal libpng error:Incompatible libpng version in application and
library

To get rid of the errors do the following:
cd /usr/lib
rm libpng.so.2
ln -s libpng.so.3 libpng.so.2

Now NTOP is working fine, to start ntop at startup
make links to /etc/init.d/ntop in /etc/rc5.d
e.g :
cd /etc/rc5.d
ln -s ../init.d/ntop S99ntop


Goodluck with this nice networkmonitor program
Jac


_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to