bugncurses - Bugs: bug #45197, ncurses doen't want to compile...

 
 

bug #45197: ncurses doen't want to compile with GCC 5.1.0

Submitter:  CHAOURAR Nabil <naboo>
Submitted:  Wed 27 May 2015 04:01:43 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 03 Feb 2018 06:41:32 PM UTC, comment #4: 

This was addressed by ncurses 6.0 in August 2015.

Thomas Dickey <dickey>
Group administrator
Thu 28 May 2015 09:21:16 AM UTC, comment #3: 

Once I'm done with the dependencies and so forth, there will be a new release.  For the time being, that's where fixes are.

Thomas Dickey <dickey>
Group administrator
Thu 28 May 2015 07:23:17 AM UTC, comment #2: 

I just tested the version you have given me, and compilation went well.

The report was against the version located at : http://ftp.gnu.org/gnu/ncurses/ncurses-5.9.tar.gz

Actually i encountered this problem while compiling openwrt,
so maybe i should report the new version to them.

Thanks for your quick response :)

CHAOURAR Nabil <naboo>
Wed 27 May 2015 11:20:37 PM UTC, comment #1: 

So far, all of the reports dealing with gcc 5.x are for 5.9 with no patches.  The current source is here:

http://invisible-island.net/datafiles/current/ncurses.tar.gz

(5.9.20150523)

Which version is this report against?

Thomas Dickey <dickey>
Group administrator
Wed 27 May 2015 04:01:43 PM UTC, original submission:  

The error was :

gcc -DHAVE_CONFIG_H -I../ncurses -I.  -D_GNU_SOURCE -DNDEBUG -I. -I../include -O2 --param max-inline-insns-single=1200 -c ../ncurses/lib_gen.c -o ../objects/lib_gen.o
In file included from ../ncurses/curses.priv.h:283:0,
                 from ../ncurses/lib_gen.c:19:
_12629.c:835:15: error: expected ‘)’ before ‘int’
../include/curses.h:1594:56: note: in definition of macro ‘mouse_trafo’
 #define mouse_trafo(y,x,to_screen) wmouse_trafo(stdscr,y,x,to_screen)
                                                        ^
Makefile:790: recipe for target '../objects/lib_gen.o' failed

i managed to compile ncurses by modifying ncurses/base/MKlib_gen.sh:

line 65 : preprocessor="$1 -DNCURSES_INTERNALS -I../include"
to
line 65 : preprocessor="$1 -P -DNCURSES_INTERNALS -I../include"

i dont know if it helps.

CHAOURAR Nabil <naboo>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #34102:  ncurses.patch added by naboo (616B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by dickey (Posted a comment)
  • -email is unavailable- added by naboo (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-08-23 dickey Open/ClosedOpen Closed
    2018-02-03 dickey StatusNone Fixed
    2015-05-27 naboo Attached File- Added ncurses.patch, #34102

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code