From: mycroft@hal.gnu.ai.mit.edu (Charles Hannum)
Subject: Re: RS/6000 gopher 1.03 client Enter key problem
Organization: /etc/organization
Date: Thu, 8 Oct 1992 12:51:30 GMT


In article <BvCqBr.A1A@news.cso.uiuc.edu> d-lewart@uiuc.edu (Daniel S.
Lewart) writes:
>
> I have installed the `gopher' 1.03 client on an IBM RS/6000 running
> AIX 3.1.5 with X11R5.  When I run `gopher' from an `xterm', it beeps
> when I press the `Enter' key, but it works when I press Ctrl-J.
>
> [...]
>
> Has anyone got this working in an AIX xterm?

It's been working fine for me for over 3 weeks.

Note that I use AIX 3.2.1 + XLC 1.2.0.12.  Your milage will vary.

These are the changes I made when building the package.  None of them
are relevant to your problem, but here they are anyway:


Tue Sep 15 00:37:52 1992  Charles Hannum  (mycroft@hal.gnu.ai.mit.edu)

	* object/boolean.h (boolean): #undef first in case we're building
	with WAIS (which has already #defined it).

	* mindexd/Makefile (CCFLAGS): Removed.
	(.c.o): Use CFLAGS, not CCFLAGS.
	(install): New target.

	* mindexd/daemon.c (sig_child): Use `int', not `union wait'.

	* Makefile.config (CLIENTLIBS, SERVERLIBS): Use explicit path to
	libobject.a.
	(LDFLAGS): Don't -L a relative path.

	* Makefile (fanout, mindexd/mindexd): New targets.
	(all): Build `fanout'.
	(install): Install in `mindexd'.

-----8<-----snip-----8<-----snip-----8<-----snip-----8<-----snip-----8<-----
*** object/boolean.h.orig	Wed Apr 29 14:59:52 1992
--- object/boolean.h	Tue Sep 15 00:23:02 1992
***************
*** 5,10 ****
--- 5,11 ----
  #ifndef BOOLEAN_H
  #define BOOLEAN_H
  
+ #undef boolean
  typedef int boolean;
  typedef int BOOLEAN;
  
*** mindexd/Makefile.orig	Wed Sep  2 17:19:56 1992
--- mindexd/Makefile	Tue Sep 15 00:36:14 1992
***************
*** 6,12 ****
  # NeXT needs -bsd
  #
  
- CCFLAGS	= -g
  LIBS	= $(SERVERLIBS)
  TARGET	= mindexd
  
--- 6,11 ----
***************
*** 13,24 ****
  all : $(TARGET)
  
  .c.o:
! 	$(CC) $(CCFLAGS) -c $<
  
  mindexd.h : mindexd.c
  
  $(TARGET) : $(OBJS)
  	$(CC) $(CCFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
  
  clean:
  	rm -f $(OBJS) *.out *~ core $(TARGET)
--- 12,26 ----
  all : $(TARGET)
  
  .c.o:
! 	$(CC) $(CFLAGS) -c $<
  
  mindexd.h : mindexd.c
  
  $(TARGET) : $(OBJS)
  	$(CC) $(CCFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
+ 
+ install: all
+ 	install -c $(TARGET) $(SERVERDIR)
  
  clean:
  	rm -f $(OBJS) *.out *~ core $(TARGET)
*** mindexd/daemon.c.orig	Thu Apr  9 18:29:42 1992
--- mindexd/daemon.c	Tue Sep 15 00:33:52 1992
***************
*** 30,36 ****
        */
  
       int pid;
!      union wait  status;
  
       while ( (pid = wait3(&status, WNOHANG, (struct rusage *) 0)) > 0)
  	  ;
--- 30,36 ----
        */
  
       int pid;
!      int  status;
  
       while ( (pid = wait3(&status, WNOHANG, (struct rusage *) 0)) > 0)
  	  ;
*** Makefile.config.orig	Wed Sep  2 16:14:50 1992
--- Makefile.config	Tue Sep 15 00:20:16 1992
***************
*** 85,92 ****
  
  OTHERLIBS	=  $(HPLIBS) $(UMAXLIBS) $(SEQLIBS)
  
! CLIENTLIBS 	= -lcurses -ltermcap -lgopher $(OTHERLIBS)
! SERVERLIBS 	= -lm -lgopher $(OTHERLIBS) $(LOADLIBS)
  
  
  #-----------------------------------------------------------------
--- 85,92 ----
  
  OTHERLIBS	=  $(HPLIBS) $(UMAXLIBS) $(SEQLIBS)
  
! CLIENTLIBS 	= -L/usr/local/lib -lterminfo ../object/libgopher.a $(OTHERLIBS)
! SERVERLIBS 	= -lm ../object/libgopher.a $(OTHERLIBS) $(LOADLIBS)
  
  
  #-----------------------------------------------------------------
***************
*** 128,132 ****
  OTHERINCLUDES	= -I.. -I../ir -I../ui
  INCLUDES	= $(OBJINCLUDES) $(OTHERINCLUDES)
  
! LDFLAGS		= -L../object
  SHELL		= /bin/sh
--- 128,132 ----
  OTHERINCLUDES	= -I.. -I../ir -I../ui
  INCLUDES	= $(OBJINCLUDES) $(OTHERINCLUDES)
  
! LDFLAGS		= -s
  SHELL		= /bin/sh
*** Makefile.orig	Wed Jun 24 20:11:24 1992
--- Makefile	Tue Sep 15 00:31:40 1992
***************
*** 1,8 ****
  include Makefile.config
  
! all: objects server client
  server: gopherd/gopherd
  client: gopher/gopher
  objects: object/libgopher.a
  
  gopherd/gopherd: objects
--- 1,9 ----
  include Makefile.config
  
! all: objects server client fanout
  server: gopherd/gopherd
  client: gopher/gopher
+ fanout: mindexd/mindexd
  objects: object/libgopher.a
  
  gopherd/gopherd: objects
***************
*** 23,28 ****
--- 24,33 ----
  	@echo "Making client"
  	(cd gopher; $(MAKE) $(MFLAGS))
  
+ mindexd/mindexd: objects
+ 	@echo "Making fan-out server"
+ 	(cd mindexd; $(MAKE) $(MFLAGS))
+ 
  object/libgopher.a:
  	@echo "Making Objects"
  	(cd object; $(MAKE) $(MFLAGS))
***************
*** 30,35 ****
--- 35,41 ----
  install:
  	(cd gopher; $(MAKE) $(MFLAGS) install);
  	(cd gopherd; $(MAKE) $(MFLAGS) install);
+ 	(cd mindexd; $(MAKE) $(MFLAGS) install);
  	(cd doc; $(MAKE) install)
  
  clean:
-----8<-----snip-----8<-----snip-----8<-----snip-----8<-----snip-----8<-----

-- 
 \  /   Charles Hannum, mycroft@ai.mit.edu
 /\ \   PGP public key available on request.
Scheme  White heterosexual atheist male (WHAM) pride!
Newsgroups: comp.infosystems.gopher