RE: [ng-spice-devel] ng-spice-rework14-pre2 on solaris
I too have been fighting with ngspice compilation on
Solaris. I'm using Solaris 8, which like the other
Solarises doesn't come with getopt or asprintf.
However, I had to install the GNU binutils, and that
came with libiberty, which contains the right functions.
It didn't install all the headers, but I did that myself.
So I finally got it to compile, but now I get segfaults
at the end of every run. The gdb tool tells me it's
failing in the exit() function within the shutdown function
in main.c, i.e. at the very end of the run.
Anybody ever seen a problem like that before ?
I'm having trouble at home, too, where I installed a 20gig
hard drive on my laptop. After reinstalling Caldera, and
recompiling ngspice, my simulation times went up dramatically,
and the number of timepoints is different from before.
Since I've got more disk space now, I've got a much bigger
Linux installation, so I can only assume that some library
is different from before, or something.
Anyway, I though "stuff this", and went for Mandrake 7.2,
since I now had the disk space to play with Gnome as well
as KDE. (Gnome crashed on my first logout, so I don't
think I'll be playing with it much more). So now I can't
even compile ngspice !! I keep ending up with unresolved
get_device_info symbols, which is something I'd seen before
if I tried --disable-shared with configure, and some other
options.
Anybody else got it working on Mandrake 7.2 (development
workstation installation) ?
Cheers,
Alan
> -----Original Message-----
> From: mcmahill@mtl.mit.edu [mailto:mcmahill@mtl.mit.edu]
> Sent: 11 March 2001 22:12
> To: ng-spice-devel@ieee.ing.uniroma1.it
> Subject: [ng-spice-devel] ng-spice-rework14-pre2 on solaris
>
>
>
>
> Hi!
>
> I spent a week at the in-laws and took the opportunity to get ng-spice
> going on a solaris laptop I'd drug along.
>
> On solaris-2.5.1/x86 using gcc 2.8.1, the following
> changes were needed:
>
> the configure check for Xaw failed because you have to link -lXmu
> whenever you link -lXaw. I hacked the configure script to
> just add -lXmu
> when it tested for -lXaw.
>
> solaris was missing getopt.h so I copied getopt.h, getopt.c,
> and getopt1.c
> from GNU into src/. added getopt.o and getopt1.o to the link
> lines for
> ngspice and ngnutmeg. I guess there should be an autoconf
> test for this
> since some systems already have getopt, but others don't.
> I'm not enough
> of an automake expert to know how to do this the right way.
>
> solaris didn't seem to have asprintf so I worked around that. i guess
> either the modified code can be used, or perhaps get a copy
> of asprintf()
> sources from GNU and include those if autoconf determines
> that asprintf
> isn't part of the system. I attached patches for getting rid of
> asprintf().
>
> Sorry this isn't in the form of a much cleaner patch.
>
> -Dan
>
>
>
>
Partial thread listing: