Getting Kermit to run on a 4D

Rodian Paul rpaul at dasys1.UUCP
Sat Jun 4 03:35:42 AEST 1988


Having problems porting kermit to the 4D? Here's a
hack that works TO AN EXTENT.

I was getting core-dumps any time I tried to "connect"
with kermit, and dbx just pointed at fork() as the
culprit. I found out how to get around the problem
but not how to fix it. 

My .kermrc looked like this

	set 	modem 	hayes
	set	line	/dev/ttyd6
	set	speed	1200
	set	flow	none

Take out the line "set flow" and everything worked fine.

The following two files are from the 2000-3000 series
machines and should be placed in the source directory.

You then need to edit the files:	

	ckufio.c 
	ckutio.c

Replace the given lines in both files:

replace line: #include <types.h>
        with: #include "types.h"

replace line: #include <dir.h>
        with: #include "dir.h"

Thanks to frobinso at cirm.northrop.com for help on this one.

Compile with "make sys3nid".

You'll still get compiler warnings but otherwise you'll
have a working version of kermit.

/* ------------------- dir.h ----------------------- */

#ifndef	DIRSIZ
#define	DIRSIZ	14
#endif

#ifndef	__DIR__

#define	__DIR__

struct	direct {
	ino_t	d_ino;
	char	d_name[DIRSIZ];
};
#endif	__DIR__


/* ------------------ types.h ---------------------- */

#ifndef	__TYPES__

#define	__TYPES__

/* generic unsigned data types */
typedef	unsigned short	ushort;
typedef	unsigned int	uint;
typedef	unsigned long	ulong;

/* system data types */
typedef	struct { int r[1]; } *	physadr;
typedef	long		daddr_t;
typedef	long		swblk_t;
typedef	char *		caddr_t;
typedef	ushort		ino_t;
typedef short		cnt_t;
typedef	long		time_t;
typedef	int		label_t[13];
typedef	short		dev_t;
typedef	long		off_t;
typedef	long		paddr_t;
typedef	long		key_t;

/* these are for berkeley compatibility */
typedef	unsigned char	u_char;
typedef	unsigned short	u_short;
typedef	unsigned int	u_int;
typedef	unsigned long	u_long;
typedef	short		size_t;

#endif	__TYPES__



More information about the Comp.sys.sgi mailing list