Ooooh... a chain saw approach ... I love it... Seriously, that's certainly ONE way to do it and will work if the box is used only for ntop. If there are other packages which depend upon libpng, then you would have had to fix it the way I suggested.
The core of the problem is - as I've posted before - that the loader (ld) prefers a dynamic (.so) library over a static (.a). So even if you build the libpng in the ntop source tree, it's ignored if there's one found in any of the places that ld looks (usually /usr/lib and maybe /usr/local/lib, plus whatever is pointed to by ld.so.conf, plus some places that are OS specific). That's why buildall.sh deletes the libpng subdirectory if it finds it. The problem is that it's not smart enough to find all the places libpng might be tucked away - and it differs from OS to OS. The BEST solution would be to manually delete the libpng in the ntop source tree and use the libpng.so that's somewhere out on the system. This isn't a problem post 2.2c as we require you to have libpng installed and don't have a copy in ntop's source tree. -----Burton -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Helmut Schneider Sent: Friday, October 24, 2003 5:03 AM To: [EMAIL PROTECTED] Subject: Re: [Ntop] libpng warning: Application was compiled with png.h from libpng-1.0.12 Burton M. Strauss III wrote: > 1. Check into whether Debian is being 'clever' and installing both > the 1.0.x and 1.2.x versions of libpng. > > If you're getting the conflict, then you have to be seeing BOTH > versions. > > They're simply incompatible and having BOTH is what leads to the > error, per the discussion in docs/FAQ. I tell you what, I removed *any* libpng* I found on my system and then ./configure of ntop is successfull! If any libpng file is found it does not complete. Helmut _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop
