Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 921615 - app-emulation/fuse-1.6.0-r1 - ui/.../uijoystick.c: error: joysticks_supported undeclared (first use in this function)
Summary: app-emulation/fuse-1.6.0-r1 - ui/.../uijoystick.c: error: joysticks_supported...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-08 18:20 UTC by Toralf Förster
Modified: 2024-08-24 14:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,19.16 KB, text/plain)
2024-01-08 18:20 UTC, Toralf Förster
Details
app-emulation:fuse-1.6.0-r1:20240107-221149.log (app-emulation:fuse-1.6.0-r1:20240107-221149.log,54.42 KB, text/plain)
2024-01-08 18:20 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,61.94 KB, application/x-xz)
2024-01-08 18:20 UTC, Toralf Förster
Details
environment (environment,101.62 KB, text/plain)
2024-01-08 18:20 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.13 KB, application/x-xz)
2024-01-08 18:20 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,29.40 KB, application/x-xz)
2024-01-08 18:20 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,11.32 KB, application/x-xz)
2024-01-08 18:20 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,68.43 KB, application/x-xz)
2024-01-08 18:20 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,30.40 KB, application/x-xz)
2024-01-08 18:20 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-01-08 18:20:14 UTC
too long lines were shrinked:

x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread   -I/usr/include/libxml2 -DFUSEDATADIR="\"/usr/share/fuse\"" -I/usr/include/libpng16   -Wall -Wwrite-strings  -fpermissive -O2 -pipe -march=native -fno-diagnostics-col
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread   -I/usr/include/libxml2 -DFUSEDATADIR="\"/usr/share/fuse\"" -I/usr/include/libpng16   -Wall -Wwrite-strings  -fpermissive -O2 -pipe -march=native -fno-diagnostics-col
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread   -I/usr/include/libxml2 -DFUSEDATADIR="\"/usr/share/fuse\"" -I/usr/include/libpng16   -Wall -Wwrite-strings  -fpermissive -O2 -pipe -march=native -fno-diagnostics-col
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread   -I/usr/include/libxml2 -DFUSEDATADIR="\"/usr/share/fuse\"" -I/usr/include/libpng16   -Wall -Wwrite-strings  -fpermissive -O2 -pipe -march=native -fno-diagnostics-col
In file included from ui/null/null_ui.c:29:
ui/null/../uijoystick.c: In function ui_joystick_end:
ui/null/../uijoystick.c:185:19: error: joysticks_supported undeclared (first use in this function)
  185 |   for( i = 0; i < joysticks_supported; i++ ) JSClose( &jsd[i] );
      |                   ^~~~~~~~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-20240103-143015

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.7
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.74.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.20.12 linux/amd64

  HEAD of ::gentoo
commit 9a9fd3dafc8d471a3d032b1cbe9b4cc6cc817636
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Jan 7 21:18:19 2024 +0000

    2024-01-07 21:18:19 UTC

emerge -qpvO app-emulation/fuse
[ebuild  N    ] app-emulation/fuse-1.6.0-r1  USE="alsa gpm joystick memlimit png xml zlib -ao -backend-X -backend-fbcon -backend-gtk3 -backend-sdl (-backend-svga) -pulseaudio"
Comment 1 Toralf Förster gentoo-dev 2024-01-08 18:20:15 UTC
Created attachment 881677 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-01-08 18:20:16 UTC
Created attachment 881678 [details]
app-emulation:fuse-1.6.0-r1:20240107-221149.log
Comment 3 Toralf Förster gentoo-dev 2024-01-08 18:20:18 UTC
Created attachment 881679 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2024-01-08 18:20:19 UTC
Created attachment 881680 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-01-08 18:20:20 UTC
Created attachment 881681 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-01-08 18:20:21 UTC
Created attachment 881682 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-01-08 18:20:22 UTC
Created attachment 881683 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-01-08 18:20:23 UTC
Created attachment 881684 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-01-08 18:20:24 UTC
Created attachment 881685 [details]
temp.tar.xz
Comment 10 Paul Osmialowski 2024-08-24 14:08:29 UTC
I suspect your issue can be solved by installation of libjsw. But you know what? libjsw isn't particularly fit for purpose. It doesn't support 80s joysticks emulated as hat (both fuse and hatari emulators can benefit from this feature, as long as they use SDL joystick routines). Trouble is, with current state of configure scripts, it is impossible to turn it off. Hence I've prepared the following patch and saved it as /etc/portage/patches/app-emulation/fuse/fuse-never-use-libjsw.patch (you need to configure your portage to make use of local patches):


iff '--color=auto' -ruN fuse-1.6.0.old/configure fuse-1.6.0/configure
--- fuse-1.6.0.old/configure    2021-02-27 03:02:54.000000000 +0000
+++ fuse-1.6.0/configure        2024-08-24 14:43:40.425353483 +0100
@@ -17748,7 +17748,7 @@
 $as_echo_n "checking whether to use $UI's joystick support... " >&6; }
       # Check whether --enable-ui-joystick was given.
 if test "${enable_ui_joystick+set}" = set; then :
-  enableval=$enable_ui_joystick; if test "$enableval" = no; then libjsw=yes; else libjsw=no; fi
+  enableval=$enable_ui_joystick; if test "$enableval" = no; then libjsw=no; else libjsw=no; fi
 else
   libjsw=no
 fi
@@ -17769,7 +17769,7 @@
 $as_echo_n "checking whether to use $UI's joystick support... " >&6; }
       # Check whether --enable-ui-joystick was given.
 if test "${enable_ui_joystick+set}" = set; then :
-  enableval=$enable_ui_joystick; if test "$enableval" = no; then libjsw=yes; else libjsw=no; fi
+  enableval=$enable_ui_joystick; if test "$enableval" = no; then libjsw=no; else libjsw=no; fi
 else
   libjsw=no
 fi
@@ -17798,7 +17798,7 @@
       libjsw=no
       ;;
     *)
-            libjsw=yes
+            libjsw=no
       ;;
   esac
   if test "$libjsw" = yes; then
diff '--color=auto' -ruN fuse-1.6.0.old/configure.ac fuse-1.6.0/configure.ac
--- fuse-1.6.0.old/configure.ac 2021-02-27 03:02:48.000000000 +0000
+++ fuse-1.6.0/configure.ac     2024-08-24 14:42:46.313970064 +0100
@@ -763,7 +763,7 @@
       AC_MSG_CHECKING([whether to use $UI's joystick support])
       AC_ARG_ENABLE(ui-joystick,
       AS_HELP_STRING([--disable-ui-joystick], [use libjsw joystick code (where supported)]),
-      if test "$enableval" = no; then libjsw=yes; else libjsw=no; fi,
+      if test "$enableval" = no; then libjsw=no; else libjsw=no; fi,
       libjsw=no)
       if test "$libjsw" = yes; then
         AC_MSG_RESULT([no, use libjsw])
@@ -799,7 +799,7 @@
       ;;
     *)
       dnl Our only option is libjsw.
-      libjsw=yes
+      libjsw=no
       ;;
   esac
   if test "$libjsw" = yes; then
Comment 11 Paul Osmialowski 2024-08-24 14:31:56 UTC
Actually, only the configure.ac part of this patch is needed, the configure script is being regenerated anyway. And no, not using the joystick USE flag does not help, this libjsw thing needs to be treated with sheer brutality.