Re: [squid-users] 3.2.0.5 powerpc-apple-darwin9.8.0 - authenticateStateData' was not declared in this scope

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Fri, 25 Mar 2011 02:53:49 +1300

On 25/03/11 02:12, jeffrey j donovan wrote:
>
> On Mar 23, 2011, at 11:55 PM, Amos Jeffries wrote:
>
>> On 24/03/11 15:52, jeffrey j donovan wrote:
>>> Greetings
>>> things were going so smooth until it hit the build for authentication. system running powerpc-apple-darwin9.8.0 osx 10.5.8
>>>
>>> ./configure --enable-disk-io --enable-storeio --enable-icmp --enable-ssl --enable-ipfw-transparent --enable-auth --enable-auth-basic --with-filedescriptors=1024
>>> <autostuff libtool stuff>
>>> .
>>> Making all in auth
>>> awk -f ../../src/mk-string-arrays.awk< ./AuthType.h> AuthType.cc || (rm -f AuthType.cc ; exit 1)
>>> /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -g -O2 -MT AuthType.lo -MD -MP -MF .deps/AuthType.Tpo -c -o AuthType.lo AuthType.cc
>>> libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -g -O2 -MT AuthType.lo -MD -MP -MF .deps/AuthType.Tpo -c AuthType.cc -fno-common -DPIC -o .libs/AuthType.o
>>> libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -g -O2 -MT AuthType.lo -MD -MP -MF .deps/AuthType.Tpo -c AuthType.cc -o AuthType.o>/dev/null 2>&1
>>> mv -f .deps/AuthType.Tpo .deps/AuthType.Plo
>>> /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -g -O2 -MT Config.lo -MD -MP -MF .deps/Config.Tpo -c -o Config.lo Config.cc
>>> libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -g -O2 -MT Config.lo -MD -MP -MF .deps/Config.Tpo -c Config.cc -fno-common -DPIC -o .libs/Config.o
>>> libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -g -O2 -MT Config.lo -MD -MP -MF .deps/Config.Tpo -c Config.cc -o Config.o>/dev/null 2>&1
>>> mv -f .deps/Config.Tpo .deps/Config.Plo
>>> /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -g -O2 -MT Gadgets.lo -MD -MP -MF .deps/Gadgets.Tpo -c -o Gadgets.lo Gadgets.cc
>>> libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -g -O2 -MT Gadgets.lo -MD -MP -MF .deps/Gadgets.Tpo -c Gadgets.cc -fno-common -DPIC -o .libs/Gadgets.o
>>> libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -g -O2 -MT Gadgets.lo -MD -MP -MF .deps/Gadgets.Tpo -c Gadgets.cc -o Gadgets.o>/dev/null 2>&1
>>> mv -f .deps/Gadgets.Tpo .deps/Gadgets.Plo
>>> /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -g -O2 -MT Scheme.lo -MD -MP -MF .deps/Scheme.Tpo -c -o Scheme.lo Scheme.cc
>>> libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -g -O2 -MT Scheme.lo -MD -MP -MF .deps/Scheme.Tpo -c Scheme.cc -fno-common -DPIC -o .libs/Scheme.o
>>> libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -g -O2 -MT Scheme.lo -MD -MP -MF .deps/Scheme.Tpo -c Scheme.cc -o Scheme.o>/dev/null 2>&1
>>> mv -f .deps/Scheme.Tpo .deps/Scheme.Plo
>>> /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -g -O2 -MT State.lo -MD -MP -MF .deps/State.Tpo -c -o State.lo State.cc
>>> libtool: compile: g++ -DHAVE_CONFIG_H -I../.. -I../../include -I../../lib -I../../src -I../../include -I../../libltdl -I. -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -pipe -D_REENTRANT -g -O2 -MT State.lo -MD -MP -MF .deps/State.Tpo -c State.cc -fno-common -DPIC -o .libs/State.o
>>> State.cc:4: error: expected constructor, destructor, or type conversion before '(' token
>>> State.cc:7: error: variable or field 'authenticateStateFree' declared void
>>> State.cc:7: error: 'authenticateStateData' was not declared in this scope
>>> State.cc:7: error: 'r' was not declared in this scope
>>> State.cc:8: error: expected ',' or ';' before '{' token
>>> make[3]: *** [State.lo] Error 1
>>> make[2]: *** [all-recursive] Error 1
>>> make[1]: *** [all] Error 2
>>> make: *** [all-recursive] Error 1
>>>
>>
>> Looks like a missing include.
>>
>> Try adding the line:
>> #include "cbdata.h"
>>
>> to the file src/auth/State.h above the other #include line.
>>
>> Amos
>>
>
> thanks for the reply
>
> same error on make, config is fine. Should I specify the helper or should it just pick it up ?

This file is in the core auth system. For some reason State.cc seems not
to be compiling the definitions in its own .h file.

Does the built include/autoconf.h file define USE_AUTH to "1" ?

In 3.x the default is to locate and build all available helpers.

> Sorry im not on developers list, this is a development test machine im working with.
>

If you can join that may help. I'm the only dev who reads this list. The
others are much more experienced with C/C++ weirdness than myself.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.11
   Beta testers wanted for 3.2.0.5
Received on Thu Mar 24 2011 - 13:53:55 MDT

This archive was generated by hypermail 2.2.0 : Thu Mar 24 2011 - 12:00:04 MDT