mv-overlay icon indicating copy to clipboard operation
mv-overlay copied to clipboard

reduce fails at linking if ncurses[tinfo] is installed

Open Alessandro-Barbieri opened this issue 4 years ago • 7 comments

g++  -Os -pipe -march=native -mtune=native -fomit-frame-pointer -mfpmath=sse -Wdate-time -Wno-error=implicit-function-declaration -fopenmp -pthread -fno-unroll-all-loops -fno-unroll-loops -fno-peel-loops -Wformat -Wformat-security -Warra
y-bounds -Wclobbered -Wimplicit-function-declaration -Wvolatile-register-var -Wl,-O1 -Wl,--as-needed -Wl,-fuse-ld=gold -lpthread -lgomp -Wl,--hash-style=gnu -fno-strict-aliasing -O2 -Wall  -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed
-Wl,-fuse-ld=gold -lpthread -lgomp -Wl,--hash-style=gnu -L/usr/X11R6/lib -Wl,--hash-style=both -rdynamic  -o csl csl-arith01.o csl-arith02.o csl-arith03.o csl-arith04.o csl-arith05.o csl-arith06.o csl-arith07.o csl-arith08.o csl-arith09.
o csl-arith10.o csl-arith11.o csl-arith12.o csl-bytes1.o csl-char.o csl-cslmpi.o csl-eval1.o csl-eval2.o csl-eval3.o csl-eval4.o csl-fns1.o csl-fns2.o csl-fns3.o csl-print.o csl-cslread.o csl-restart.o csl-sysfwin.o csl-csl.o csl-fasl.o
csl-gc.o csl-preserve.o   csl-stubs.o -L"/var/tmp/portage/sci-mathematics/reduce-20141130-r2/work/reduce-src-2014-11-30/cslbuild/x86_64-unknown-gentoo/lib" -lFOX-1.6 -L../lib -lcrlibm  -lnsl -lXrandr -lXcursor -lXrender -lXext -lX11 -lpt
hread -lrt -ldl -lXft -lfontconfig -lXft -lfontconfig
/var/tmp/portage/sci-mathematics/reduce-20141130-r2/work/reduce-src-2014-11-30/cslbuild/x86_64-unknown-gentoo/lib/libFOX-1.6.a(termed.o):termed.c:function term_move_right: error: undefined reference to 'cur_term'
/var/tmp/portage/sci-mathematics/reduce-20141130-r2/work/reduce-src-2014-11-30/cslbuild/x86_64-unknown-gentoo/lib/libFOX-1.6.a(termed.o):termed.c:function term_move_right: error: undefined reference to 'putp'
/var/tmp/portage/sci-mathematics/reduce-20141130-r2/work/reduce-src-2014-11-30/cslbuild/x86_64-unknown-gentoo/lib/libFOX-1.6.a(termed.o):termed.c:function term_move_right: error: undefined reference to 'cur_term'
/var/tmp/portage/sci-mathematics/reduce-20141130-r2/work/reduce-src-2014-11-30/cslbuild/x86_64-unknown-gentoo/lib/libFOX-1.6.a(termed.o):termed.c:function term_move_right: error: undefined reference to 'putp'
/var/tmp/portage/sci-mathematics/reduce-20141130-r2/work/reduce-src-2014-11-30/cslbuild/x86_64-unknown-gentoo/lib/libFOX-1.6.a(termed.o):termed.c:function term_move_right: error: undefined reference to 'cur_term'
/var/tmp/portage/sci-mathematics/reduce-20141130-r2/work/reduce-src-2014-11-30/cslbuild/x86_64-unknown-gentoo/lib/libFOX-1.6.a(termed.o):termed.c:function term_move_right: error: undefined reference to 'putp'
/var/tmp/portage/sci-mathematics/reduce-20141130-r2/work/reduce-src-2014-11-30/cslbuild/x86_64-unknown-gentoo/lib/libFOX-1.6.a(termed.o):termed.c:function term_move_first_column: error: undefined reference to 'cur_term'
/var/tmp/portage/sci-mathematics/reduce-20141130-r2/work/reduce-src-2014-11-30/cslbuild/x86_64-unknown-gentoo/lib/libFOX-1.6.a(termed.o):termed.c:function term_move_first_column: error: undefined reference to 'putp'
/var/tmp/portage/sci-mathematics/reduce-20141130-r2/work/reduce-src-2014-11-30/cslbuild/x86_64-unknown-gentoo/lib/libFOX-1.6.a(termed.o):termed.c:function set_normal: error: undefined reference to 'tparm'
/var/tmp/portage/sci-mathematics/reduce-20141130-r2/work/reduce-src-2014-11-30/cslbuild/x86_64-unknown-gentoo/lib/libFOX-1.6.a(termed.o):termed.c:function set_fg: error: undefined reference to 'tparm'
/var/tmp/portage/sci-mathematics/reduce-20141130-r2/work/reduce-src-2014-11-30/cslbuild/x86_64-unknown-gentoo/lib/libFOX-1.6.a(termed.o):termed.c:function term_setup: error: undefined reference to 'setupterm'
collect2: error: ld returned 1 exit status

this is related to https://bugs.gentoo.org/show_bug.cgi?id=tinfo full log

Alessandro-Barbieri avatar Sep 12 '19 01:09 Alessandro-Barbieri

I can confirm the error. It looks like an underlinking issue. The "quick" attempt to work around (version bump) did not help.

Not sure when I find time to look into the issue.

vaeth avatar Sep 15 '19 10:09 vaeth

Adding -ltinfo to LDFLAGS helped, but (at least with the current svn version) lisp errors occurred.

I am sorry, I will probably not be able to fix the package in a reasonable time. I will leave it in the tree for others to develop, but I do not have the time to support the ebuild anymore.

vaeth avatar Sep 15 '19 11:09 vaeth

I'll get a look

Alessandro-Barbieri avatar Sep 15 '19 16:09 Alessandro-Barbieri

Which version have you tried?

Alessandro-Barbieri avatar Sep 16 '19 10:09 Alessandro-Barbieri

I pushed now the (not yet working) ebuild to the repository.

vaeth avatar Sep 17 '19 06:09 vaeth

I mades some fixes but it fails at installing the Emacs mode

Alessandro-Barbieri avatar Sep 20 '19 07:09 Alessandro-Barbieri

This sounds easy enough that I might find time to fix it. (Though I do not make any promises: I do not use reduce, and my spare time has become very low for many reasons.) If you like, upload it somewhere (e.g. as a PR) and I might look at it (perhaps in 1-3 weeks).

vaeth avatar Sep 29 '19 05:09 vaeth