Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 897946 - net-misc/ipsvd-1.0.0-r3 fails to compile (MUSL-CLANG-SYSTEM): cdb_make.c:18:21: error: incompatible function pointer types passing ssize_t (int, const void , size_t) (aka long (int, const void , unsigned long)) to parameter of type int ()() [-Wincompatib
Summary: net-misc/ipsvd-1.0.0-r3 fails to compile (MUSL-CLANG-SYSTEM): cdb_make.c:18:2...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-02-26 17:55 UTC by Agostino Sarubbo
Modified: 2024-01-03 08:35 UTC (History)
0 users

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


Attachments
build.log (build.log,53.81 KB, text/plain)
2023-02-26 17:55 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 2023-02-26 17:55:53 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-misc/ipsvd-1.0.0-r2 fails to compile (MUSL-CLANG-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-CLANG-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc + clang16 but this bug MAY or MAY NOT BE related to musl/clang16.
Comment 1 Agostino Sarubbo gentoo-dev 2023-02-26 17:55:55 UTC
Created attachment 854854 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-02-26 17:55:56 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


12: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
alloc.c:15:26: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
alloc.c:26:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
alloc_re.c:13:12: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
alloc_re.c:15:12: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
alloc_re.c:16:13: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
alloc_re.c:6:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
buffer_0.c:5:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
buffer_get.c:36:27: warning: passing arguments to 'byte_copyr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
buffer_put.c:13:11: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
buffer_put.c:40:14: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
buffer_put.c:44:12: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
buffer_put.c:66:12: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
cdb.c:48:14: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]    head = (struct cdb_hplist *) alloc(sizeof(struct cdb_hplist));
cdb.c:79:18: warning: passing arguments to 'byte_diff' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
cdb_make.c:106:37: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
cdb_make.c:36:39: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
ipsvd_phcc.c:17:21: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
ipsvd_phcc.c:18:25: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
ipsvd_phcc.c:36:9: warning: passing arguments to 'byte_diff' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
ipsvd_phcc.c:42:12: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
ipsvd_phcc.c:62:21: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
cdb_make.c:18:21: error: incompatible function pointer types passing 'ssize_t (int, const void *, size_t)' (aka 'long (int, const void *, unsigned long)') to parameter of type 'int (*)()' [-Wincompatible-function-pointer-types]
Comment 3 Larry the Git Cow gentoo-dev 2023-07-24 06:31:01 UTC
The bug has been referenced in the following commit(s):

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

commit aca2c88b0a70994950dc3d94093777d02e0383d3
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2023-07-16 09:43:32 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-07-24 06:30:57 +0000

    net-misc/ipsvd: Fix incompatible function pointer types
    
    Removing conditions for usage of sigsetmask and other such functions and
    using alternative functions.
    
    Bug: https://bugs.gentoo.org/897946
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/31614
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 .../files/ipsvd-1.0.0-fix-musl-clang-16.patch      | 139 +++++++++++++++++++++
 net-misc/ipsvd/ipsvd-1.0.0-r3.ebuild               |  44 +++++++
 2 files changed, 183 insertions(+)
Comment 4 Agostino Sarubbo gentoo-dev 2024-01-03 08:35:38 UTC
gcc14_tinderbox has reproduced this issue with version 1.0.0-r3 - Updating summary.