On 2025/02/18 12:22, rsyk...@disroot.org wrote: > Dear list, > > > as I want to use a newer cad/ngspice than is currently available, > I tried to build one myself. I changed the version number in > Makefile.inc to a higher 44.2. I was able to fetch the source, but > when I run make I get an error > > checking for library containing tputs... no > configure: error: Found neither ncurses/terminfo or termcap > > I tried to add ncurses to the WANTLIB line, but that did not > help. > > I searched where the check is, I found one in > /usr/obj/ports/ngspice-44.2/ngspice-44.2/configure.ac > > AC_SEARCH_LIBS([tputs], [ncurses tinfo termcap], > [AC_DEFINE([HAVE_TERMCAP], [], [Define if we have ncurses/terminfo or > termcap])], > > What should I do to pass the test? > (I have very limited knowledge about how the ports system really works.)
Looking at the config.log entries relating to that check suggests CONFIGURE_ENV = LDFLAGS=-L/usr/X11R6/lib - build fails later though. These help: CONFIGURE_ARGS = --disable-openmp CONFIGURE_ENV = LDFLAGS=-L/usr/X11R6/lib \ CPPFLAGS=-I/usr/X11R6/include/freetype2 but then it tries to link to libstdc++, which it shouldn't: /usr/bin/libtool --tag=CC --mode=link cc -O2 -pipe -std=gnu11 -L/usr/X11R6/lib -o cmpp main.o file_buffer.o pp_ifs.o pp_lst.o pp_mod.o read_ifs.o writ_ifs.o util.o ifs_lex.o ifs_yacc.o mod_lex.o mod_yacc.o -lncurses -lm -lfreetype -lfontconfig -lstdc++ -lreadline warning: could not find a stdc++ library Link error: stdc++ not found! that should be changed somehow to use "c++" instead of "cc" to link, and stop explicitly using -lstdc++, but I don't have enough interest in the software to look further myself now. (if it can be made to build, kicad and the gEDA tools will need checking to make sure they are happy with the newer version too).