From owner-freebsd-questions@FreeBSD.ORG Thu Dec 8 19:57:38 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F6C216A41F for ; Thu, 8 Dec 2005 19:57:38 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 938B643D75 for ; Thu, 8 Dec 2005 19:57:26 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id jB8JvCOc074467; Thu, 8 Dec 2005 13:57:12 -0600 (CST) (envelope-from dan) Date: Thu, 8 Dec 2005 13:57:12 -0600 From: Dan Nelson To: "Michael C. Shultz" Message-ID: <20051208195712.GA95420@dan.emsphone.com> References: <43988BB5.6020606@enc.edu> <200512081149.45622.ringworm01@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200512081149.45622.ringworm01@gmail.com> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 Cc: Jay Desjardins , freebsd-questions@freebsd.org Subject: Re: smartfilter, linux and you X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 19:57:38 -0000 In the last episode (Dec 08), Michael C. Shultz said: > On Thursday 08 December 2005 11:38, Jay Desjardins wrote: > > We are attempting to get Smartfilter (content filter that plugs > > into squid) to work on FreeBSD 6.0. A while ago, Smartfilter use to > > come as a port for FreeBSD, but after a while they no longer > > support BSD, only Linux and Solaris. I decided that now it's time > > to upgrade to a new version (of Smartfilter and the OS) yet again, > > I would like to replace the Red Had ES 3 server with a BSD box, not > > a newer RedHat box. Smartfilter's content plugin is designed for > > RHES 4, and I am trying to get it to work on 6.0 so I have run into > > a few problems, most which have been overcome, but this one > > persists. > > > > gcc -g -O2 -Wall -DSMARTFILTER -DUNIX -D_REENTRANT -g -o cf_gen cf_gen.o -L../lib -lmiscutil -lm -lbsd -lnsl > > /usr/bin/ld: cannot find -lbsd > > *** Error code 1 > > > > Stop in /downloads/stuff/squid-2.5.STABLE10/src. > > *** Error code 1 > > > > Stop in /downloads/stuff/squid-2.5.STABLE10. > > find /usr/ports/*/. | grep pkg-plist | xargs grep libbsd > > /usr/ports/devel/./agenda-static-libs/pkg-plist:mipsel-linux/lib/libbsd-compat.a > /usr/ports/devel/./linux_devtools/pkg-plist:usr/lib/libbsd-compat.a > /usr/ports/devel/./linux_devtools/pkg-plist:usr/lib/libbsd.a > > Try installing devel/linux_devtools When I'm faced with a program trying to link some unknown missing library, the first thing I do is remove it and see if there really are any unresolved symbols. On all the Linux boxes here, libbsd.a contains a single symbol named "__dummy__". I'm betting you can just remove -lbsd with no ill effects. -- Dan Nelson dnelson@allantgroup.com