Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 883101 - app-pda/pilot-link-0.12.5-r4 fails to compile (CLANG-STRICTER-SYSTEM): linuxusb.c:60:16: error: incompatible function pointer types assigning to ssize_t ()(pi_socket_t , const unsigned char , size_t, int) (aka long ()(struct pi_socket , const unsigned ch
Summary: app-pda/pilot-link-0.12.5-r4 fails to compile (CLANG-STRICTER-SYSTEM): linuxu...
Status: RESOLVED FIXED
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: ~arch only
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-11-26 09:44 UTC by Agostino Sarubbo
Modified: 2025-04-24 19:12 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,72.54 KB, text/plain)
2022-11-26 09:44 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-11-26 09:44:13 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-pda/pilot-link-0.12.5-r4 fails to compile (CLANG-STRICTER-SYSTEM).
Discovered on: amd64 (internal ref: clang-stricter_tinderbox)

NOTE:
(CLANG-STRICTER-SYSTEM) in the summary means that the bug was found on a machine that runs clang with stricter mode

This machine uses clang with CFLAGS/CXXFLAGS=-Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-function-pointer-types

See also:
https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
https://wiki.gentoo.org/wiki/Modern_C_porting
Comment 1 Agostino Sarubbo gentoo-dev 2022-11-26 09:44:15 UTC
Created attachment 836841 [details]
build.log

build log and emerge --info
Comment 2 NHO 2025-04-01 15:39:13 UTC
Replicable on gcc systems with USE=-usb
Comment 3 Larry the Git Cow gentoo-dev 2025-04-24 19:12:30 UTC
The bug has been closed via the following commit(s):

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

commit 1dd7e1d8e95038a79daa81cdeccc1286c7381d86
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-04-01 15:46:38 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-24 19:11:45 +0000

    app-pda/pilot-link: port to C23
    
    Fix build issues, including with and without usb USE flag set.
    Configure checks for presence of bison, as .y file was changed
    added it to build depends
    
    Closes: https://bugs.gentoo.org/883101
    Closes: https://bugs.gentoo.org/944433
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Part-of: https://github.com/gentoo/gentoo/pull/41417
    Closes: https://github.com/gentoo/gentoo/pull/41417
    Signed-off-by: Sam James <sam@gentoo.org>

 .../pilot-link/files/pilot-link-0.12.5-C23.patch   |  85 +++++++++++++++++
 app-pda/pilot-link/pilot-link-0.12.5-r5.ebuild     | 103 +++++++++++++++++++++
 2 files changed, 188 insertions(+)