Package Details: rogue 1:5.4.4-1

Git Clone URL: https://aur.archlinux.org/rogue.git (read-only, click to copy)
Package Base: rogue
Description: The original dungeon crawl game.
Upstream URL: http://rogue.rogueforge.net/rogue-5-4/
Keywords: bsd crawl crawler dungeon dungeoncrawl dungeoncrawler game rogue roguelike
Licenses: custom
Submitter: arojas
Maintainer: sethkush
Last Packager: sethkush
Votes: 9
Popularity: 0.88
First Submitted: 2023-04-01 17:25 (UTC)
Last Updated: 2025-05-14 22:45 (UTC)

Latest Comments

1 2 Next › Last »

sethkush commented on 2025-05-14 22:47 (UTC)

Thank you, tblFlip. I've applied your patch.

tblFlip commented on 2025-05-14 10:44 (UTC)

after scratching my head for a bit at @rfewsag's error, it does seem that that is caused by gcc defaulting to gnu23 as C standard these days, which some (a lot) of the function pointer shenanigans don't appear to be too happy about. bothering gcc into falling back to gnu18 seems to clean up the build

diff --git a/PKGBUILD b/PKGBUILD
index 94f3fd8..f3acff6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -27,7 +27,7 @@ prepare() {
 build() {
   cd $pkgname$pkgver
   mv ../config.guess config.guess
-  ./configure
+  CFLAGS="-g -O2 -std=gnu18" ./configure
   make
 }

rfewsag commented on 2025-05-14 10:01 (UTC)

I get a compilation error daemon.c: In function ‘do_daemons’: daemon.c:112:14: error: too many arguments to function ‘dev->d_func’; expected 0, have 1 112 | (dev->d_func)(dev->d_arg); | ~^ ~~ In file included from daemon.c:15: rogue.h:732:12: note: declared here 732 | void (d_func)(); | ^~ daemon.c: In function ‘do_fuses’: daemon.c:179:14: error: too many arguments to function ‘wire->d_func’; expected 0, have 1 179 | (wire->d_func)(wire->d_arg); | ~^~ ~~~ rogue.h:732:12: note: declared here 732 | void (d_func)(); | ^~ make: *** [Makefile:130: daemon.o] Error 1

sethkush commented on 2024-08-24 14:42 (UTC)

Thanks, tblFlip. The build should now work on x86_64 and aarch64.

tblFlip commented on 2024-06-30 23:07 (UTC)

i had a bit of time and found a fix for that opaque WINDOW issue. compiles and run on x86_64 just fine now

diff --git a/PKGBUILD b/PKGBUILD
index b172e31..476354b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -18,6 +18,10 @@ prepare() {
   # ncurses fix, FS#57731
   sed -i '262i TERMTYPE *tp = (TERMTYPE *) (cur_term);' mdport.c
   sed -i 's/cur_term->type.Strings/tp->Strings/' mdport.c
+
+  # Use wmove instead of trying to accesses fields of an opaque struct
+  sed -i '/curscr->_curx = ox;/d' main.c
+  sed -i 's/curscr->_cury = oy;/wmove(curscr, oy, ox);/' main.c
 }

 build() {

tcreature commented on 2024-06-30 04:18 (UTC)

@0BAD-C0DE @Gaspi I'm getting the same error.

Gaspi commented on 2024-06-11 17:12 (UTC)

hi @0BAD-C0DE i am getting that exact error you posted last

0BAD-C0DE commented on 2024-06-10 10:02 (UTC) (edited on 2024-06-10 10:27 (UTC) by 0BAD-C0DE)

IS your error this one?

gcc -g -O2  -DHAVE_CONFIG_H  -c main.c
main.c: In function ‘tstp’:
main.c:241:11: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’}
  241 |     curscr->_cury = oy;
      |           ^~
main.c:242:11: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’}
  242 |     curscr->_curx = ox;
      |           ^~
make: *** [Makefile:130: main.o] Error 1

It seems it is related to NCURSES_OPAQUE but I have not enough time now to deep dive into it.

0BAD-C0DE commented on 2024-06-10 08:05 (UTC)

@Tiagofer would you please detail your compilation error?

Tiagofer commented on 2024-06-10 04:01 (UTC)

I'm getting a compilation error and setkush's fix doesn't fix it.