From owner-freebsd-net@FreeBSD.ORG Wed Mar 2 17:27:42 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0276416A4CE; Wed, 2 Mar 2005 17:27:42 +0000 (GMT) Received: from voodoo.oberon.net (voodoo.oberon.net [212.118.165.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 143AA43D31; Wed, 2 Mar 2005 17:27:41 +0000 (GMT) (envelope-from igor@doom.homeunix.org) Received: from dialup84109-13.ip.peterstar.net ([84.204.109.13] helo=doom.homeunix.org) by voodoo.oberon.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.50 (FreeBSD)) id 1D6XdF-000DyM-7n; Wed, 02 Mar 2005 18:27:35 +0100 Received: from doom.homeunix.org (localhost [127.0.0.1]) by doom.homeunix.org (8.13.3/8.13.3) with ESMTP id j22HPPUx000671; Wed, 2 Mar 2005 20:25:25 +0300 (MSK) (envelope-from igor@doom.homeunix.org) Received: (from igor@localhost) by doom.homeunix.org (8.13.3/8.13.3/Submit) id j21JkUcj000988; Tue, 1 Mar 2005 22:46:30 +0300 (MSK) (envelope-from igor) Date: Tue, 1 Mar 2005 22:46:29 +0300 From: Igor Pokrovsky To: Cole Message-ID: <20050301194629.GA948@doom.homeunix.org> Mail-Followup-To: Cole , freebsd-hackers@freebsd.org, freebsd-net@freebsd.org References: <003101c51ddf$347fa420$4206000a@deadmind> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003101c51ddf$347fa420$4206000a@deadmind> User-Agent: Mutt/1.4.2.1i cc: freebsd-hackers@freebsd.org cc: freebsd-net@freebsd.org Subject: Re: Dynamically Linked Library Problem (maybe) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2005 17:27:42 -0000 On Mon, Feb 28, 2005 at 11:48:14PM +0200, Cole wrote: > Hey. > > I have a Freebsd server running freebsd-4.9-stable. > I cvsupped the ntop src last week for 3.1.1. > > I then had no problems what so ever building ntop, except for the xml plugin saying it was not built, cause it cannot find > xmlversion.h, even though I have libxml installed, and specified the right paths to the .h. But that is not the problem. > Ntop runs and works fine on this box, not a single problem that I can see. > > The problem is that, I have a few other servers, that I want to copy ntop too, but dont want to build it on all those boxes. I > created a tar with all the ntop binaries, as well as all the libraries that its linked too, as well as all the plugins that ntop > uses from both the /usr/local/lib directory as well as the plugins from the /usr/local/lib/ntop/plugins directory. I rebuilt all the > symbolic links for all the libraries and plugins and all the files that ntop was linked too. I have also checked all the permissions > on all the files and they are all the same. > > One other thing, the boxes that I am copying ntop to, are almost exact duplicates of the first box that I built ntop on, and where > it works fine. > > The problem is, when running ntop on the boxes that I copied it to, after checking all the permissions and links and everything, I > get these errors with regards to the plugins. > > Tue Mar 1 05:37:16 2005 **WARNING** Unable to locate plugin '/usr/local/lib/ntop/plugins/icmpPlugin.so' entry function [Invalid > shared object handle 0x29a14000] > Tue Mar 1 05:37:16 2005 **WARNING** Unable to locate plugin '/usr/local/lib/ntop/plugins/snmpPlugin.so' entry function [Invalid > shared object handle 0x29a16400] > Tue Mar 1 05:37:16 2005 **WARNING** Unable to locate plugin '/usr/local/lib/ntop/plugins/sflowPlugin.so' entry function [Invalid > shared object handle 0x29a19800] > Tue Mar 1 05:37:16 2005 **WARNING** Unable to locate plugin '/usr/local/lib/ntop/plugins/rrdPlugin.so' entry function [Invalid > shared object handle 0x29a1bc00] > Tue Mar 1 05:37:16 2005 **WARNING** Unable to locate plugin '/usr/local/lib/ntop/plugins/pdaPlugin.so' entry function [Invalid > shared object handle 0x2bcae400] > Tue Mar 1 05:37:16 2005 **WARNING** Unable to locate plugin '/usr/local/lib/ntop/plugins/netflowPlugin.so' entry function [Invalid > shared object handle 0x2d862800] > Tue Mar 1 05:37:16 2005 **WARNING** Unable to locate plugin '/usr/local/lib/ntop/plugins/lastSeenPlugin.so' entry function > [Invalid shared object handle 0x2d866c00] > Tue Mar 1 05:37:16 2005 **WARNING** Unable to locate plugin '/usr/local/lib/ntop/plugins/xmldumpPlugin.so' entry function [Invalid > shared object handle 0x2f697000] > > I have absolutely no idea how this has happened, and I have had this problem before, and not a single other person was able to help > me in any regards what so ever. I was hoping maybe someone would at least know what this error even means, so that I have some idea > of what I am meant to be doing to fix this. > > If anyone has any idea, I would gladly apprecaite any suggestions. It seems to me error messages mean one thing - those plugins were corrupted in some way. It is also not clear from your message - are you using net/ntop from ports tree or you are building it from sources manually? In case of problems when building from a port you'd better ping port maintainer. -ip -- You are never given enough time or money.