Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#214 Compile error in MacOS 10.8.1

closed-rejected
Holger Vogt
None
5
2012-11-11
2012-09-24
Anonymous
No

When I ran the recommended compile procedure (from the INSTALL file):

$ mkdir release
$ cd release
$ ../configure --with-x --with-readline=yes --disable-debug
$ make
$ sudo make install

I got the following error:

make[3]: Nothing to be done for `all-am'.
Making all in include/ngspice
make all-am
make[3]: Nothing to be done for `all-am'.
gcc -DHAVE_CONFIG_H -I. -I. -I../src/include -I../src/include -I../src/spicelib/devices -DSIMULATOR -O2 -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs -Wold-style-definition -Wredundant-decls -Wconversion -s -MT ngspice-main.o -MD -MP -MF .deps/ngspice-main.Tpo -c -o ngspice-main.o `test -f 'main.c' || echo './'`main.c
main.c: In function ‘app_rl_readlines’:
main.c:612: error: ‘rl_catch_signals’ undeclared (first use in this function)
main.c:612: error: (Each undeclared identifier is reported only once
main.c:612: error: for each function it appears in.)
main.c:617: error: ‘rl_catch_sigwinch’ undeclared (first use in this function)
main.c: In function ‘append_to_stream’:
main.c:695: warning: passing argument 2 of ‘fread’ with different width due to prototype
main.c:695: warning: passing argument 3 of ‘fread’ with different width due to prototype
main.c:696: warning: passing argument 3 of ‘fwrite’ with different width due to prototype
make[2]: *** [ngspice-main.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

However, I was able to get ngspice to compile by using a modified ./configure command:
./configure --with-x --with-readline=no --disable-debug

I'm compiling with the native gcc from Xcode:
gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)

Discussion

  • Holger Vogt
    Holger Vogt
    2012-09-24

    This is not an ngspice bug.

    You have to make the readline library and headers available for compilation. So please check, if readline is installable from your OS distribution.

    Holger

     
  • Holger Vogt
    Holger Vogt
    2012-09-24

    • assigned_to: nobody --> h_vogt
    • status: open --> open-rejected
     
  • Holger Vogt
    Holger Vogt
    2012-11-11

    • status: open-rejected --> closed-rejected