opensubscriber
   Find in this group all groups
 
Unknown more information…

f : fink-users@lists.sourceforge.net 21 September 2009 • 1:50AM -0400

[Fink-users] ngspice compile problem
by Brad Ackerman

REPLY TO AUTHOR
 
REPLY TO GROUP






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
brad@face...   <*>   http://bsa.smugmug.com/


Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.