Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 875005

Summary: games-util/etswitch-0.1.14-r2 - etswitch.c: error: incompatible pointer to integer conversion passing
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Games <games>
Status: CONFIRMED ---    
Severity: normal CC: ionen, mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
clang.tar.bz2
emerge-history.txt
environment
etc.portage.tar.bz2
games-util:etswitch-0.1.14-r1:20221004-053756.log
logs.tar.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-10-04 16:31:09 UTC
      deprecated in all versions of C [-Wstrict-prototypes]
void win_init(){
             ^
              void
etswitch.c:777:63: error: incompatible pointer to integer conversion passing
      'int *' to parameter of type 'int'; dereference with * [-Wint-conversion]
  ...win.do_accel, win.do_threshold, win.accel_numerator_return[0], win.accel...

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-j4-20221003-222746

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.1
Python 3.10.7
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit 7178c82507c105041b97e9aeb445f5a94b6f38a1
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Oct 4 04:47:39 2022 +0000

    2022-10-04 04:47:39 UTC

emerge -qpvO games-util/etswitch
[ebuild  N    ] games-util/etswitch-0.1.14-r1
Comment 1 Toralf Förster gentoo-dev 2022-10-04 16:31:10 UTC
Created attachment 819256 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-04 16:31:10 UTC
Created attachment 819259 [details]
clang.tar.bz2
Comment 3 Toralf Förster gentoo-dev 2022-10-04 16:31:12 UTC
Created attachment 819262 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-10-04 16:31:13 UTC
Created attachment 819265 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-10-04 16:31:14 UTC
Created attachment 819268 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-04 16:31:16 UTC
Created attachment 819271 [details]
games-util:etswitch-0.1.14-r1:20221004-053756.log
Comment 7 Toralf Förster gentoo-dev 2022-10-04 16:31:17 UTC
Created attachment 819274 [details]
logs.tar.bz2
Comment 8 Toralf Förster gentoo-dev 2022-10-04 16:31:18 UTC
Created attachment 819277 [details]
temp.tar.bz2
Comment 9 Ionen Wolkens gentoo-dev 2022-11-28 23:29:04 UTC
Think should last rite this. Just missing some *win in theory but not convinced this still works and looks rather antiquated (XFree86-DGA), HOMEPAGE/SRC_URI are dead, and was never bumped since initial commit in 2008 (and 0.1.14 is from 2006 upstream).
Comment 10 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-12-23 13:52:20 UTC
Funny enough, I still have it installed, even though I haven't played (or had installed) ET in ages.  It would be nice to check 1) if it still works, and 2) if it is still necessary.  In the end, these games that take over your screen and prevent you from switching windows were kind of annoying.

I think XFree86-DGA is only used to output warning when it is loaded:

```
*** You have XFree86-DGA loaded ***
Games(Quake3 based ones for example) using XFree86-DGA mouse hooks may
not release mouse pointer, read the documentation on how to disable
XFree86-DGA if in_dgamouse 0 doesnt help.
*** You have XFree86-DGA loaded ***
```
Comment 11 Ionen Wolkens gentoo-dev 2023-01-19 06:45:14 UTC
Guess can leave it alone for now if it may still have uses (never used myself).

wrt pointer types issues, ideally would prefer someone that can try it fixes it albeit I doubt it can get worse even with a blind fix
Comment 12 Agostino Sarubbo gentoo-dev 2023-12-31 10:36:37 UTC
gcc14_tinderbox has reproduced this issue with version 0.1.14-r2 - Updating summary.