home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / 3b1 / 4374 < prev    next >
Encoding:
Text File  |  1993-01-24  |  2.9 KB  |  64 lines

  1. Newsgroups: comp.sys.3b1
  2. Path: sparky!uunet!ceilidh!dnichols
  3. From: dnichols@d-and-d.com (DoN. Nichols)
  4. Subject: Re: Problem with sc (spreadsheet calculator)
  5. Message-ID: <1993Jan23.201812.8708@d-and-d.com>
  6. Keywords: sc
  7. Sender: usenet@d-and-d.com (Usenet)
  8. Nntp-Posting-Host: shindig
  9. Organization: D and D Data, Vienna VA
  10. References: <1jmv4iINNdur@jhunix.hcf.jhu.edu>
  11. Distribution: usa
  12. Date: Sat, 23 Jan 1993 20:18:12 GMT
  13. Lines: 49
  14.  
  15. In article <1jmv4iINNdur@jhunix.hcf.jhu.edu> jmartino@jhunix.hcf.jhu.edu (James R Martino) writes:
  16. >
  17. >The binary (sc) supplied with sc6.8.cpio.Z from osu.cis does not seem to 
  18. >support the unixpc arrow keys - they move around well enough without any
  19. >data entered, but after a few cells are full, using arrow keys will
  20. >eventually result in catatonia, a "Memory error" and a core dump.
  21. >
  22. >I thought it might be nice to enable the arrow keys or the numeric
  23. >keypad to work with the unixpc, and have been studying the lex.c file.
  24. >Before messing with the code, however, I tried to see if I could build
  25. >the binary myself, using cc and gcc (and the Makefile), but found that
  26. >there are problems referencing functions - looks like missing or
  27. >incomplete libraries or headers. Some problems can be worked around,
  28. >but I can't deal with missing functions like tgetent, etc.
  29.  
  30.     Tgetent (and the other termcap functions) are in the shared lib, but
  31. not in the static lib (/lib/libc.a), so your choices are to build with the
  32. shared libs (some switch to gcc such as -shlib or -sharedlib to do this), or
  33. to get the source to the termcap library.  (looking in my /usr/lib I find a
  34. libtermcap.a, but no clue as to how I got it there.  Perhaps it came with
  35. the development system, perhaps I extracted it from shlib following someone
  36. else's posted advice, I don't remember.
  37.  
  38. >Does anyone know how the sc binary on osu-cis was built? Was it done
  39. >on a unixpc? Was it done defining SIMPLE? Has anyone built this on the
  40. >unixpc? What kind of can of worms am I opening here? And what about Naomi...
  41.  
  42.     I have built sc on the 3b1, but it is sc version 6.15, so I suspect
  43. that you have an older version.  I have also built it on the Suns I have,
  44. and I had to compile it in the SysV universe to make it easy to compile, so
  45. you should have no real problems once past the termcap stuff.  (Almost
  46. everything in the termcap lib is in a single module, termcap.o The others
  47. are tgoto.o and tputs.o.)
  48.  
  49. >Note: Two other methods of moving the cursor (h,j,k,l and ^P,^B,^F,^N) work
  50. >fine: I just thought I'd hack some improvements if it weren't too difficult.
  51.  
  52.     It also may depend on the entry in your /etc/termcap being up to
  53. date.  There was an improved entry posted a couple of years ago.  You also
  54. may need to upgrade your terminfo database for the 3b1.
  55.  
  56.     Good Luck
  57.         DoN.
  58.  
  59. -- 
  60.  Email:   <dnichols@d-and-d.com>  |  ...!uunet!ceilidh!dnichols 
  61.          <dnichols@ceilidh.beartrack.com>
  62.  Donald Nichols (DoN.)  |   Voice (Days): (703) 704-2280 (Eves): (703) 938-4564
  63.     --- Black Holes are where God is dividing by zero ---
  64.