[mod.computers.ridge] 4.2 Executables on the Ridge.

fjn@PURDUE.EDU (Francie Newbery) (05/22/86)

We have a Ridge/32 running ROS 3.3.  We have recently begun installing
network related programs using  the /usr/4.2/* files that Ridge provided.
The two programs that I have been attempting to install are the 4.2 Berkeley
lpr spooling system and the 4.2 Berkely talk program.  I am encountering
problems with both of these.

I compile the programs using:
	cc -c -I/usr/4.2/include	and
	ld -V 5 /usr/4.2/lib/crt0.o *.o /usr/4.2/lib/libc.a

1. The call 
		socket(AF_UNIX,SOCK_STREAM,0);
always fails returning an errno of 5 (I/O error).  Replacing domain AF_UNIX
with AF_INET works, but I want to use the AF_UNIX domain.  Is there perhaps
something else I need to define in order to use the AF_UNIX domain?  

2. The call
		open(path,O_WRONLY|O_CREAT,0644); 
fails.  But the call
		creat(path,0644);
works fine.  Does the /usr/4.2/lib/libc.a not support open with the O_CREAT
option?

3. The curses.h file seems to be essentially missing from /usr/4.2/include.
There is only a one line comment in the file stating that this is version 
1.3 of curses.h.  I have been using the one from /usr/include/curses.h 
(version 1.2).  Does anyone know if this might cause problems?  Is there 
anything in the newer curses.h (which I don't have) that might be 
required for a 4.2 program to work correctly.

Has anyone gotten an program that uses curses (such as talk) to work?
When I try to run talk, it gets as far as calling "initscr()" which is
a curses procedure which must be called to set everything up to use curses.
As soon as it gets to the initscr(), it dumps garbage on my screen and hangs
the terminal.  The garbage seems to be from the data section of libc.a because
it prints a screen full of all the possible network related errors.  Any
guesses as to what might cause this?

If anyone has any suggestions about these problems, I would appreciate
hearing from you.

Thanks,
Francie Newbery
Facilities Staff
Purdue University CS dept.