Share

ngspice

Tracker: Bugs

5 ngspice-19: undef. sym "_modtab" (OS X 10.5) - ID: 2859013
Last Update: Comment added ( h_vogt )

Sorry if I missed something - sf.net just ate my post after I pressed
submit :(

ProductName: Mac OS X
ProductVersion: 10.5.8
BuildVersion: 9L30

$ gcc --version
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5490)
[...]
gcc -g -O0 -Wall -o ngnutmeg main.o conf.o ngnutmeg.o -L/sw/lib
frontend/.libs/libfte.a frontend/plotting/.libs/libplotting.a front
end/parser/.libs/libparser.a frontend/numparam/.libs/libnumparam.a
maths/cmaths/.libs/libcmaths.a maths/misc/.libs/libmathmisc.a mat
hs/poly/.libs/libpoly.a misc/.libs/libmisc.a spicelib/parser/.libs/libinp.a
frontend/help/.libs/libhlp.a -lncurses -lm -lreadline -L
/usr/X11/lib -lXaw /usr/X11/lib/libXmu.dylib /usr/X11/lib/libXt.dylib
/usr/X11/lib/libXext.dylib /usr/X11/lib/libX11.dylib /usr/X11/
lib/libXau.dylib /usr/X11/lib/libXdmcp.dylib /usr/X11/lib/libSM.dylib
/usr/X11/lib/libICE.dylib
Undefined symbols:
"_modtab", referenced from:
_modtab$non_lazy_ptr in libinp.a(inpkmods.o)
ld: symbol(s) not found

Full log attached.


Charles Lepple ( clepple ) - 2009-09-15 01:40

5

Closed

Fixed

Holger Vogt

frontend

None

Public


Comments ( 9 )

Date: 2009-10-11 22:11
Sender: h_vogtProject Admin

inpkmod.c modified by initializing modtab:

/* global input model table. */
INPmodel *modtab = NULL;

See comment to bug no. 2874418

Holger


Date: 2009-09-20 19:57
Sender: h_vogtProject Admin

Charles,

the second one is already in CVS.

I will test your patch and upload it to CVS.

Thanks

Holger


Date: 2009-09-20 14:33
Sender: clepple

Aha, looks like the first patch here fixes things by initializing the
pointer to NULL:

http://trac.macports.org/browser/trunk/dports/science/ng-spice/files

Not sure if the second one has been merged into CVS yet, but I included it
in the Fink package just in case.


Date: 2009-09-20 13:14
Sender: clepple

Sorry, I found the definition in ./src/spicelib/parser/inpmkmod.c.

I still wonder if GNU ld is doing something different, like sorting
things.


Date: 2009-09-20 13:07
Sender: clepple

Also, I am looking through the CVS source, and I don't see how modtab is
being defined (except as an extern pointer). I wonder if the code is
relying on a feature of GNU ld?


Date: 2009-09-20 12:20
Sender: clepple

If the ngspice-19 tarball was generated from CVS, then running 'cvs rdiff'
between the proper -19 tag and HEAD should yield a patch file that, when
applied to the tarball, is equivalent to checking out HEAD from CVS. (I am
trying to minimize the potential differences between building by hand, and
building the way the Fink package builds.)

Some new problems have cropped up (related to readline?) so I will need to
go chase those down first.


Date: 2009-09-20 09:06
Sender: h_vogtProject Admin

Charles,

the best would be if yout check out the code from CVS and test it.

Thats what I am working on. To follow the "old" tarball in detail would be
difficult and perhaps does not lead to a solution.

We might consider making a new release.

Regards

Holger



Date: 2009-09-19 23:50
Sender: clepple

Holger,

In my build process, I am using the released ngspice-19 tarball plus a
patch file generated from CVS. Which tag should I diff from, rework-19 or
rework-19_2?


Date: 2009-09-19 21:49
Sender: h_vogtProject Admin

Charles,

the code work under mingw, cygwin, LINUX (Suse11.2).

Still I have made a small change and uploaded to CVS. Please try again.

Regards

Holger



Attached File ( 1 )

Filename Description Download
fink-build-log_ngspice_rework-19-1_2009.09.14-21.21.30.txt.gz ngspice-build-log.gz Download

Changes ( 7 )

Field Old Value Date By
resolution_id Works For Me 2009-10-11 22:11 h_vogt
close_date - 2009-09-26 20:52 h_vogt
allow_comments 1 2009-09-26 20:52 h_vogt
status_id Open 2009-09-26 20:52 h_vogt
assigned_to nobody 2009-09-19 21:49 h_vogt
resolution_id None 2009-09-19 21:49 h_vogt
File Added 342982: fink-build-log_ngspice_rework-19-1_2009.09.14-21.21.30.txt.gz 2009-09-15 01:40 clepple