openssh 2.9p1 on Solaris 2.6 with AFS

David R Boldt dboldt at usgs.gov
Tue Jul 17 02:55:10 EST 2001


Jan,

maybe I should check the /afs information that you pointed me at
in a subsequent email first, but I wanted to update you on what
happened following this path:

I did get some mileage out of both of your suggestions below,
but still did not make it through (now working with openssh-2.9p2):

gcc -o ssh ssh.o sshconnect.o sshconnect1.o sshconnect2.o sshtty.o
readconf.o clientloop.o -L. -Lopenbsd-compat/ -R/usr/local/ssl/lib
-L/usr/local/ssl/lib  -L/usr/local/lib -R/usr/local/lib -L/usr/athena/lib
-R/usr/athena/lib -L/usr/afsws/lib -lssh -lopenbsd-compat -lkafs -lresolv
-ldes -lkrb -lpam -ldl -lwrap -lz -lsocket -lnsl  -lgen -lcrypto -ldes
/usr/local/ssl/lib/libcrypto.a(set_key.o): In function
`des_check_key_parity':
set_key.o(.text+0x380): multiple definition of `des_check_key_parity'
/usr/local/lib/libdes.a(key_parity.o)(.text+0x98): first defined here
/usr/local/sparc-sun-solaris2.6/bin/ld: Warning: size of symbol
`des_check_key_parity' changed from 180 to 88 in set_key.o
/usr/local/ssl/lib/libcrypto.a(set_key.o): In function `des_is_weak_key':
set_key.o(.text+0x3e0): multiple definition of `des_is_weak_key'
/usr/local/lib/libdes.a(weak_key.o)(.text+0x10): first defined here
/usr/local/sparc-sun-solaris2.6/bin/ld: Warning: size of symbol
`des_is_weak_key' changed from 192 to 96 in set_key.o
/usr/local/ssl/lib/libcrypto.a(set_key.o): In function `des_key_sched':
set_key.o(.text+0x4a0): multiple definition of `des_key_sched'
/usr/local/lib/libdes.a(key_sched.o)(.text+0x10): first defined here
/usr/local/sparc-sun-solaris2.6/bin/ld: Warning: size of symbol
`des_key_sched' changed from 336 to 80 in set_key.o
/usr/local/ssl/lib/libcrypto.a(set_key.o): In function
`des_fixup_key_parity':
set_key.o(.text+0x5e0): multiple definition of `des_fixup_key_parity'
/usr/local/lib/libdes.a(key_parity.o)(.text+0x10): first defined here
/usr/local/sparc-sun-solaris2.6/bin/ld: Warning: size of symbol
`des_fixup_key_parity' changed from 120 to 72 in set_key.o
gmake: *** [ssh] Error 1



                                          -- David Boldt
                                             <dboldt at usgs.gov>



                                                                                     
                    Jan IVEN                                                         
                    <Jan.Iven at cer        To:     "David R Boldt" <dboldt at usgs.gov>   
                    n.ch>                cc:     openssh at openssh.com                 
                                         Subject:     Re: openssh 2.9p1 on Solaris   
                    05/18/01             2.6 with AFS                                
                    03:13 AM                                                         
                                                                                     
                                                                                     



>>>>> "DRB" == David R Boldt <David> writes:

 DRB> Jan,

 DRB> here is the new patch:

thanks. Maybe somebody will apply this to openssh cvs?


 DRB> alas I am still running amiss:

 DRB> In file included from /usr/athena/include/krb.h:50,
 DRB> from sshconnect1.c:22:
 DRB> /usr/local/include/des.h:24: warning: redefinition of `des_cblock'
 DRB> /usr/local/ssl/include/openssl/des.h:77: warning: `des_cblock'
previously
 DRB> declared here
 DRB> /usr/local/include/des.h:26: redefinition of `struct des_ks_struct'
 DRB> /usr/local/include/des.h:26: warning: redefinition of
`des_key_schedule'
 DRB> /usr/local/ssl/include/openssl/des.h:91: warning: `des_key_schedule'
 DRB> previously declared here
 DRB> /usr/local/include/des.h:54: conflicting types for `bit_64'
 DRB> /usr/local/ssl/include/openssl/des.h:259: previous declaration of
`bit_64'

Try to fiddle around with your include path, you probably don't want
/usr/local/include to be in there.

 DRB> sshconnect1.c: In function `send_afs_tokens':
 DRB> sshconnect1.c:560: warning: implicit declaration of function `_IOW'
 DRB> sshconnect1.c:560: parse error before `struct'
 DRB> gmake: *** [sshconnect1.o] Error 1

patch to your krb-1.0.? installed include/kafs.h on Solaris:

--- kafs.h~     Tue Dec 12 15:53:47 2000
+++ kafs.h      Fri Dec 15 12:22:05 2000
@@ -36,6 +36,9 @@
 #ifndef __KAFS_H
 #define __KAFS_H

+/* need _IOW on Solaris , 15.12.00 JI */
+#include <sys/ioccom.h>
+
 /* XXX must include krb5.h or krb.h */

 /* sys/ioctl.h must be included manually before kafs.h */













More information about the openssh-unix-dev mailing list