You are not logged in.

#1 2016-01-10 01:46:30

ectospasm
Member
Registered: 2015-08-28
Posts: 273

Error compiling ncurses 5.9

I'm trying to install ncurses 5.9 due to a bug I've wrangled with for a few months now, in offlineimap (see https://bbs.archlinux.org/viewtopic.php … 8#p1573228 for my original post on it).  After filing bugs to the Arch offlineimap project, and also upstream offlineimap, I've been told to git bisect offlineimap.  I surmise the problem occurred when ncurses 6.0-1 was introduced.  To test that theory, I need to install the 5.9-7 revision I checked out from svn.  I get this error when trying to compile it:

gcc -DHAVE_CONFIG_H -I../ncurses -I../../ncurses-5.9/ncurses -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -DNDEBUG -I. -I../include -I../../ncurses-5.9/ncurses/../include -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong  --param max-inline-insns-single=1200 -fPIC -c ../ncurses/lib_gen.c -o ../obj_s/lib_gen.o
In file included from ../../ncurses-5.9/ncurses/curses.priv.h:283:0,
                 from ../ncurses/lib_gen.c:19:
_12885.c:1364:15: error: expected ‘)’ before ‘int’
../include/curses.h:1906:56: note: in definition of macro ‘mouse_trafo’
 #define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen)
                                                        ^
Makefile:835: recipe for target '../obj_s/lib_gen.o' failed
make[1]: *** [../obj_s/lib_gen.o] Error 1
make[1]: Leaving directory '/home/trey/src/packages/ncurses/repos/core-x86_64/src/ncursesw-build/ncurses'
Makefile:109: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

According to this post (https://bbs.archlinux.org/viewtopic.php … 8#p1510328), I should add the "-P" flag to the preprocessor invocation, but ncurses is complicated enough that it is nontrivial to figure out where I need to put it.  I did edit the Makefile in ncursesw-build/ncurses/, and it added the -P (though I still got the same error).  In any case, any modifications I've tried to make seem to get destroyed by a makepkg -sei.

Thanks in advance.

Offline

#2 2016-01-10 02:25:56

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: Error compiling ncurses 5.9

Can you install the 5.9-7 package from the archive?

https://archive.archlinux.org/packages/n/ncurses/


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#3 2016-01-10 04:53:53

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: Error compiling ncurses 5.9

You'd want to install the compat libs then build offlineimap against them. DO NOT JUST INSTALL 5.9 SYSTEM WIDE!!!

Online

#4 2016-01-13 12:09:29

ectospasm
Member
Registered: 2015-08-28
Posts: 273

Re: Error compiling ncurses 5.9

Scimmia wrote:

You'd want to install the compat libs then build offlineimap against them. DO NOT JUST INSTALL 5.9 SYSTEM WIDE!!!

Can you elaborate on this?  Which compatibility libraries are you referring to?  And how would I direct a compilation of offlineimap to use them?

Offline

#5 2016-01-13 12:58:56

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Error compiling ncurses 5.9

Look for ncurses5-compat-libs in AUR.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#6 2016-01-14 11:55:34

ectospasm
Member
Registered: 2015-08-28
Posts: 273

Re: Error compiling ncurses 5.9

Scimmia wrote:

You'd want to install the compat libs then build offlineimap against them. DO NOT JUST INSTALL 5.9 SYSTEM WIDE!!!

I just realized, you don't build offlineimap, as it's straight Python.

Offline

Board footer

Powered by FluxBB