2010/6/8 Dean Weimer <dwei...@orscheln.com>:
>> -----Original Message-----
>> From: Henrik Nordström [mailto:hen...@henriknordstrom.net]
>> Sent: Tuesday, June 08, 2010 1:01 PM
>> To: Dean Weimer
>> Cc: squid-users@squid-cache.org; Squid Developers
>> Subject: RE: [squid-users] Compile Error on FreeBSD 8.0 with Squid 3.1.2 &
>> 3.1.3
>>
>> tis 2010-06-08 klockan 11:13 -0500 skrev Dean Weimer:
>> > As of 3.1.4 this compiles fine on FreeBSD 8.0, and 7.1.  However, the
>> FreeBSD 7.2 system I have still has this problem with 3.1.4.
>>
>> Odd.
>>
>> What error do you get?
>>
>> Regards
>> Henrik
>
> Compile options:
> ./configure \
> --prefix=/usr/local/squid \
> --enable-pthreads \
> --enable-ssl \
> --with-openssl=/usr/local \
> --enable-async-io \
> --enable-underscores \
> --enable-storeio="ufs,aufs" \
> --enable-delay-pools \
> --disable-ipv6
>
> End of output form make:
> 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
> cc1: warnings being treated as errors
> squid_session.c: In function 'init_db':
> squid_session.c:61: warning: implicit declaration of function 'dbopen'
> squid_session.c:61: warning: assignment makes pointer from integer without a 
> cast
> squid_session.c: In function 'shutdown_db':
> squid_session.c:70: error: too few arguments to function 'db->close'
> squid_session.c: In function 'session_active':
> squid_session.c:80: warning: passing argument 2 of 'db->get' from 
> incompatible pointer type
> squid_session.c:80: error: too few arguments to function 'db->get'
> squid_session.c:84: warning: passing argument 2 of 'db->del' from 
> incompatible pointer type
> squid_session.c:84: error: too few arguments to function 'db->del'
> squid_session.c: In function 'session_login':
> squid_session.c:102: warning: passing argument 2 of 'db->put' from 
> incompatible pointer type
> squid_session.c:102: error: too few arguments to function 'db->put'
> squid_session.c: In function 'session_logout':
> squid_session.c:110: warning: passing argument 2 of 'db->del' from 
> incompatible pointer type
> squid_session.c:110: error: too few arguments to function 'db->del'

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.

Workaround: install bdb 1.8.5.
Long-term fix: merge the improved detection code, although it means
that the session helper will not build where it can't find the tools.

-- 
    /kinkie

Reply via email to