smartfilter, linux and you

Dan Nelson dnelson at allantgroup.com
Thu Dec 8 11:57:38 PST 2005


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 at allantgroup.com


More information about the freebsd-questions mailing list