From: Steven B. <ste...@di...> - 2007-12-15 16:42:51
|
Holger, Thanks. I'm just beginning to understand / come to the same conclusions. I've fixed up imp.c locally as that's simple to see how to avoid numparams, but I'm stuck with measure.c as I'm not sure what do_measure() is doing, and therefore it's not easy to workout a fix that's not going to screw something else up. I'm here as I was getting warning with linking of ngnutmeg on Mac OS X that seemed related to numparam. I've now moved to Umbuntu in an attempt to understand the Mac problems, and hit several others along the way. I've push a couple fixes in the CVS. One broke compile on Umbuntu, so I feel I'm making some sort of progress, but I'm no closer to my original problem. I'll go back to a configuration with --enable-numparams, for now. Although if anyone can explain what do_measure() is doing I'll have a go at fixing it. Regards, Steven On 15 Dec 2007, at 16:24, Holger Vogt wrote: > Steven, > > you should add --enable-numparam to ./configure which then set > NUMPARAMS > to 1 in config.h. This will add numpaif.h (see line 52 in inp.c). > Somehow the code is mixed up in that it will not link without > NUMPARAMS > enabled. Part of the code is embraced in #ifdef NUMPARAMS ... > #endif in > inp.c, e.g. line 456, part of the code not (e.g. inp.c, line 103). > > Regards > > Holger > > > Steven Borley schrieb: >> Paolo, and other developers, >> >> Still no luck with this, and it might not be just a Mac problem. >> >> I tried on Ubuntu with... >> >> cvs update >> ./autogen.sh >> ./configure --enable-experimental --disable-debug --enable- >> maintainer- >> mode >> make >> >> this gives... >> >> gcc -Wall -o ngspice conf.o ngspice.o spice.o spicelib/devices/dev.o >> frontend/libfte.a frontend/plotting/libplotting.a spicelib/devices/ >> asrc/libasrc.a spicelib/devices/bjt/libbjt.a spicelib/devices/bjt2/ >> libbjt2.a spicelib/devices/bsim1/libbsim1.a spicelib/devices/bsim2/ >> libbsim2.a spicelib/devices/bsim3/libbsim3.a spicelib/devices/ >> bsim3v0/ >> libbsim3v0.a spicelib/devices/bsim3v1/libbsim3v1.a spicelib/devices/ >> bsim3v1s/libbsim3v1s.a spicelib/devices/bsim3v1a/libbsim3v1a.a >> spicelib/devices/bsim3v32/libbsim3v32.a spicelib/devices/bsim4/ >> libbsim4.a spicelib/devices/bsim4v2/libbsim4v2.a spicelib/devices/ >> bsim4v3/libbsim4v3.a spicelib/devices/bsim4v4/libbsim4v4.a spicelib/ >> devices/bsim4v5/libbsim4v5.a spicelib/devices/cap/libcap.a spicelib/ >> devices/bsim3soi/libbsim3soi.a spicelib/devices/bsim3soi_pd/ >> libbsim3soipd.a spicelib/devices/bsim3soi_fd/libbsim3soifd.a >> spicelib/ >> devices/bsim3soi_dd/libbsim3soidd.a spicelib/devices/cccs/libcccs.a >> spicelib/devices/ccvs/libccvs.a spicelib/devices/cpl/libcpl.a >> spicelib/devices/csw/libcsw.a spicelib/devices/dio/libdio.a spicelib/ >> devices/ind/libind.a spicelib/devices/isrc/libisrc.a spicelib/ >> devices/ >> hfet1/libhfet.a spicelib/devices/hfet2/libhfet2.a spicelib/devices/ >> hisim/libhisim.a spicelib/devices/jfet/libjfet.a spicelib/devices/ >> jfet2/libjfet2.a spicelib/devices/ltra/libltra.a spicelib/devices/ >> mes/ >> libmes.a spicelib/devices/mesa/libmesa.a spicelib/devices/mos1/ >> libmos1.a spicelib/devices/mos2/libmos2.a spicelib/devices/mos3/ >> libmos3.a spicelib/devices/mos6/libmos6.a spicelib/devices/mos9/ >> libmos9.a spicelib/devices/res/libres.a spicelib/devices/soi3/ >> libsoi3.a spicelib/devices/sw/libsw.a spicelib/devices/txl/libtxl.a >> spicelib/devices/tra/libtra.a spicelib/devices/urc/liburc.a spicelib/ >> devices/vbic/libvbic.a spicelib/devices/vccs/libvccs.a spicelib/ >> devices/vcvs/libvcvs.a spicelib/devices/vsrc/libvsrc.a spicelib/ >> analysis/libckt.a spicelib/devices/libdev.a frontend/parser/ >> libparser.a frontend/help/libhlp.a spicelib/parser/libinp.a maths/ >> deriv/libderiv.a maths/cmaths/libcmaths.a maths/poly/libpoly.a maths/ >> ni/libni.a maths/sparse/libsparse.a misc/libmisc.a -lm -lXaw -lXmu - >> lXt -lXext -lX11 -lSM -lICE >> frontend/libfte.a(inp.o): In function `com_listing': >> inp.c:(.text+0xf0): undefined reference to `nupa_list_params' >> frontend/libfte.a(measure.o): In function `do_measure': >> measure.c:(.text+0x2377): undefined reference to `nupa_add_param' >> measure.c:(.text+0x24c1): undefined reference to `nupa_add_param' >> measure.c:(.text+0x28db): undefined reference to `nupa_eval' >> measure.c:(.text+0x29b8): undefined reference to `nupa_add_param' >> collect2: ld returned 1 exit status >> >> I get the same link error on Mac OS X. >> >> Help would be appreciated, but I'll continue to look myself. Just >> keep you all informed in case you can spot what I'm missing. >> >> Regards, >> Steven >> > > > ---------------------------------------------------------------------- > --- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services > for just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/ > marketplace > _______________________________________________ > Ngspice-devel mailing list > Ngs...@li... > https://lists.sourceforge.net/lists/listinfo/ngspice-devel |