Re: [ng-spice] ng-spice 0.1 on SUN
Paolo Nenzi wrote:
>
> Hi all,
>
> I have compiled ng-spice 0.1 on a Solaris (SPARC) with gcc. Manu, your
> scripts works quite well, but they should include -lX11 and -lXt (I have
> added them manually in the /src/bin Makefile). For some reason they are
> not included in the LIBS environment variable and including them inX_LIBS
> does not work.
fixed - it is in fact strange that it worked on my machine before!
>
> Another couple of changes are required:
>
> 1) in src/lib/mfb/mfbgnc.c
> There is a problem with ftime function:
>
> Original Code: Fixed code:
>
> /* Library routines */ /* Library routines */
> #ifndef linux #ifndef linux
> #ifdef HAS_FTIME #ifdef HAS_FTIME
> extern void ftime(); /* extern void ftime(); */
> #endif #endif
> #endif #endif
>
> This is not a "fix", only a kludge.
There are a few autoconf macros that test for the 'times' functions - I will
try
to use them to make a general configuration.
>
> The code from the /usr/include/sys/timeb.h file is:
>
> #if defined(__STDC__)
> extern int ftime(struct timeb *);
> #else
> extern int ftime();
> #endif
>
> 2) in src/include/misc.h
>
> I had to comment the definition of extern int getpid(); this type in in
> conflict with the definition in /usr/include/unistd.h
>
> I suggest to transfer all externals in a common .h file to avoid this kind
> of problems. What do you think ?
There are also autoconf macros to test this , but it will take some time
before
everything is tested fully.
This is precisely what I'm working on , but it is not trivial :-)
manu
Partial thread listing: