Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 894714 - dev-db/cdb-0.75-r4 fails to compile (MUSL-CLANG-SYSTEM): cdbget.c:26:1: error: type specifier missing, defaults to int; ISO C99 and later do not support implicit int [-Wimplicit-int]
Summary: dev-db/cdb-0.75-r4 fails to compile (MUSL-CLANG-SYSTEM): cdbget.c:26:1: error...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Akinori Hattori
URL:
Whiteboard: patch
Keywords: PullRequest
Depends on: 945082
Blocks: c99-porting gcc-14-stable
  Show dependency tree
 
Reported: 2023-02-16 08:09 UTC by Agostino Sarubbo
Modified: 2024-11-27 06:38 UTC (History)
0 users

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


Attachments
build.log (build.log,48.99 KB, text/plain)
2023-02-16 08:09 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-16 08:09:52 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-db/cdb-0.75-r4 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-16 08:09:55 UTC
Created attachment 851542 [details]
build.log

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


buffer_0.c:4: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:7:14: warning: passing arguments to 'read' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
buffer_get.c:10: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_get.c:20: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_get.c:34: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:11: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:38: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: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]
buffer_put.c:64: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]
cdb.c:55:17: warning: passing arguments to 'read' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
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]
cdbget.c:26:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
Comment 3 Larry the Git Cow gentoo-dev 2024-11-26 22:42:44 UTC
The bug has been closed via the following commit(s):

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

commit 3912817bfaff968118c02bada3730473ad27fc62
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2024-06-28 10:01:08 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-26 22:41:56 +0000

    dev-db/cdb: Port to C99
    
    Main patch is from bug 874963
    
    Closes: https://bugs.gentoo.org/874963
    Closes: https://bugs.gentoo.org/894714
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Closes: https://github.com/gentoo/gentoo/pull/34204
    Closes: https://github.com/gentoo/gentoo/pull/37334
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-db/cdb/cdb-0.75-r5.ebuild        |  61 +++++
 dev-db/cdb/files/cdb-C99.patch       | 482 +++++++++++++++++++++++++++++++++++
 dev-db/cdb/files/cdb-make-type.patch | 119 +++++++++
 3 files changed, 662 insertions(+)