Damien Miller
2001-Mar-06 23:50 UTC
Problem compiling openssh on Solaris 2.6 with AFS-krb4 (fwd)
-- | Damien Miller <djm at mindrot.org> \ ``E-mail attachments are the poor man's | http://www.mindrot.org / distributed filesystem'' - Dan Geer ---------- Forwarded message ---------- Date: Tue, 6 Mar 2001 22:28:52 +0100 (MET) From: "[iso-8859-2] Martin MOKREJ?" <mmokrejs at natur.cuni.cz> To: openssh at openssh.com Subject: Re: Problem compiling openssh on Solaris 2.6 with AFS-krb4 (fwd) Hello, people even using openssh-2.5.1p2 ask me for this patch, is it possible to implement some part of it into the main source tree? Date: Tue, 06 Mar 2001 12:53:55 -0800 From: Heide Li <hli at mail2a.jpl.nasa.gov> To: mmokrejs at natur.cuni.cz Subject: openssh on Solaris 2.6 with AFS-krb4 Hello, I saw your post on openssh-unix-dev regarding compilation problems w/ openssh. Did you ever find a solution? I'm getting the same errors (conflicts with typedefs in ktypes.h and then the probs w/ send_afs_tokens). Any tips would be much appreciated. I'm using: openssh-2.5.1p2 openssl-0.9.6 krb4-1.0.6 Solaris 2.6 -- Martin Mokrejs - PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs <mmokrejs at natur.cuni.cz> Faculty of Science, The Charles University ---------- Forwarded message ---------- Date: 08 Feb 2001 09:22:04 +0100 From: Jan IVEN <Jan.Iven at cern.ch> To: Martin MOKREJ? <mmokrejs at natur.cuni.cz> Cc: openssh at openssh.com Subject: Re: Problem compiling openssh on Solaris 2.6 with AFS-krb4>>>>> "MM" == Martin MOKREJ? <mmokrejs at natur.cuni.cz> writes:MM> Heelo, MM> I'm trying to copmpile openssh-2.3.0p1 against KTH-KRB MM> dist. (ftp.pdc.kth.se/pub/krb/src) of kerberosIV and AFS 3.6. However, I MM> get two errors: MM> 1. redifinition of types, conflicting with krb.h (which #includes MM> ktypes.h) - removing temporarily the u_int code from ktypes.h helped MM> 2. send_afs_tokens() - in the sshconnect1.c show both problems, although MM> the redefinition problems occured at the early beginning of compilation. MM> Are there any patches available? MM> TIA See below. MM> $ uname -a MM> SunOS pf-i400 5.6 Generic_105181-23 sun4u sparc MM> $ gcc -v MM> Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/specs MM> gcc version 2.8.1 MM> $ MM> /usr/local/bin/gcc -I/usr/athena/include -L/usr/athena/lib MM> -I/usr/local/include -L/usr/local/lib -I/software/@sys/usr/local/include MM> -L/software/@sys/usr/local/lib -Wall -I. -I. -I/usr/local/include MM> -I/software/@sys/usr/local/include -I/usr/athena/include MM> -I/usr/afsws/include MM> -DETCDIR=\"/usr/local/etc\" -DSSH_PROGRAM=\"/usr/local/bin/ssh\" -DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass\" -DHAVE_CONFIG_H MM> -c sshconnect1.c -o sshconnect1.o MM> In file included from /usr/athena/include/krb.h:17, MM> from ssh.h:523, MM> from sshconnect1.c:25: MM> /usr/athena/include/ktypes.h:14: redefinition of `u_int8_t' MM> defines.h:142: `u_int8_t' previously declared here MM> /usr/athena/include/ktypes.h:15: redefinition of `u_int16_t' MM> defines.h:143: `u_int16_t' previously declared here MM> /usr/athena/include/ktypes.h:16: redefinition of `u_int32_t' MM> defines.h:144: `u_int32_t' previously declared here --- openssh-SNAP-20001016.orig/defines.h Fri Sep 29 14:01:36 2000 +++ openssh-SNAP-20001016.patched/defines.h Thu Oct 19 11:17:57 2000 @@ -160,6 +160,7 @@ # error "32 bit int type not found." # endif # endif +#define __BIT_TYPES_DEFINED__ #endif /* 64-bit types */ MM> sshconnect1.c: In function `send_afs_tokens': MM> sshconnect1.c:543: warning: implicit declaration of function `_IOW' MM> sshconnect1.c:543: parse error before `struct' MM> make: *** [sshconnect1.o] Error 1 --- 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 */ Best regards Jan