[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Solaris 8, OpenSSL 0.9.7d, kth-krb compatability problem



I wish there was a gdb for #include files.

I'm guessing there is some ordering problem.  In any case I can report  
that copying the #define des_ks_struct from krb.h to openssl/des_old.h  
fixes it on 1.3rc1.  There are still some redefinition messages  
concerning des_quad_cksum though.

For 1.2.2 the same change seems to eliminate any obvious build  
problems.  I don't propose this as a real, permanent solution, but it  
must indicate something about where the problem is.

% diff -c *old*
*** des_old.h   Tue Jul 13 12:22:12 2004
--- des_old.h.orig      Tue Jul 13 11:56:34 2004
***************
*** 127,136 ****
   		} ks;
   	} _ossl_old_des_key_schedule[16];

- #ifdef OPENSSL_DES_LIBDES_COMPATIBILITY
- #define des_ks_struct _ossl_old_des_ks_struct
- #endif
-
   #ifndef OPENSSL_DES_LIBDES_COMPATIBILITY
   #define des_cblock DES_cblock
   #define const_des_cblock const_DES_cblock
--- 127,132 ----

On Jul 13, 2004, at 1:46 AM, Henry B. Hotz wrote:

> It looks as if kth-krb-1.3 is intended to address OpenSSL 0.9.7  
> compatability, but in fact I get the same compile error as with  
> kth-krb-1.2.2 on this point.
>
> Openssl
>> setenv LDFLAGS "-R/usr/heimdal/lib -L/usr/heimdal/lib"
>> ./Configure --prefix=/usr/heimdal --openssldir=/usr/heimdal -DDES_PTR  
>> -DOPENSSL_DES_LIBDES_COMPATIBILITY -L/usr/heimdal/lib  
>> -R/usr/heimdal/lib solaris-sparcv9-gcc
>
> There is another OpenSSL installed in /usr/local, but that does not  
> appear to be the problem.  I can remove it's include files and there  
> is no change;  also the include files listed appear to be the  
> /usr/heimdal versions.
>
> KTH-krb
>> setenv LDFLAGS "-R/usr/athena/lib:/usr/heimdal/lib  
>> -L/usr/athena/lib:/usr/heimdal/lib"
>> ./configure CFLAGS=-DOPENSSL_DES_LIBDES_COMPATIBILITY  
>> --without-hesiod --without-readline --with-openssl  
>> --with-openssl-lib=/usr/heimdal/lib  
>> --with-openssl-include=/usr/heimdal/include --without-ipv6
>
>
>> /bin/bash ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.  
>> -I../../include  -I../../include -I../../lib/roken -I../../lib/roken  
>> -DROKEN_RENAME -I/usr/heimdal/include -DDES_QUAD_CKSUM_BROKEN=1    
>> -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast  
>> -Wmissing-declarations -Wnested-externs  
>> -DOPENSSL_DES_LIBDES_COMPATIBILITY -c -o kntoln.lo `test -f  
>> 'kntoln.c' || echo './'`kntoln.c
>> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include  
>> -I../../lib/roken -I../../lib/roken -DROKEN_RENAME  
>> -I/usr/heimdal/include -DDES_QUAD_CKSUM_BROKEN=1 -Wall  
>> -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast  
>> -Wmissing-declarations -Wnested-externs  
>> -DOPENSSL_DES_LIBDES_COMPATIBILITY -c kntoln.c -o kntoln.o
>> In file included from ./krb.h:364,
>>                  from krb_locl.h:126,
>>                  from kntoln.c:48:
>> ./krb-protos.h:175: warning: "struct des_ks_struct" declared inside  
>> parameter list
>> ./krb-protos.h:175: warning: its scope is only this definition or  
>> declaration, which is probably not what you want
>> ./krb-protos.h:456: warning: "struct des_ks_struct" declared inside  
>> parameter list
>> ./krb-protos.h:540: warning: "struct des_ks_struct" declared inside  
>> parameter list
>> ./krb-protos.h:576: warning: "struct des_ks_struct" declared inside  
>> parameter list
>> ./krb-protos.h:590: warning: "struct des_ks_struct" declared inside  
>> parameter list
>> In file included from kntoln.c:48:
>> krb_locl.h:170:1: warning: "des_quad_cksum" redefined
>> In file included from /usr/heimdal/include/openssl/des.h:101,
>>                  from ./krb.h:60,
>>                  from krb_locl.h:126,
>>                  from kntoln.c:48:
>> /usr/heimdal/include/openssl/des_old.h:287:1: warning: this is the  
>> location of the previous definition
>> /bin/bash ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.  
>> -I../../include  -I../../include -I../../lib/roken -I../../lib/roken  
>> -DROKEN_RENAME -I/usr/heimdal/include -DDES_QUAD_CKSUM_BROKEN=1    
>> -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast  
>> -Wmissing-declarations -Wnested-externs  
>> -DOPENSSL_DES_LIBDES_COMPATIBILITY -c -o krb_check_auth.lo `test -f  
>> 'krb_check_auth.c' || echo './'`krb_check_auth.c
>> gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include  
>> -I../../lib/roken -I../../lib/roken -DROKEN_RENAME  
>> -I/usr/heimdal/include -DDES_QUAD_CKSUM_BROKEN=1 -Wall  
>> -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast  
>> -Wmissing-declarations -Wnested-externs  
>> -DOPENSSL_DES_LIBDES_COMPATIBILITY -c krb_check_auth.c -o  
>> krb_check_auth.o
>> In file included from ./krb.h:364,
>>                  from krb_locl.h:126,
>>                  from krb_check_auth.c:34:
>> ./krb-protos.h:175: warning: "struct des_ks_struct" declared inside  
>> parameter list
>> ./krb-protos.h:175: warning: its scope is only this definition or  
>> declaration, which is probably not what you want
>> ./krb-protos.h:456: warning: "struct des_ks_struct" declared inside  
>> parameter list
>> ./krb-protos.h:540: warning: "struct des_ks_struct" declared inside  
>> parameter list
>> ./krb-protos.h:576: warning: "struct des_ks_struct" declared inside  
>> parameter list
>> ./krb-protos.h:590: warning: "struct des_ks_struct" declared inside  
>> parameter list
>> In file included from krb_check_auth.c:34:
>> krb_locl.h:170:1: warning: "des_quad_cksum" redefined
>> In file included from /usr/heimdal/include/openssl/des.h:101,
>>                  from ./krb.h:60,
>>                  from krb_locl.h:126,
>>                  from krb_check_auth.c:34:
>> /usr/heimdal/include/openssl/des_old.h:287:1: warning: this is the  
>> location of the previous definition
>> krb_check_auth.c:55: warning: "struct des_ks_struct" declared inside  
>> parameter list
>> krb_check_auth.c:56: error: conflicting types for 'krb_check_auth'
>> ./krb-protos.h:175: error: previous declaration of 'krb_check_auth'  
>> was here
>> krb_check_auth.c:56: error: conflicting types for 'krb_check_auth'
>> ./krb-protos.h:175: error: previous declaration of 'krb_check_auth'  
>> was here
>> krb_check_auth.c: In function `krb_check_auth':
>> krb_check_auth.c:61: warning: passing arg 3 of `krb_rd_priv' from  
>> incompatible pointer type
>> *** Error code 1
>> make: Fatal error: Command failed for target `krb_check_auth.lo'
>> Current working directory /var/hotz/dist/krb4-1.3rc1/lib/krb
>> *** Error code 1
>> make: Fatal error: Command failed for target `all-recursive'
>> Current working directory /var/hotz/dist/krb4-1.3rc1/lib
>> *** Error code 1
>> make: Fatal error: Command failed for target `all-recursive'
>> eis-fil-afstest01% pwd
>> /var/hotz/dist/krb4-1.3rc1
>
> ----------------------------------------------------------------------- 
> -----
> The opinions expressed in this message are mine,
> not those of Caltech, JPL, NASA, or the US Government.
> Henry.B.Hotz@jpl.nasa.gov, or hbhotz@oxy.edu
>
>
------------------------------------------------------------------------ 
----
The opinions expressed in this message are mine,
not those of Caltech, JPL, NASA, or the US Government.
Henry.B.Hotz@jpl.nasa.gov, or hbhotz@oxy.edu