Ticket #2130 (new bug)

Opened 11 years ago

Last modified 11 years ago

Cannot run examples/library/ncurses_life.pir

Reported by: masak Owned by: bubaflub
Priority: normal Milestone:
Component: library Version: 3.4.0
Severity: medium Keywords:
Cc: Language:
Patch status: Platform:

Description

<masak> getting this error when trying to run ncurses_life.pir on a freshly
        checked-out and built Parrot: https://gist.github.com/1014297
<masak> :(
<moritz> ticket it!
* masak tickets it

For completeness, here are the contents of the gist:

$ ./parrot examples/library/ncurses_life.pir examples/library/acorn.life
Unknown param Signature 3

current instr.: '__ncurses_init' pc 41 (runtime/parrot/library/ncurses.pir:1)
called from Sub '_MAIN' pc 0 (examples/library/ncurses_life.pir:57)
... call repeated 1 times

Change History

Changed 11 years ago by ligne

the tricky line is in runtime/parrot/library/ncurses.pir:

dlfunc $P2, $P1, 'field_info', 'ip333333'

the 2, 3, 4 and V NCI signatures have been deprecated and removed (23f7de084893be8816553674d0ec2e7e422a74f0).

Changed 11 years ago by jkeenan

  • component changed from none to library

Changed 11 years ago by bubaflub

  • owner set to bubaflub

I'm working on fixing this with plobsing++.

Basically, with the deprecation of 2, 3, 4, t and a few other signatures these bindings won't compile. So the problem is bigger than just the ncurses example.

This'll be split into two parts: the first to convert the old style definition file (something like i func_name pp23) into the new style definitions (int func_name (ptr ptr short& int&)); the second part is to update the script tools/dev/ncidef2pir.pl to handle the new style bindings and also properly handle parameters passed by reference in the new calling conventions.

Note: See TracTickets for help on using tickets.