Problem compiling ngspice19 with readline or editline support.
I found an old reference to this in 2007 that was closed.
http://sourceforge.net/tracker/index.php?func=detail&aid=1635787&group_id=3
8962&atid=423915
The variable history_file is defined in main.c and referenced as extern in
misccoms.c but cannot be found by the linker:
frontend/.libs/libfte.a(misccoms.o): In function `byemesg':
/home/ksarkies/Compile/ngspice-19/src/frontend/misccoms.c:250: undefined
reference to `history_file'
A grep on the source files shows
src/main.c:85:char history_file[512];
src/main.c:506: strcpy(history_file, getenv("HOME"));
src/main.c:507: strcat(history_file, "/.");
src/main.c:508: strcat(history_file, application_name);
src/main.c:509: strcat(history_file, "_history");
src/main.c:512: read_history(history_file);
src/frontend/misccoms.c:245: extern char history_file[];
src/frontend/misccoms.c:250: write_history(history_file);
I guess history_file needs to be defined in a header somewhere and made
accessible to both source files, but my C skills don't stretch to fixing
this. I survived by deleting the code at the end of misccoms.c
ngspice is a great piece of work. Thanks to all who contributed.
Ken Sarkies
Holger Vogt
frontend
None
Public
|
Date: 2009-10-11 16:58 patch uploaded to CVS |
|
Date: 2009-10-11 08:31 Hi Holger |
|
Date: 2009-10-10 14:09 Ken, |
|
Date: 2009-10-10 12:53 Ken, |
|
Date: 2009-10-10 10:52 Ken, |
|
Date: 2009-10-10 02:50 Discovered this appears in earlier versions as well. I fixed it properly |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2009-10-11 16:58 | h_vogt |
| allow_comments | 1 | 2009-10-11 16:58 | h_vogt |
| close_date | - | 2009-10-11 16:58 | h_vogt |
| resolution_id | None | 2009-10-10 10:52 | h_vogt |
| assigned_to | nobody | 2009-10-10 10:52 | h_vogt |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use