Re: Modules and Linux
Manage your shell environment variables and aliases
Brought to you by:
leomania,
xdelaruelle
From: Istvan M. <im...@pa...> - 1999-03-29 21:27:43
|
sve...@gm... (Sven Utcke) writes: > Hi, > > I've been trying to compile Modules 2.2 on Linux (SuSE 6.0), but > without much success (modulecmd exits with segmentation-fault). I > have sofar compiled Modules on AIX 4.1, AIX 4.2, IRIX 6.3 and some > SUN-system I forgot about, all succesfully (albeit with some minot > problems, mostly with regards to the correct tcl-version). Has > anybody succesfully compiled modules on Linux? Any advise? > > I'm linking against tcl 7.6p6 We have seen similar problems on glibc based Linux systems, it turned out to be a bug in error.c. Try the patch below, it's against version 3.0beta1 so you might have to apply it manually. We are using Modules-3.0BETA1 plus some local patches on Linux, Solaris, SunOS-4, HPUX-9 and 10. Tcl version is 8.0. I have a few more patches that fix some smaller bugs, let me know if you would like them. RCS file: /home/istvan/CVS/modules/error.c,v retrieving revision 1.1.1.1 retrieving revision 1.3 diff -u -r1.1.1.1 -r1.3 --- error.c 1998/11/25 06:23:37 1.1.1.1 +++ error.c 1999/01/06 22:43:33 1.3 @@ -894,7 +894,7 @@ ** for every single facility **/ - for( fac = strtok( facilities, ":"); + for( fac = strtok( strdup( facilities ), ":"); fac; fac = strtok( (char *) NULL, ":") ) { -- Istvan |