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

From: jeffrey j donovan <donovan_at_beth.k12.pa.us>
Date: Thu, 24 Mar 2011 09:12:49 -0400

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 ? Sorry im not on developers list, this is a development test machine im working with.

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

//// State.h file////
#ifndef __AUTH_AUTHENTICATE_STATE_T__
#define __AUTH_AUTHENTICATE_STATE_T__

#if USE_AUTH
#include "cbdata.h"
#include "auth/UserRequest.h"

/**
 * CBDATA state for NTLM, Negotiate, and Digest stateful authentication.
 */
typedef struct {
    void *data;
    AuthUserRequest::Pointer auth_user_request;
    RH *handler;
} authenticateStateData;

extern CBDATA_GLOBAL_TYPE(authenticateStateData);

extern void authenticateStateFree(authenticateStateData * r);

#endif /* USE_AUTH */
#endif /* __AUTH_AUTHENTICATE_STATE_T__ */
Received on Thu Mar 24 2011 - 13:12:52 MDT

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