From owner-freebsd-questions@FreeBSD.ORG Thu Dec 8 20:17:10 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 7EE6016A41F for ; Thu, 8 Dec 2005 20:17:10 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDB8D43D7E for ; Thu, 8 Dec 2005 20:16:57 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: by xproxy.gmail.com with SMTP id s9so481493wxc for ; Thu, 08 Dec 2005 12:16:55 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=HXERN72VyCLTv0Tk8wQ/KskiB6Rlyj+59bN0jYc6XO4f3soB2/yYBtXmmh6xnuGxLH6C2Ah4wHSYvOTHCCLmassMnvcB/TEuZzzIwTopS25hgwDcxyjMUq5GokvWxDtuFd6DkLfEYIFAuJmK4Ar5KYOXW+uaJpBM+6UAyHVtPdE= Received: by 10.70.100.17 with SMTP id x17mr3724325wxb; Thu, 08 Dec 2005 12:16:52 -0800 (PST) Received: from ringworm.mechee.com ( [71.102.14.129]) by mx.gmail.com with ESMTP id h37sm3952093wxd.2005.12.08.12.16.50; Thu, 08 Dec 2005 12:16:51 -0800 (PST) From: "Michael C. Shultz" To: Dan Nelson Date: Thu, 8 Dec 2005 12:16:47 -0800 User-Agent: KMail/1.8.3 References: <43988BB5.6020606@enc.edu> <200512081149.45622.ringworm01@gmail.com> <20051208195712.GA95420@dan.emsphone.com> In-Reply-To: <20051208195712.GA95420@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512081216.48426.ringworm01@gmail.com> 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 20:17:10 -0000 On Thursday 08 December 2005 11:57, Dan Nelson wrote: > 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-c > >ompat.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. FreeBSD version shows the same thing: nm /compat/linux/usr/lib/libbsd.a dummy.o: 00000000 T __dummy__ -Mike