Martin MOKREJŠ
2001-Feb-05 22:01 UTC
Problem compiling openssh on Solaris 2.6 with AFS-krb4
Heelo, I'm trying to copmpile openssh-2.3.0p1 against KTH-KRB dist. (ftp.pdc.kth.se/pub/krb/src) of kerberosIV and AFS 3.6. However, I get two errors: 1. redifinition of types, conflicting with krb.h (which #includes ktypes.h) - removing temporarily the u_int code from ktypes.h helped 2. send_afs_tokens() - in the sshconnect1.c show both problems, although the redefinition problems occured at the early beginning of compilation. Are there any patches available? TIA $ uname -a SunOS pf-i400 5.6 Generic_105181-23 sun4u sparc $ gcc -v Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/specs gcc version 2.8.1 $ /usr/local/bin/gcc -I/usr/athena/include -L/usr/athena/lib -I/usr/local/include -L/usr/local/lib -I/software/@sys/usr/local/include -L/software/@sys/usr/local/lib -Wall -I. -I. -I/usr/local/include -I/software/@sys/usr/local/include -I/usr/athena/include -I/usr/afsws/include -DETCDIR=\"/usr/local/etc\" -DSSH_PROGRAM=\"/usr/local/bin/ssh\" -DSSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass\" -DHAVE_CONFIG_H -c sshconnect1.c -o sshconnect1.o In file included from /usr/athena/include/krb.h:17, from ssh.h:523, from sshconnect1.c:25: /usr/athena/include/ktypes.h:14: redefinition of `u_int8_t' defines.h:142: `u_int8_t' previously declared here /usr/athena/include/ktypes.h:15: redefinition of `u_int16_t' defines.h:143: `u_int16_t' previously declared here /usr/athena/include/ktypes.h:16: redefinition of `u_int32_t' defines.h:144: `u_int32_t' previously declared here sshconnect1.c: In function `send_afs_tokens': sshconnect1.c:543: warning: implicit declaration of function `_IOW' sshconnect1.c:543: parse error before `struct' make: *** [sshconnect1.o] Error 1 -- Martin Mokrejs - PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs <mmokrejs at natur.cuni.cz> Faculty of Science, The Charles University