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

2010-06-09 Thread Kinkie
2010/6/8 Dean Weimer :
>> -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


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

2010-06-08 Thread Dean Weimer
> -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'
*** 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


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

2010-06-08 Thread Henrik Nordström
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



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

2010-06-08 Thread 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.

Thanks,
 Dean Weimer
 Network Administrator
 Orscheln Management Co

> -Original Message-
> From: Amos Jeffries [mailto:squ...@treenet.co.nz]
> Sent: Tuesday, May 04, 2010 6:04 PM
> To: Kinkie
> Cc: Dean Weimer; 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
> 
> On Tue, 4 May 2010 17:53:31 +0200, Kinkie  wrote:
> > It's already fixed in trunk.
> > Amos, please import changes in revnos 10428 & 10431. Only impacts
> > system running bdb-4 but not 1.85
> 
> 10428 is already in and not related to dbh.
> 
> Did you mean 10432 which reverts a portion of 10431?
> 
> Amos
> 
> >
> >Kinkie
> >
> > On Tue, May 4, 2010 at 5:44 PM, Dean Weimer 
> wrote:
> >> I have run into the following compile error on both squid 3.1.2 and
> >> squid 3.1.3 on FreeBSD 8.0 using these options for
> >> ./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
> >> Squid 3.1.1 Compiles fine on this system, has anyone else ran into this
> >> issue or have any ideas as to the cause.
> >>
> >> 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:62: warning: implicit declaration of function 'dbopen'
> >> squid_session.c:62: warning: assignment makes pointer from integer
> >> without a cast
> >> squid_session.c: In function 'shutdown_db':
> >> squid_session.c:71: error: too few arguments to function 'db->close'
> >> squid_session.c: In function 'session_active':
> >> squid_session.c:81: warning: passing argument 2 of 'db->get' from
> >> incompatible pointer type
> >> squid_session.c:81: error: too few arguments to function 'db->get'
> >> squid_session.c:85: warning: passing argument 2 of 'db->del' from
> >> incompatible pointer type
> >> squid_session.c:85: error: too few arguments to function 'db->del'
> >> squid_session.c: In function 'session_login':
> >> squid_session.c:103: warning: passing argument 2 of 'db->put' from
> >> incompatible pointer type
> >> squid_session.c:103: error: too few arguments to function 'db->put'
> >> squid_session.c: In function 'session_logout':
> >> squid_session.c:111: warning: passing argument 2 of 'db->del' from
> >> incompatible pointer type
> >> squid_session.c:111: error: too few arguments to function 'db->del'
> >> *** Error code 1
> >>
> >> Stop in /usr/local/squid-3.1.3/helpers/external_acl/session.
> >> *** Error code 1
> >>
> >> Stop in /usr/local/squid-3.1.3/helpers/external_acl.
> >> *** Error code 1
> >>
> >> Stop in /usr/local/squid-3.1.3/helpers.
> >> *** Error code 1
> >>
> >> Stop in /usr/local/squid-3.1.3.
> >>
> >> Thanks,
> >>  Dean Weimer
> >>  Network Administrator
> >>  Orscheln Management Co
> >>
> >>


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

2010-05-04 Thread Kinkie
On Wed, May 5, 2010 at 1:03 AM, Amos Jeffries  wrote:
> On Tue, 4 May 2010 17:53:31 +0200, Kinkie  wrote:
>> It's already fixed in trunk.
>> Amos, please import changes in revnos 10428 & 10431. Only impacts
>> system running bdb-4 but not 1.85
>
> 10428 is already in and not related to dbh.
>
> Did you mean 10432 which reverts a portion of 10431?

Yes. I hadn't managed to get it right on the first attempt

-- 
/kinkie


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

2010-05-04 Thread Amos Jeffries
On Tue, 4 May 2010 17:53:31 +0200, Kinkie  wrote:
> It's already fixed in trunk.
> Amos, please import changes in revnos 10428 & 10431. Only impacts
> system running bdb-4 but not 1.85

10428 is already in and not related to dbh.

Did you mean 10432 which reverts a portion of 10431?

Amos

> 
>Kinkie
> 
> On Tue, May 4, 2010 at 5:44 PM, Dean Weimer 
wrote:
>> I have run into the following compile error on both squid 3.1.2 and
>> squid 3.1.3 on FreeBSD 8.0 using these options for
>> ./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
>> Squid 3.1.1 Compiles fine on this system, has anyone else ran into this
>> issue or have any ideas as to the cause.
>>
>> 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:62: warning: implicit declaration of function 'dbopen'
>> squid_session.c:62: warning: assignment makes pointer from integer
>> without a cast
>> squid_session.c: In function 'shutdown_db':
>> squid_session.c:71: error: too few arguments to function 'db->close'
>> squid_session.c: In function 'session_active':
>> squid_session.c:81: warning: passing argument 2 of 'db->get' from
>> incompatible pointer type
>> squid_session.c:81: error: too few arguments to function 'db->get'
>> squid_session.c:85: warning: passing argument 2 of 'db->del' from
>> incompatible pointer type
>> squid_session.c:85: error: too few arguments to function 'db->del'
>> squid_session.c: In function 'session_login':
>> squid_session.c:103: warning: passing argument 2 of 'db->put' from
>> incompatible pointer type
>> squid_session.c:103: error: too few arguments to function 'db->put'
>> squid_session.c: In function 'session_logout':
>> squid_session.c:111: warning: passing argument 2 of 'db->del' from
>> incompatible pointer type
>> squid_session.c:111: error: too few arguments to function 'db->del'
>> *** Error code 1
>>
>> Stop in /usr/local/squid-3.1.3/helpers/external_acl/session.
>> *** Error code 1
>>
>> Stop in /usr/local/squid-3.1.3/helpers/external_acl.
>> *** Error code 1
>>
>> Stop in /usr/local/squid-3.1.3/helpers.
>> *** Error code 1
>>
>> Stop in /usr/local/squid-3.1.3.
>>
>> Thanks,
>>  Dean Weimer
>>  Network Administrator
>>  Orscheln Management Co
>>
>>


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

2010-05-04 Thread Kinkie
It's already fixed in trunk.
Amos, please import changes in revnos 10428 & 10431. Only impacts
system running bdb-4 but not 1.85

   Kinkie

On Tue, May 4, 2010 at 5:44 PM, Dean Weimer  wrote:
> I have run into the following compile error on both squid 3.1.2 and squid 
> 3.1.3 on FreeBSD 8.0 using these options for
> ./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
> Squid 3.1.1 Compiles fine on this system, has anyone else ran into this issue 
> or have any ideas as to the cause.
>
> 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:62: warning: implicit declaration of function 'dbopen'
> squid_session.c:62: warning: assignment makes pointer from integer without a 
> cast
> squid_session.c: In function 'shutdown_db':
> squid_session.c:71: error: too few arguments to function 'db->close'
> squid_session.c: In function 'session_active':
> squid_session.c:81: warning: passing argument 2 of 'db->get' from 
> incompatible pointer type
> squid_session.c:81: error: too few arguments to function 'db->get'
> squid_session.c:85: warning: passing argument 2 of 'db->del' from 
> incompatible pointer type
> squid_session.c:85: error: too few arguments to function 'db->del'
> squid_session.c: In function 'session_login':
> squid_session.c:103: warning: passing argument 2 of 'db->put' from 
> incompatible pointer type
> squid_session.c:103: error: too few arguments to function 'db->put'
> squid_session.c: In function 'session_logout':
> squid_session.c:111: warning: passing argument 2 of 'db->del' from 
> incompatible pointer type
> squid_session.c:111: error: too few arguments to function 'db->del'
> *** Error code 1
>
> Stop in /usr/local/squid-3.1.3/helpers/external_acl/session.
> *** Error code 1
>
> Stop in /usr/local/squid-3.1.3/helpers/external_acl.
> *** Error code 1
>
> Stop in /usr/local/squid-3.1.3/helpers.
> *** Error code 1
>
> Stop in /usr/local/squid-3.1.3.
>
> Thanks,
>  Dean Weimer
>  Network Administrator
>  Orscheln Management Co
>
>



-- 
/kinkie