Summary: | sci-electronics/ngspice-25 fails to build with ncurses[tinfo] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jean-Francois Ostiguy <jfostiguy> |
Component: | Current packages | Assignee: | The Soldering-Iron Brotherhood <sci-electronics> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | Daniel.Savard |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 457530 | ||
Attachments: |
build.log
config.log for ngspice-25 |
Description
Jean-Francois Ostiguy
2013-02-18 15:53:06 UTC
Created attachment 339256 [details]
build.log
Thanks Jean-Francois. It's now fixed. Denis. (In reply to comment #2) > Thanks Jean-Francois. It's now fixed. > > Denis. Denis - May be not. I am getting the same problem after resyncing this morning. I also tried re-emerging ncurses (sys-libs/ncurses-5.9-r2:5). No luck. OK, i'm reopening this but it's weird. could you try with ngspice-24 and see if you have the same problem? Also, could you please attach the config.log after failure? Thanks, Denis. Created attachment 339720 [details]
config.log for ngspice-25
config.log for ngspice-25 is attached.
ngspice-24 configure also fails with the error
checking for library containing tputs... no
configure: error: Found neither ncurses or termcap
I looked into my issue a bit further. It may be related to recebt changes: See bug https://bugs.gentoo.org/show_bug.cgi?id=457530. When I look into configure.log I see configure:17740: x86_64-pc-linux-gnu-gcc -o conftest -O2 -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs -Wold-style-definition -Wredundant-decls -Wconversion -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed conftest.c -lm >&5 conftest.c:140:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] conftest.c:142:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] conftest.c: In function 'main': conftest.c:142:1: warning: old-style function definition [-Wold-style-definition] /var/tmp/portage/sci-electronics/ngspice-25/temp/ccI6dnYL.o: In function `main': conftest.c:(.text.startup+0x7): undefined reference to `tputs' collect2: error: ld returned 1 exit status configure:17740: $? = 1 Notice that on line 17740 the arguments should include -lncurses ... but it is not there. This explains why the tputs test fails for libncurses (it should not). It turns out I also have installed on my system a package installed called sys-libs/libtermcap-compat. This package installs /usr/lib64/libtermcap.so.2.0.8 but apparently nothing under /usr/lib ( I think there should be a linker script there). This explains why the tputs test also fails for libtermcap. Finally, something else is weird. I had dev-util/nvidia-cuda-toolkit-5.0.35-r3 installed. I had to unmerge it in order get ncurses to emerge and install properly. Before that, ncurses would emerge but no file would get written under /usr/lib64. Bottom line: the situation with ncurses/termcap seems to be a bit of a mess at the moment. Two corrections to my previous comment. The sys-libs/libtermcap-compat installs under /usr/lib64 which is obviously equivalent to /usr/lib on my multilib system. The issue is that only /usr/lib/libtermcap.so.2 and /usr/lib/libtermcap.so.2.0.8 are installed. If I do ln -s libtermcap.so.2 libtermcap then the termcap configure test succeeds and ngspice-25 is successfully configured and compiled. Now, as far as ncurses is concerned, the actual lib binairies are installed under /lib64. What gets installed under /usr/lib[64] is a linker script. Before unmerging the cuda package, emerging ncurses would never produce anything under /lib64 (not /usr/lib64 as implied by my previous comment). After unmerging the cuda package, reemerging ncurses resulted in a correct ncurses intallation. The fix for the ngspice ebuild would be to somehow get configure to work properly with ncurses i.e. get the -lncurses argument to be included in the configure library test. *** Bug 520344 has been marked as a duplicate of this bug. *** Hopefully fixed. Please reopen if problem still exists. + 14 Dec 2014; Thomas Beierlein <tomjbe@gentoo.org> ngspice-24.ebuild, + ngspice-25.ebuild, ngspice-26.ebuild: + Builds also with ncurses[tinfo] (bug #458128) + |