Compile problem and fix
Karsten Thygesen
karthy at SunSITE.dk
Fri Dec 1 23:47:33 EST 2000
Hi
I use openssh-2.3.0p1 on Solaris-7, KTH-krb4-1.0.3, TransArc-AFS-3.6
# ../openssh-2.3.0p1/configure --prefix=/afs/eos.dk/sw/pack/openssh-2.3.0p1 --with-kerberos4=/afs/eos.dk/sw/pack/krb4-1.0.3 --with-afs --with-ssl-dir=/afs/eos.dk/sw/pack/openssl-0.9.6
To make it compile, I have to add the patch below to make
sshconnect1.c line 546 compile. It states:
void
send_afs_tokens(void)
{
CREDENTIALS creds;
struct ViceIoctl parms;
struct ClearToken ct;
int i, type, len, plen;
char buf[2048], *p, *server_cell;
char buffer[8192];
/* Move over ktc_GetToken, here's something leaner. */
for (i = 0; i < 100; i++) { /* just in case */
parms.in = (char *) &i;
parms.in_size = sizeof(i);
parms.out = buf;
parms.out_size = sizeof(buf);
---> if (k_pioctl(0, VIOCGETTOK, &parms, 0) != 0)
break;
p = buf;
The ViceIoctl is defined in transarc's AFS headers, but we need a few
include files to make it complete:
======================================================================
*** sshconnect1.c~ Tue May 9 03:03:03 2000
--- sshconnect1.c Wed May 10 16:38:51 2000
***************
*** 16,21 ****
--- 16,24 ----
#include <openssl/rsa.h>
#include <openssl/evp.h>
+ #include <sys/ioctl.h>
+ #include <sys/ioccom.h>
+
#include "xmalloc.h"
#include "rsa.h"
#include "ssh.h"
======================================================================
Karsten
More information about the openssh-unix-dev
mailing list