Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 870682 - mail-filter/imapfilter: compilation failure with -Werror=strict-prototypes
Summary: mail-filter/imapfilter: compilation failure with -Werror=strict-prototypes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Holger Hoffstätte
URL: https://github.com/lefcha/imapfilter/...
Whiteboard: fixed in 2.7.6
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-09-17 11:34 UTC by Holger Hoffstätte
Modified: 2024-10-26 20:43 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Hoffstätte 2022-09-17 11:34:42 UTC
$make CC=clang CXX=clang++ CFLAGS="-pipe -march=native -O2 -Werror=strict-prototypes -I/usr/include/luajit-2.1 -DCONFIG_SHAREDIR='\"/usr/share/imapfilter\"' -DCONFIG_SSL_CAFILE='\"/etc/ssl/cert.pem\"' -DCONFIG_SSL_CAPATH='\"/etc/ssl/certs\"' " CXXFLAGS="$(echo $CFLAGS)"
...
clang -pipe -march=native -O2 -Werror=strict-prototypes -I/usr/include/luajit-2.1 -DCONFIG_SHAREDIR='"/usr/share/imapfilter"'  -DCONFIG_SSL_CAFILE='"/etc/ssl/cert.pem"' -DCONFIG_SSL_CAPATH='"/etc/ssl/certs"'    -c -o lua.o lua.c
lua.c:29:10: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
start_lua()
         ^
          void
1 error generated.
make[1]: *** [<builtin>: lua.o] Error 1


Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2022-09-17 21:13:37 UTC
The bug has been closed via the following commit(s):

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

commit bebe48a569c277bfa5b4835cababf62c3b7c9769
Author:     Holger Hoffstätte <holger@applied-asynchrony.com>
AuthorDate: 2022-09-17 11:51:03 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-09-17 21:13:31 +0000

    mail-filter/imapfilter: fix build with -Werror=strict-prototypes
    
    Closes: https://bugs.gentoo.org/870682
    Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
    Closes: https://github.com/gentoo/gentoo/pull/27304
    Signed-off-by: Sam James <sam@gentoo.org>

 .../imapfilter/files/2.7.6-prototypes.patch        | 30 ++++++++++++++++++++++
 mail-filter/imapfilter/imapfilter-2.7.6.ebuild     |  4 +++
 2 files changed, 34 insertions(+)