Re: [ng-spice] ng-spice 0.1 on SUN


To ng-spice@ieee.ing.uniroma1.it
From Manu Rouat <emmanuel.rouat@wanadoo.fr>
Date Thu, 05 Aug 1999 19:42:35 +0200
Delivered-To mailing list ng-spice@ieee.ing.uniroma1.it
Mailing-List contact ng-spice-help@ieee.ing.uniroma1.it; run by ezmlm
Organization la Guilde
References <Pine.LNX.3.96.990805095311.4588A-100000@ieee.ing.uniroma1.it >
Reply-To ng-spice@ieee.ing.uniroma1.it
Sender rouat@war.wanadoo.com

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: