|
From: Stefan J. <ste...@mu...> - 2003-07-17 08:17:02
|
On Wed, 2003-07-16 at 21:18, Steven Borley wrote: > I would like to report that I have been able to compile and run the > ng-spice part of tclspice 0.2.11 under MacOSX with only some very small > changes. I have not yet tried 0.2.12, or tried the tcl parts at all > (yet). > > tclspice/src/frontend/parser/complete.c > Modified conditional compilation macros for MacOSX > > tclspice/src/spicelib/devices/txl/txlsetup.c > Fixed duplicate declaration of pool_vi_txl > Thanks, I have applied the patches. > > 1. need to run from an X11 terminal shell (I'm using X11 beta 3 freely > available from www.apple.com) > With the tclspice compiled, you can use Tcl/Tk instead. > 2. I need to sun set the SPICE_NO_DATASEG_CHECK environment variable > before running ngspice or it crashes with a Bus error at startup. Attached is the patch to disable this on MacOSX, untested but it should work. > 3. ngspice.idx didn't get installed. I'll add it on my todo list. Many thanks Index: src/frontend/resource.c =================================================================== RCS file: /cvsroot/ngspice/ngspice/ng-spice-rework/src/frontend/resource.c,v retrieving revision 1.1.2.2 diff -u -r1.1.2.2 resource.c --- src/frontend/resource.c 8 May 2003 09:22:18 -0000 1.1.2.2 +++ src/frontend/resource.c 17 Jul 2003 08:13:01 -0000 @@ -32,7 +32,7 @@ void init_rlimits(void) { -#ifndef __MINGW32__ +#if !defined( __MINGW32__) && !defined(__APPLE_CC__) startdata = (char *) baseaddr( ); enddata = sbrk(0); #else @@ -314,7 +314,7 @@ signal(SIGSEGV, (SIGNAL_FUNCTION) fault); /* SysV style */ longjmp(env, 1); } -#ifndef __MINGW32__ +#if !defined(__MINGW32__) && !defined(__APPLE_CC__) static void * baseaddr(void) { -- Stefan Jones <ste...@mu...> Multigig Ltd |