Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 891533 - sys-devel/dev86: error: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x
Summary: sys-devel/dev86: error: a function definition without a prototype is deprecat...
Status: UNCONFIRMED
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: PATCH
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-01-21 06:49 UTC by Peter Levine
Modified: 2024-04-02 11:49 UTC (History)
3 users (show)

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


Attachments
dev86-clang16.patch (dev86-clang16.patch,126.77 KB, patch)
2023-02-11 04:57 UTC, Peter Levine
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Levine 2023-01-21 06:49:58 UTC
Building with sys-devel/clang-16.0.0_pre20230107 fails with:

> ifdef.c:63:1: error: a function definition without a prototype is deprecated in all versions of C and is not supported in
>       C2x [-Werror,-Wdeprecated-non-prototype]
> main(argc, argv)
> ^
> ifdef.c:109:6: error: a function definition without a prototype is deprecated in all versions of C and is not supported
>       in C2x [-Werror,-Wdeprecated-non-prototype]
> void Usage(prog)
>      ^
> ifdef.c:129:1: error: a function definition without a prototype is deprecated in all versions of C and is not supported
>       in C2x [-Werror,-Wdeprecated-non-prototype]
> save_name(varname, state)
> ^
> ifdef.c:155:1: error: a function definition without a prototype is deprecated in all versions of C and is not supported
>       in C2x [-Werror,-Wdeprecated-non-prototype]
> do_file(fname)
> ^
> ifdef.c:195:1: error: a function definition without a prototype is deprecated in all versions of C and is not supported
>       in C2x [-Werror,-Wdeprecated-non-prototype]
> set_line(lineno)
> ^
> ifdef.c:256:1: error: a function definition without a prototype is deprecated in all versions of C and is not supported
>       in C2x [-Werror,-Wdeprecated-non-prototype]
> do_ifdef(p, which)
> ^
> ifdef.c:373:1: error: a function definition without a prototype is deprecated in all versions of C and is not supported
>       in C2x [-Werror,-Wdeprecated-non-prototype]
> check_name(nm)
> ^
> ifdef.c:399:1: error: a function definition without a prototype is deprecated in all versions of C and is not supported
>       in C2x [-Werror,-Wdeprecated-non-prototype]
> fatal(msg)
> ^
> 8 errors generated.
Comment 1 Jonas Stein gentoo-dev 2023-01-21 23:07:56 UTC
this should be reported upstream with a patch. There are forks which are still maintained and who likely will merge it.
Comment 2 Peter Levine 2023-01-22 02:28:30 UTC
(In reply to Jonas Stein from comment #1)
> this should be reported upstream with a patch. There are forks which are
> still maintained and who likely will merge it.

I'm working on several bugs for this package, including this one.

The list of forks: https://techgaun.github.io/active-forks/index.html#lkundrak/dev86

I assume the jbruchon fork would be the best choice.
Comment 3 Peter Levine 2023-02-11 04:57:20 UTC
Created attachment 850368 [details, diff]
dev86-clang16.patch

I started this with the best of intentions but I don't think I can devote much more time to this.  Aside from the clang-16 issues, there were a number of bcc runtime parsing errors that I'm not inclined to debug. I've attached the clang-16 fixes if anyone wants to continue.
Comment 4 jy6x2b32pie9 2024-04-02 11:49:19 UTC
Waiting for new release upstream
https://codeberg.org/jbruchon/dev86/issues/1