Package Details: netris-git 0.56g_1-1

Git Clone URL: https://aur.archlinux.org/netris-git.git (read-only, click to copy)
Package Base: netris-git
Description: Mark H. Weaver's Netris - A networked terminal version of Tetris. This is my fork, which itself is based on Nathan Aclander's fork.
Upstream URL: https://github.com/gammy/netris.git
Licenses: GPL2
Conflicts: netris
Submitter: gammy
Maintainer: gammy
Last Packager: gammy
Votes: 0
Popularity: 0.000000
First Submitted: 2016-12-13 01:21 (UTC)
Last Updated: 2020-11-10 17:22 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

Mendenlama commented on 2024-05-13 20:42 (UTC)

Thankfully, loqs posted a solution in the Forum Another build errors with gcc14

diff --git a/Configure b/Configure
index 9af1880..60a1e25 100755
--- a/Configure
+++ b/Configure
@@ -75,7 +75,7 @@ done
 CFLAGS="$COPT $CEXTRA"

 echo "Checking for libraries"
-echo 'main(){}' > test.c
+echo 'int main(void){return 0;}' > test.c
 LFLAGS=""
 for lib in -lcurses -lncurses; do
    if $CC $CFLAGS $LEXTRA test.c $lib > /dev/null 2>&1; then
diff --git a/game.c b/game.c
index 9615846..1417cf8 100644
--- a/game.c
+++ b/game.c
@@ -26,6 +26,7 @@
 #include <string.h>
 #include <sys/types.h>
 #include <netinet/in.h>
+#include <unistd.h>

 int netType;
 char keyTable[KT_numKeys + 1];

These changes in Configure and game.c fix the errors with gcc 14

Mendenlama commented on 2024-05-13 20:03 (UTC)

The package does not build with gcc 14 (as of May 13, 2024). make stops at game.c 412 "implicit declaration of function getopt" My workaround consists in installing gcc13, then: ./Configure --cc gcc-13; make The build runs without errors then.

gammy commented on 2020-11-10 17:24 (UTC)

Thanks for the info @seanh - I've hopefully fixed it, and merged in a new version while I was at it. Let me know if this fixes your problem.

seanh commented on 2020-11-10 00:30 (UTC)

Unfortunately, this package doesn't compile on the latest state of Arch. Possibly caused by backwards compatibility issues with recent version of GCC or GNU make. I don't know. Verified the bug on a docker image of arch too, so it's not just my machine.