Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951330 - sys-apps/lssbus-0.1-r1 lssbus.c:562:23: error: assignment to ‘struct sbusDevice *’ from incompatible pointer type ‘struct device *’ [-Wincompatible-pointer-types]
Summary: sys-apps/lssbus-0.1-r1 lssbus.c:562:23: error: assignment to ‘struct sbusDev...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sparc Porters
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2025-03-14 09:14 UTC by immolo
Modified: 2025-05-01 03:10 UTC (History)
1 user (show)

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


Attachments
build.log (lssbus-0.1-r1-build.log,2.10 KB, text/x-log)
2025-03-14 09:14 UTC, immolo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description immolo 2025-03-14 09:14:31 UTC
Created attachment 920754 [details]
build.log

sparc64-unknown-linux-gnu-gcc -O2 -mcpu=ultrasparc -pipe -Wl,-O1 -Wl,--as-needed lssbus.c -o lssbus
lssbus.c: In function ‘main’:
lssbus.c:562:23: warning: format not a string literal and no format arguments [-Wformat-security]
  562 |       fprintf(stderr, help_msg);
      |                       ^~~~~~~~
lssbus.c:575:25: warning: format not a string literal and no format arguments [-Wformat-security]
  575 |         fprintf(stderr, help_msg);
      |                         ^~~~~~~~
lssbus.c:595:21: error: assignment to ‘struct sbusDevice *’ from incompatible pointer type ‘struct device *’ [-Wincompatible-pointer-types]
  595 |     devlist[numDevs]=devices;
      |                     ^
make: *** [Makefile:11: lssbus] Error 1

I can't seem to find the upstream sources for this any more so I'm wondering if we should just append -std=gnu89 and call it a day, however opening a bug in case someone disagrees and can see a better fix.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-05-01 03:10:25 UTC
Not ideal but I don't want to analyse and figure out how to test the code on real HW. WFM, thanks.
Comment 2 Larry the Git Cow gentoo-dev 2025-05-01 03:10:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f6b43122743e6059df5d7d2bfb100baca220ee7

commit 1f6b43122743e6059df5d7d2bfb100baca220ee7
Author:     Ian Jordan <immoloism@gmail.com>
AuthorDate: 2025-04-30 23:44:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-05-01 03:10:06 +0000

    sys-apps/lssbus: Force gnustd89
    
    Package seems no longer supported by upstream, so using the workaround fix to allow users to use it on Gentoo before a better soultion is found.
    
    This is also fixes the issue with SPARC installcd not building for Releng.
    
    Closes: https://bugs.gentoo.org/951330
    Signed-off-by: Ian Jordan <immoloism@gmail.com>
    Part-of: https://github.com/gentoo/gentoo/pull/41870
    Closes: https://github.com/gentoo/gentoo/pull/41870
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/lssbus/lssbus-0.1-r1.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)