RE: [ng-spice] Which GNU tool contain asprintf.c
I found asprintf() in the "liberty" library, which
I think came with the gcc compiler. But the header file
didn't, so I had to track that down somewhere. I think
the getopt() stuff is in there as well, and the getopt_long
problem went away when I got that sorted.
Sorry, I can't remember where I found it, but at least
this might give you an idea of what to look for.
Actually, I just had a wee look, and hopefully you're
familier with the Unix "geekdom" way of naming things,
'cos the library is actually "libiberty.a", so that
they can put a "-liberty" option in the gcc command
line. (That sort of gobbledigook seems to make Unix
hackers feel warm all over, or something... I don't
pretend to understand). There seems to be multiple
header files for the library, or at least the ones I
found were multiple, in that "libiberty.h" contains
the asprintf() stuff, and another "getopt.h" contains
the getopt() stuff, although that is in the libiberty
library.
Has that cleared it up ;-) Dontya luv C ?
Cheers,
Alan
> -----Original Message-----
> From: Kim Sungbak [mailto:noise@hynix.com]
> Sent: 26 October 2001 04:50
> To: ng-spice@ieee.ing.uniroma1.it
> Subject: [ng-spice] Which GNU tool contain asprintf.c
>
>
> I tried to install NG-SPICE on Sparc Solaris 7 with gcc-2.95.3.
> At home page, instructions like "copy getopt.h getopt.c ..
> etc. to misc
> directive" is performed. And getopt.* are found GNU tool as like
> gettext, gmake. but asprintf.c is not found any GNU tools .
> Which GNU tool contain asprintf.c ?
>
> I worked with ng-spice-rework 12, ng-spice-rework13, ng-spice-14.x
> I succeed "make" in each directive independently, but It always
> has error messages like below on "ng-spice-rework/src" directive.
> I always fail with "make" on "ng-spice-rework/src directive".
>
> "
> ld: warning: symbol `Spice_Version' has differing sizes:
> (file conf.o value=0x3; file ngspice.o value=0x1);
> conf.o definition taken
> ld: warning: symbol `Spice_Notice' has differing sizes:
> (file conf.o value=0x41; file ngspice.o value=0x1);
> conf.o definition taken
> ld: warning: symbol `Spice_Build_Date' has differing sizes:
> (file conf.o value=0x1d; file ngspice.o value=0x1);
> conf.o definition taken
> ld: warning: file spicelib/devices/ccvs/.libs/libccvs.so:
> attempted multiple
> inclusion of file
> Undefined first referenced
> symbol in file
> asprintf spice.o
> getopt_long spice.o
> ld: fatal: Symbol referencing errors. No output written to
> .libs/ngspice
> collect2: ld returned 1 exit status
> make[3]: *** [ngspice] Error 1
> make[3]: Leaving directory `/ng-spice-rework/src'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/ng-spice-rework/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/ng-spice-rework'
> make: *** [all-recursive-am] Error 2 "
>
> Have Error messages any interrelation with asprintf.c ?
>
>
Partial thread listing: