Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choking on compile of ncurses. #17

Closed
ddoherty03 opened this issue Aug 18, 2017 · 3 comments
Closed

Choking on compile of ncurses. #17

ddoherty03 opened this issue Aug 18, 2017 · 3 comments

Comments

@ddoherty03
Copy link

I tried the new version, but get errored-out when it gets to compiling ncurses:

gcc -DHAVE_CONFIG_H -I. -I../include  -D_GNU_SOURCE -DNDEBUG -fPIC -O3 -fno-fast-math -ggdb3 -Os -fdata-sections -ffunction-sections -pipe   --param max-inline-insns-single=1200 -c ../ncurses/./base/lib_getstr.c -o ../objects/lib_getstr.o
In file included from ./curses.priv.h:325:0,
                 from ../ncurses/lib_gen.c:19:
_6335.c:843:15: error: expected ‘)’ before ‘int’
../include/curses.h:1631:56: note: in definition of macro ‘mouse_trafo’
 #define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen)
                                                        ^
Makefile:962: recipe for target '../objects/lib_gen.o' failed
make[1]: *** [../objects/lib_gen.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/tmp/rubyc/ncurses/ncurses'
Makefile:113: recipe for target 'all' failed
make: *** [all] Error 2
Failed running [{"CI"=>"true", "ENCLOSE_IO_USE_ORIGINAL_RUBY"=>"1", "CFLAGS"=>" -fPIC -O3 -fno-fast-math -ggdb3 -Os -fdata-sections -ffunction-sections -pipe ", "LDFLAGS"=>""}, "make -j4"]

I'm compiling on linux, ubuntu 16.04, 64bit. Any ideas?

@SwagDevOps
Copy link
Contributor

See issue #14

@drbrain
Copy link
Collaborator

drbrain commented May 9, 2018

Seems CPPFLAGS=-P is supposed to allow ncurses to compile: #14 (comment)

@drbrain drbrain closed this as completed May 9, 2018
@paneq
Copy link

paneq commented Dec 9, 2020

@drbrain Yep, it worked for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants