Compiling tcsh 6.06

Compiling tcsh 6.06

Post by Laurent Duperv » Sun, 28 Apr 1996 04:00:00



Hello,

I've tried to compile tcsh 6.06 on Linux 1.3.39 and libc 5.3.9.  Evidently, it
doesn't work.  When I try it from the command line, it comes up fine.  Then,
if I type a command, I never get my propmt back.  Is there a patch somewhere
to fix this?  I am slowly upgrading my system to be ELF-only and it's annoying
not to be able to recompile my main shell.

Thank you for any/all help.

--
Laurent Duperval, B. Sc.  | The opinions expressed herein are my own and
                          | do not represent those of this establishment


BO DIDDELEY'S OBSERVATION ON THE LAW:
   Always take a lawyer with you, and bring another lawyer to watch him.

 
 
 

Compiling tcsh 6.06

Post by Jonathan Kame » Mon, 29 Apr 1996 04:00:00


(Bogus "Distribution: world" removed.)

|> I've tried to compile tcsh 6.06 on Linux 1.3.39 and libc 5.3.9.  Evidently, it
|> doesn't work.

I have been using tcsh 6.06 for a month and a half with no problems.  I'm
using kernel 1.3.x (where 'x' is a recently released version), gcc 2.7.2, libc
5.3.9 (well, as of today, 5.3.12), and ncurses 1.9.8a.  I made the following
changes.  The ones which may be relevant to the problem you're having are the
NLS_CATALOGS change in config/linux and the Imakefile change.  The sh.c change
is necessary only if you're going to install Emacs 19.31 when it comes out, or
if you're currently running one of its release pre-test versions.

--- ./config/linux      1996/03/14 12:47:07     1.1

 /* that gives too long startup delays for me */

-#undef REMOTEHOST
+/* #undef REMOTEHOST */

-#define NLS_CATALOGS
+/* #define NLS_CATALOGS */

 #endif /* _h_config */
--- ./config_f.h        1996/03/14 12:44:27     1.1.1.1

 /*
  * NODOT       Don't put "." in the default path, for security reasons
  */
-#undef NODOT
+#define NODOT

 /*
  * AUTOLOGOUT  tries to determine if it should set autologout depending
  *             on the name of the tty, and environment.
  *             Does not make sense in the modern window systems!
  */
-#define AUTOLOGOUT
+/* #define AUTOLOGOUT */

 /*
  * SUSPENDED   Newer shells say 'Suspended' instead of 'Stopped'.
--- ./Imakefile 1996/03/14 12:43:04     1.1.1.1

 #ifndef ConfigH
 # ifdef UltrixArchitecture
 #  define ConfigH ultrix
+# endif
+
+# ifdef LinuxArchitecture
+#  define ConfigH linux
 # endif

 # ifdef AlphaArchitecture
--- ./sh.c      1996/03/14 12:50:07     1.1

      * set up. But this is not the shell's fault.
      * Also don't edit if $TERM == wm, for when we're running under an ATK app.
      */
+#define HAS_EMACS_VAR() ((tcp = getenv("EMACS")) != NULL && strcmp(tcp, "t") == 0)
+
     if ((tcp = getenv("TERM")) != NULL) {
        set(STRterm, quote(SAVE(tcp)), VAR_READWRITE);
-       editing = (strcmp(tcp, "emacs") != 0 && strcmp(tcp, "wm") != 0);
+       editing = (strcmp(tcp, "emacs") != 0 && strcmp(tcp, "wm") != 0 &&
+                  ((strcmp(tcp, "unknown") != 0 && strcmp(tcp, "dumb") != 0)
+                   || !HAS_EMACS_VAR()));
     }
     else
-       editing = ((tcp = getenv("EMACS")) == NULL || strcmp(tcp, "t") != 0);
+       editing = !HAS_EMACS_VAR();
+
+#undef HAS_EMACS_VAR

     /*
      * The 'edit' variable is either set or unset.  It doesn't

 
 
 

1. Compiling tcsh 6.06 on Solaris 2.6

I just tried compiling it, and I couldn't get it to work.  Does
anyone have any patches, or know where to get a newer version?

Thanks,

-Dave

gcc -Wall -pipe -c -O3 -I. -I..    sh.c
In file included from sh.c:49:
ed.h:210: field `d_ltc' has incomplete type
sh.c: In function `main':
sh.c:179: storage size of `osv' isn't known
sh.c:658: warning: implicit declaration of function `sigvec'
sh.c:953: warning: implicit declaration of function `sigblock'
sh.c:1165: warning: implicit declaration of function `sigsetmask'
sh.c:179: warning: unused variable `osv'
*** Error code 1
make: Fatal error: Command failed for target `sh.o'

--
========================================================================
David Meleedy                           Analog Devices, Inc.

Phone: 617 461 3494                     Norwood, MA  02062-9106  USA

2. S1692DL Tiger 2 unknown PCI bridge :unknown Host bridge :unknown PCI Device

3. Compiling tcsh 6.06 / 1.2.13 / gcc 2.7.0

4. How to send ctrl-C over the socket connection

5. Trouble compiling TCSH 6.06

6. Bad arp replay

7. Compiling tcsh 6.06

8. what soundcard for audio production?

9. Tcsh 6.06: Ctrl-C does not exit login script

10. tcsh 6.06 on solaris 2.5.1

11. HELP! Where to get TCSH 6.06?

12. Anyone got tcsh 6.06 working under HPUX 10.01 ?

13. TCSH Version Still 6.06?