RE: [squid-users] Compile Error on FreeBSD 8.0 with Squid 3.1.2 & 3.1.3

From: Dean Weimer <dweimer_at_orscheln.com>
Date: Wed, 9 Jun 2010 09:42:46 -0500


> -----Original Message-----
> From: Kinkie [mailto:gkinkie_at_gmail.com]
> Sent: Wednesday, June 09, 2010 5:56 AM
> To: Henrik Nordström; Dean Weimer; Squid Developers
> Subject: Re: [squid-users] Compile Error on FreeBSD 8.0 with Squid 3.1.2 &
> 3.1.3
>
> Then it seems that the glue is missing in this case :)
> The point still stands
>
> On 6/9/10, Henrik Nordström <henrik_at_henriknordstrom.net> wrote:
> > ons 2010-06-09 klockan 10:34 +0200 skrev Kinkie:
> >
> >> You're probably missing Berkeley db version 1.8.5 , but have a more
> >> recent version (and incompatible), and this confuses autoconf.
> >> IIRC the autoconf-refactor branch has some better detection logics,
> >> but it hasn't been merged to trunk or to 3.1 yet.
> >
> > The code accepts any BDB version as long as the standard DB-1.8.5 glue
> > layer is available. I have not built the helper with BDB 1.8.5 in ages,
> > only newer BDB 4.x versions.
> >
> > Regards
> > Henrik
> >
> >
> >
> >
>
>
> --
> /Kinkie

I have Berkley DB 11gR2 (db-5.0.21) installed, I added --enable-compat185 to its build options, recompiled and installed. This did change the output of make a little, but it still failed.
Build options for Berkley DB configure:
--prefix=/usr/local --enable-compat185

This is installed on the FreeBSD 8.0 system, with just the --prefix=/usr/local option set, the FreeBSD 7.1 systems I am running 3.1.4 on do not have this installed and are using whatever bdb FreeBSD has included in the base install.

From the ./configure output on Squid
...
configure: Digest auth helpers built: password
 * The following flags are included in the dbopen(3) call as part of the
 * a problem. Wish I'd left another flags word in the dbopen call.
DB *dbopen(const char *, int, int, DBTYPE, const void *);
...
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking db_185.h usability... yes
checking db_185.h presence... yes
checking for db_185.h... yes
...
checking whether dbopen is declared... yes
checking if dbopen needs -ldb... no
...


Making all in session
gcc -DHAVE_CONFIG_H -I../../.. -I../../../include -I../../../src -I../../../include -I. -I/usr/local/include -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Werror -D_REENTRANT -Wall -g -O2 -MT squid_session.o -MD -MP -MF .deps/squid_session.Tpo -c -o squid_session.o squid_session.c
mv -f .deps/squid_session.Tpo .deps/squid_session.Po
/bin/sh ../../../libtool --tag=CC --mode=link gcc -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Werror -D_REENTRANT -Wall -g -O2 -g -o squid_session squid_session.o ../../../compat/libcompat.la
mkdir .libs
gcc -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Werror -D_REENTRANT -Wall -g -O2 -g -o squid_session squid_session.o ../../../compat/.libs/libcompat.a
squid_session.o(.text+0x190): In function `main':
/usr/local/squid-3.1.4/helpers/external_acl/session/squid_session.c:61: undefined reference to `__db185_open'
*** Error code 1

Stop in /usr/local/squid-3.1.4/helpers/external_acl/session.
*** Error code 1

Stop in /usr/local/squid-3.1.4/helpers/external_acl.
*** Error code 1

Stop in /usr/local/squid-3.1.4/helpers.
*** Error code 1

Stop in /usr/local/squid-3.1.4.


Thanks,
     Dean Weimer
     Network Administrator
     Orscheln Management Co
Received on Wed Jun 09 2010 - 14:43:47 MDT

This archive was generated by hypermail 2.2.0 : Wed Jun 09 2010 - 12:00:07 MDT