RS/6000 gopher 1.03 client Enter key problem

RS/6000 gopher 1.03 client Enter key problem

Post by Charles Hann » Fri, 09 Oct 1992 21:51:30




Quote: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:


        * 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)

  clean:
        rm -f $(OBJS) *.out *~ core $(TARGET)
--- 12,26 ----
  all : $(TARGET)

  .c.o:
!       $(CC) $(CFLAGS) -c $<

  mindexd.h : mindexd.c

  $(TARGET) : $(OBJS)

+
+ 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 ----

        (cd gopher; $(MAKE) $(MFLAGS))

+ mindexd/mindexd: objects

+       (cd mindexd; $(MAKE) $(MFLAGS))
+
  object/libgopher.a:

        (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<-----

--

 /\ \   PGP public key available on request.
Scheme  White hetero* atheist male (WHAM) pride!

 
 
 

RS/6000 gopher 1.03 client Enter key problem

Post by Rob van Leeuw » Wed, 28 Oct 1992 18:04:09




>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?

I commented out the #define SYSVCURSES in CURcurses.h, and that helped.
--

--
Rob van Leeuwen
Department of Psychology, Vrije Universiteit, Amsterdam, the Netherlands

 
 
 

RS/6000 gopher 1.03 client Enter key problem

Post by Daniel S. Lewa » Tue, 03 Nov 1992 15:28:26



Quote:> I commented out the #define SYSVCURSES in CURcurses.h, and that helped.

Yes, this worked!  I think this should be done automatically or at least
mentioned in the documentation.

Thank you,
Daniel Lewart

 
 
 

RS/6000 gopher 1.03 client Enter key problem

Post by Paul Lindn » Wed, 04 Nov 1992 02:13:28




>> I commented out the #define SYSVCURSES in CURcurses.h, and that helped.
>Yes, this worked!  I think this should be done automatically or at least
>mentioned in the documentation.

Hmmmm, then it seems that the curses library on the RS/6000 is not
functional.   I *think* this is only a problem on AIXterms...  AIXterm
is grody, use xterm instead.

We've used an rs/6000 for our primary dumb terminal access for some
time now and it works great, perhaps it's an old version of AIX...

--

 |              | Computer & Information Services | is good for the sake
 | Gophermaster | University of Minnesota         | of comparision.
///// / / /    /////// / / / /  /  /  /   /      //// / / / /  /  /  /   /

 
 
 

RS/6000 gopher 1.03 client Enter key problem

Post by Rob van Leeuw » Wed, 04 Nov 1992 04:33:05





>>> I commented out the #define SYSVCURSES in CURcurses.h, and that helped.
>>Yes, this worked!  I think this should be done automatically or at least
>>mentioned in the documentation.
>Hmmmm, then it seems that the curses library on the RS/6000 is not
>functional.   I *think* this is only a problem on AIXterms...  AIXterm
>is grody, use xterm instead.

Well, as a matter of fact I did.  Xterm, that came with X11R5.
--

--
Rob van Leeuwen
Department of Psychology, Vrije Universiteit, Amsterdam, the Netherlands

 
 
 

RS/6000 gopher 1.03 client Enter key problem

Post by Dennis Boo » Thu, 05 Nov 1992 03:47:04



Quote:>Hmmmm, then it seems that the curses library on the RS/6000 is not
>functional.   I *think* this is only a problem on AIXterms...  AIXterm
>is grody, use xterm instead.

>We've used an rs/6000 for our primary dumb terminal access for some
>time now and it works great, perhaps it's an old version of AIX...

I had the problem building for my system.  I've got 3.2.0, which is relatively
current.  I switched the order of -lcurses and -ltermcap in the CLIENTLIBS=
statement in Makefile.config and it started working.  What I got before this
fix was a strange all-caps skewed screen and a locked up process.  I didn't
have this problem building under 3.1.5.

X-swindles has never been NEAR this machine.

Dennis
--
= There is no monopoly on common sense, on either side of the political fence =