Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Dec 2005 12:16:47 -0800
From:      "Michael C. Shultz" <ringworm01@gmail.com>
To:        Dan Nelson <dnelson@allantgroup.com>
Cc:        Jay Desjardins <jay.p.desjardins@enc.edu>, freebsd-questions@freebsd.org
Subject:   Re: smartfilter, linux and you
Message-ID:  <200512081216.48426.ringworm01@gmail.com>
In-Reply-To: <20051208195712.GA95420@dan.emsphone.com>
References:  <43988BB5.6020606@enc.edu> <200512081149.45622.ringworm01@gmail.com> <20051208195712.GA95420@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512081216.48426.ringworm01>