[PosChengband] can't detect existent curses?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • darwin
    Rookie
    • Jan 2024
    • 13

    [PosChengband] can't detect existent curses?

    I downloaded PosChengband 7.3.5 and ran configure which says the following.

    [...] - Curses No; missing libraries [...]

    I have ncurses-6.4_20230610-x86_64-1 and all other programs that require curses work/compile fine.

    Before anyone says anything foolish like "you don't have ncurses-dev", there's no such package on Slackware GNU/Linux because it's a development OS (so such 'extras' are already part of the main package) and Debian/ Devuan isn't.

    Does PosChengband have a version control system (VCS) repository you can report issues on so I could ask what to do there?
  • backwardsEric
    Knight
    • Aug 2019
    • 527

    #2
    A likely cause is that PosChengband tries to use ncursesw5-config to determine how to compile and link with ncurses, but that's been renamed to ncursesw6-config in current versions of ncurses. Running configure with something like this:

    Code:
    ./configure NCURSES_CONFIG=`which ncursesw6-config` [your preferred configure options here]
    could help it detect ncurses (if for some reason `which nucrsesw6-config`` does not work replace it with the full path for ncursesw6-config, perhaps it is /usr/bin/64/ncursesw6-config ). Another way to work around that issue would be to modify acinclude.m4 to replace ncursesw5-config with ncursesw6-config and then run ./autogen.sh to regenerate the configure script, but that will require that you have autoconf installed.

    Comment

    • Gwarl
      Administrator
      • Jan 2017
      • 1025

      #3
      It's been more than two years since there were last any signs of life from poschengband. I think there was an official github repo once but not any longer. Frogcomposband is an active descendant.

      Comment

      • darwin
        Rookie
        • Jan 2024
        • 13

        #4
        I'll try FrogComPosBand. I was able to configure PosChengBand but got the following make errors.

        Code:
        Successfully compiled plr_tim.c
        cmd4.c: In function ‘do_cmd_time’:
        cmd4.c:6199:43: warning: ‘%d’ directive writing between 1 and 11 bytes into a region of size 10 [-Wformat-overflow=]
        6199 | if (day < MAX_DAYS) sprintf(day_buf, "%d", day);
        | ^~
        cmd4.c:6199:42: note: directive argument in the range [-2147483648, 19999]
        6199 | if (day < MAX_DAYS) sprintf(day_buf, "%d", day);
        | ^~~~
        Successfully compiled skills.c
        cmd4.c:6199:25: note: ‘sprintf’ output between 2 and 12 bytes into a destination of size 10
        6199 | if (day < MAX_DAYS) sprintf(day_buf, "%d", day);
        | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
        Successfully compiled main-gcu.c
        Successfully compiled spells.c
        xtra1.c: In function ‘window_stuff’:
        xtra1.c:1563:30: warning: ‘%d’ directive writing between 1 and 10 bytes into a region of size 7 [-Wformat-overflow=]
        1563 | sprintf(buf, " (x%d)", m->count);
        | ^~
        In function ‘_fix_message_aux’,
        inlined from ‘fix_message’ at xtra1.c:1595:9,
        inlined from ‘window_stuff’ at xtra1.c:4254:9:
        xtra1.c:1563:26: note: directive argument in the range [2, 2147483647]
        1563 | sprintf(buf, " (x%d)", m->count);
        | ^~~~~~~~
        xtra1.c:1563:13: note: ‘sprintf’ output between 6 and 15 bytes into a destination of size 10
        1563 | sprintf(buf, " (x%d)", m->count);
        | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Successfully compiled wiz_obj.c
        Successfully compiled wizard2.c
        Successfully compiled cmd4.c
        Successfully compiled spells3.c
        Successfully compiled mon_spell.c
        Successfully compiled spoilers.c
        Successfully compiled z-term.c
        Successfully compiled autopick.c
        Successfully compiled gf.c
        Successfully compiled util.c
        Successfully compiled shop.c
        Successfully compiled z-doc.c
        Successfully compiled wizard1.c
        Successfully compiled weaponsmith.c
        Successfully compiled weaponmaster.c
        Successfully compiled main-x11.c
        Successfully compiled dun_cell.c
        Successfully compiled xtra2.c
        Successfully compiled xtra1.c
        Successfully compiled do-spell.c
        Successfully compiled devices.c
        make[3]: Leaving directory '/home/d/math/src/games/roguelike/moria_angband_tome/poschengband-7.3.5-src/src'
        make[2]: *** [../mk/buildsys.mk:112: all] Error 2
        make[2]: Leaving directory '/home/d/math/src/games/roguelike/moria_angband_tome/poschengband-7.3.5-src/src'
        make[1]: *** [mk/buildsys.mk:117: subdirs] Error 2
        make[1]: Leaving directory '/home/d/math/src/games/roguelike/moria_angband_tome/poschengband-7.3.5-src'
        make: *** [mk/buildsys.mk:110: all] Error 2

        Comment

        Working...
        😀
        😂
        🥰
        😘
        🤢
        😎
        😞
        😡
        👍
        👎