krb5-1.4.3 and Solaris 2.5.1
Batty, Richard
richard.batty at logicacmg.com
Wed Jan 18 10:53:08 EST 2006
Thanks for that Jeremy, I now get the following errors...
Creating gssapi.h
+ mv -f gss28055 gssapi_krb5.h
cp gssapi_krb5.h "../../../include/gssapi/gssapi_krb5.h"
/usr/local/bin/gcc -fPIC -DSHARED -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_BT_RSEQ=1 -DKRB5_PRIVATE=1 -DKRB5_DEPRECATED=1 -DHAVE_LIBNSL=1 -DHAVE_LIBSOCKET=1 -DKRB5_DNS_LOOKUP_KDC=1 -DKRB5_DNS_LOOKUP_REALM=1 -DKRB5_DNS_LOOKUP=1 -DHAVE_LIBRESOLV=1 -DHAVE_RES_SEARCH=1 -DHAVE_PRAGMA_WEAK_REF=1 -DDELAY_INITIALIZER=1 -DCONSTRUCTOR_ATTR_WORKS=1 -DDESTRUCTOR_ATTR_WORKS=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_MEMORY_H=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -I../../../include -I./../../../include -I../../../include/krb5 -I./../../../include/krb5 -I. -I. -I./.. -I../generic -I./../generic -g -O2 -Wall -Wmissing-prototypes -Wcast-qual -Wcast-align -Wconversion -Wshadow -pedantic -c accept_sec_context.c -o accept_sec_context.so.o && mv -f accept_sec_context.so.o accept_sec_context.so
In file included from ../../../include/k5-int.h:122,
from accept_sec_context.c:73:
../../../include/k5-platform.h:442: warning: ISO C90 does not support `long long'
../../../include/k5-platform.h:454: warning: ISO C90 does not support `long long'
../../../include/k5-platform.h:487: warning: ISO C90 does not support `long long'
../../../include/k5-platform.h: In function `load_64_be':
../../../include/k5-platform.h:488: warning: ISO C90 does not support `long long'
../../../include/k5-platform.h: At top level:
../../../include/k5-platform.h:492: warning: ISO C90 does not support `long long'
../../../include/k5-platform.h: In function `load_64_le':
../../../include/k5-platform.h:493: warning: ISO C90 does not support `long long'
In file included from accept_sec_context.c:73:
../../../include/k5-int.h: At top level:
../../../include/k5-int.h:124: warning: ISO C90 does not support `long long'
../../../include/k5-int.h:125: warning: ISO C90 does not support `long long'
In file included from gssapiP_krb5.h:64,
from accept_sec_context.c:74:
../generic/gssapiP_generic.h:46: warning: ISO C90 does not support `long long'
In file included from gssapiP_krb5.h:69,
from accept_sec_context.c:74:
gssapi_krb5.h:94: error: parse error before "gss_uint64"
gssapi_krb5.h:94: warning: type defaults to `int' in declaration of `gss_uint64'
gssapi_krb5.h:94: error: ISO C forbids data definition with no type or storage class
gssapi_krb5.h:127: error: parse error before "gss_uint64"
gssapi_krb5.h:127: warning: no semicolon at end of struct or union
gssapi_krb5.h:128: warning: type defaults to `int' in declaration of `recv_seq'
gssapi_krb5.h:128: error: ISO C forbids data definition with no type or storage class
gssapi_krb5.h:139: error: parse error before '}' token
gssapi_krb5.h:139: warning: type defaults to `int' in declaration of `gss_krb5_lucid_context_v1_t'
gssapi_krb5.h:139: error: ISO C forbids data definition with no type or storage class
accept_sec_context.c: In function `krb5_gss_accept_sec_context':
accept_sec_context.c:339: warning: cast discards qualifiers from pointer target type
accept_sec_context.c:345: warning: cast discards qualifiers from pointer target type
accept_sec_context.c:614: warning: cast discards qualifiers from pointer target type
accept_sec_context.c:739: warning: pointer targets in passing arg 3 of `krb5_auth_con_getremoteseqnumber' differ in signedness
accept_sec_context.c:791: warning: pointer targets in passing arg 3 of `krb5_auth_con_getlocalseqnumber' differ in signedness
accept_sec_context.c:817: warning: cast discards qualifiers from pointer target type
accept_sec_context.c:826: warning: cast discards qualifiers from pointer target type
accept_sec_context.c:857: warning: cast discards qualifiers from pointer target type
accept_sec_context.c:910: warning: dereferencing type-punned pointer will break strict-aliasing rules
accept_sec_context.c:975: warning: cast discards qualifiers from pointer target type
accept_sec_context.c:983: warning: cast discards qualifiers from pointer target type
*** Error code 1
make: Fatal error: Command failed for target `accept_sec_context.so'
Current working directory /tmp/krb5-1.4.3/src/lib/gssapi/krb5
*** Error code 1
make: Fatal error: Command failed for target `all-recurse'
Current working directory /tmp/krb5-1.4.3/src/lib/gssapi
*** Error code 1
make: Fatal error: Command failed for target `all-recurse'
Current working directory /tmp/krb5-1.4.3/src/lib
*** Error code 1
make: Fatal error: Command failed for target `all-recurse'
-----Original Message-----
From: kerberos-bounces at mit.edu [mailto:kerberos-bounces at mit.edu]On
Behalf Of Jeremy Thomas Hunt
Sent: 18 January 2006 03:40
Cc: kerberos at mit.edu
Subject: Re: krb5-1.4.3 and Solaris 2.5.1
I had similar type problems building with Solaris 2.5.1 (sigh!)
I took a different tack with the "uint" problem:
1. I patched krb5-1.4.3/src/lib/gssapi/krb5/gssapi_krb5.hin so it did
not use inttypes.h, and replaced it with the one typedef it seemed to
really need:
typedef u_longlong_t gss_uint64;
2. I ran configure with the following options:
--without-krb4 --disable-thread-support
you may need krb4, but ditch thread support.
3. I only built the client, not the server software for Solaris 2.5.1,
so I removed references to the slave directory from the top level Makefile
4. Then I ran a make. I had no problems with the build and no problems
with my testing.
Good luck.
Jeremy
Batty, Richard wrote:
> [safeTgram (optim1) receive status: NOT encrypted, NOT signed.]
>
>
>
> I'm having problems getting krb5-1.4.3 to compile on Solaris 2.5.1 using gcc 3.4.2.
>
> The first problem I hit were complaints about the inttypes.h set of headers, so I took these off a 2.6 server as I couldn't find them anywhere on the 2.5.1 media. I then had to change the uint_32 to be unassigned long rather than unassigned int.
>
> However now I'm a little stuck...
>
> When making the lib/rpc/unit-test
> I get the following error
>
> /usr/local/bin/gcc -L../../../lib -R/usr/local/lib -g -O2 -Wall -Wmissing-prototypes -Wcast-qual -Wcast-align -Wconversion -Wshadow -pedantic -L/usr/local/lib -R/usr/local/lib -o client client.o rpc_test_clnt.o \
> -lgssrpc -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkrb5support -lresolv -lsocket -lnsl
> Undefined first referenced
> symbol in file
> __register_frame_info /usr/local/lib/gcc/sparc-sun-solaris2.5.1/3.4.2/crtbegin.o (symbol belongs to implicit dependency /usr/local/lib/libgcc_s.so.1)
> __deregister_frame_info /usr/local/lib/gcc/sparc-sun-solaris2.5.1/3.4.2/crtbegin.o (symbol belongs to implicit dependency /usr/local/lib/libgcc_s.so.1)
> ld: fatal: Symbol referencing errors. No output written to client
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `client'
>
>
>
> Can anyone help?
>
> Thanks
>
> Richard Batty
>
>
>
> This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
>
> ________________________________________________
> Kerberos mailing list Kerberos at mit.edu
> https://mailman.mit.edu/mailman/listinfo/kerberos
>
>
>
>
________________________________________________
Kerberos mailing list Kerberos at mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos
More information about the Kerberos
mailing list