ngspice appears to be running into problems on Snow Leopard -- this is noted on the wiki, but without elaboration.

rework-18, the current version in Fink:

/bin/sh ../libtool --tag=CC --mode=link gcc -g -O0 -Wall -L/sw/lib -o ngsconvert ngsconvert.o frontend/libfte.la frontend/parser/ libparser.la maths/misc/libmathmisc.la misc/libmisc.la -lncurses -lm - lreadline gcc -g -O0 -Wall -o ngsconvert ngsconvert.o -L/sw/lib frontend/.libs/ libfte.a frontend/parser/.libs/libparser.a maths/misc/.libs/ libmathmisc.a misc/.libs/libmisc.a -lncurses -lm -lreadline ld: duplicate symbol _out_init in frontend/.libs/libfte.a(terminal.o) and ngsconvert.o
collect2: ld returned 1 exit status
make[3]: *** [ngsconvert] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
### execution of make failed, exit code 2


Okay... so we may as well try rework-19, which appears from a cursory look to have applied the Fink patches against rework-18. That results in:

gcc -g -O0 -Wall -o ngnutmeg main.o conf.o ngnutmeg.o -L/sw/lib frontend/.libs/libfte.a frontend/plotting/.libs/libplotting.a frontend/ parser/.libs/libparser.a frontend/numparam/.libs/libnumparam.a maths/ cmaths/.libs/libcmaths.a maths/misc/.libs/libmathmisc.a maths/ poly/.libs/libpoly.a misc/.libs/libmisc.a spicelib/parser/.libs/ libinp.a -lncurses -lm -lreadline
Undefined symbols:
  "_modtab", referenced from:
      _INPkillMods in libinp.a(inpkmods.o)
      _INPkillMods in libinp.a(inpkmods.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [ngnutmeg] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


nm confirms that the _modtab symbol is in spicelib/parser/.libs/ libinp.a, assuming that I'm reading the output correctly:

.libs/libinp.a(inpmkmod.o):
0000000000000b78 s EH_frame1
0000000000000000 T _INPmakeMod
0000000000000b90 S _INPmakeMod.eh
0000000000000008 C _modtab
                 U _strcmp
                 U _tmalloc

I'd guess that I'm missing something here. Could someone clue me in?

--
Brad Ackerman N1MNB                PGP: 0x9F49A373
b...@facefault.org   <*>   http://bsa.smugmug.com/

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to