[freeBSD 6.1] Krb5Auth error

dear all,
this is the output while compiling Krb5Auth on a freeBSD 6.1 system.
I don’t really know how to manage it.
The only way I have to continue the root installation is to turn KrbAuth off.
Help, please.
Thanks
roberto

bin/rmkdepend -R -fkrb5auth/src/Krb5Auth.d -Y -w 1000 – -pipe -W -Wall -fPIC -I/usr/X11R6/include -Iinclude -pthread -DR__KRB5INIT=""/usr/bin/kinit"" -D__cplusplus – krb5auth/src/Krb5Auth.cxx
g++ -O -pipe -W -Wall -fPIC -I/usr/X11R6/include -Iinclude -pthread -DR__KRB5INIT=""/usr/bin/kinit"" -o krb5auth/src/Krb5Auth.o -c krb5auth/src/Krb5Auth.cxx
krb5auth/src/Krb5Auth.cxx: In function Int_t Krb5Authenticate(TAuthenticate*, TString&, TString&, Int_t)': krb5auth/src/Krb5Auth.cxx:153: error:error_message’ undeclared (first use this function)
krb5auth/src/Krb5Auth.cxx:153: error: (Each undeclared identifier is reported only once for each function it appears in.)
krb5auth/src/Krb5Auth.cxx:263: error: ‘struct Principal’ has no member named ‘data’
krb5auth/src/Krb5Auth.cxx:263: error: ‘struct Principal’ has no member named ‘data’
krb5auth/src/Krb5Auth.cxx:264: error: request for member length' inclient->Principal::realm’, which is of non-class type char*' krb5auth/src/Krb5Auth.cxx:264: error: request for memberdata’ in client->Principal::realm', which is of non-class typechar*'
krb5auth/src/Krb5Auth.cxx:286: error: ‘struct Principal’ has no member named ‘data’
krb5auth/src/Krb5Auth.cxx:286: error: ‘struct Principal’ has no member named ‘data’
krb5auth/src/Krb5Auth.cxx:287: error: request for member length' inclient->Principal::realm’, which is of non-class type char*' krb5auth/src/Krb5Auth.cxx:287: error: request for memberdata’ in client->Principal::realm', which is of non-class typechar*'
krb5auth/src/Krb5Auth.cxx:285: warning: unused variable ‘ticketPrincipal’
krb5auth/src/Krb5Auth.cxx:335: error: ‘struct Principal’ has no member named ‘data’
krb5auth/src/Krb5Auth.cxx:335: error: ‘struct Principal’ has no member named ‘data’
krb5auth/src/Krb5Auth.cxx:339: error: ‘struct Principal’ has no member named ‘data’
krb5auth/src/Krb5Auth.cxx:339: error: ‘struct Principal’ has no member named ‘data’
krb5auth/src/Krb5Auth.cxx:340: error: request for member length' inclient->Principal::realm’, which is of non-class type char*' krb5auth/src/Krb5Auth.cxx:340: error: request for memberdata’ in client->Principal::realm', which is of non-class typechar*‘
krb5auth/src/Krb5Auth.cxx:424: error: valid_cksumtype' undeclared (first use this function) krb5auth/src/Krb5Auth.cxx:453: error: 'struct Principal' has no member named 'data' krb5auth/src/Krb5Auth.cxx:453: error: 'struct Principal' has no member named 'data' krb5auth/src/Krb5Auth.cxx:454: error: request for memberlength’ in server->Principal::realm', which is of non-class typechar*‘
krb5auth/src/Krb5Auth.cxx:454: error: request for member data' inserver->Principal::realm’, which is of non-class type char*' krb5auth/src/Krb5Auth.cxx:501: error: 'struct KRB_ERROR' has no member named 'text' krb5auth/src/Krb5Auth.cxx:501: error: 'struct KRB_ERROR' has no member named 'text' krb5auth/src/Krb5Auth.cxx:545: error: invalid conversion fromvoid*’ to char*' krb5auth/src/Krb5Auth.cxx:551: error: pointer of typevoid ’ used in arithmetic
krb5auth/src/Krb5Auth.cxx:551: error: void*' is not a pointer-to-object type krb5auth/src/Krb5Auth.cxx:551: error: pointer of typevoid ’ used in arithmetic
krb5auth/src/Krb5Auth.cxx:551: error: void*' is not a pointer-to-object type krb5auth/src/Krb5Auth.cxx:551: error: pointer of typevoid ’ used in arithmetic
krb5auth/src/Krb5Auth.cxx:551: error: void*' is not a pointer-to-object type krb5auth/src/Krb5Auth.cxx: In functionInt_t Krb5CheckCred(krb5_context_data
, krb5_ccache_data
, TString, TDatime&)’:
krb5auth/src/Krb5Auth.cxx:761: error: error_message' undeclared (first use this function) krb5auth/src/Krb5Auth.cxx:770: error: 'struct Principal' has no member named 'length' krb5auth/src/Krb5Auth.cxx:772: error: request for memberlength’ in creds.krb5_creds::server->Principal::realm', which is of non-class typechar

krb5auth/src/Krb5Auth.cxx:772: error: request for member data' increds.krb5_creds::server->Principal::realm’, which is of non-class type char*' krb5auth/src/Krb5Auth.cxx:775: error: 'struct Principal' has no member named 'data' krb5auth/src/Krb5Auth.cxx:775: error: 'struct Principal' has no member named 'data' krb5auth/src/Krb5Auth.cxx:777: error: 'struct Principal' has no member named 'data' krb5auth/src/Krb5Auth.cxx:777: error: 'struct Principal' has no member named 'data' krb5auth/src/Krb5Auth.cxx:782: error: 'struct Principal' has no member named 'length' krb5auth/src/Krb5Auth.cxx:783: error: request for memberdata’ in creds.krb5_creds::server->Principal::realm', which is of non-class typechar*‘
krb5auth/src/Krb5Auth.cxx:784: error: request for member length' increds.krb5_creds::server->Principal::realm’, which is of non-class type `char*'
krb5auth/src/Krb5Auth.cxx:785: error: ‘struct Principal’ has no member named 'data’
krb5auth/src/Krb5Auth.cxx:786: error: ‘struct Principal’ has no member named 'data’
krb5auth/src/Krb5Auth.cxx:787: error: ‘struct Principal’ has no member named 'data’
krb5auth/src/Krb5Auth.cxx:788: error: ‘struct Principal’ has no member named 'data’
gmake: *** [krb5auth/src/Krb5Auth.o] Error 1

no way: more errors appear later…

the error

krb5auth/src/Krb5Auth.cxx:153: error: `error_message’ undeclared (first use this function)

can be solved by changing in the file

krb5auth/inc/Krb5Auth.h

#if (defined(__sun) || defined(__sgi) || defined(APPLE)) && !defined(linux)
#include <com_err>
#endif
#include <krb5.

into

#if (defined(__sun) || defined(__sgi) || defined(APPLE) || defined(FreeBSD)) && !defined(linux)
#include <com_err>
#endif

mmmmhhhh…

the linux krb5.h file looks very different from the freBSD’s one.
some structures are different etc.etc.

I’ll try a clean installation with this configuration

./configure freeBSD5 --disable-krb5