ng-spice 0.1 on SUN
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.
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.
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 ?
Paolo
Partial thread listing: