Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 870682

Summary: mail-filter/imapfilter: compilation failure with -Werror=strict-prototypes
Product: Gentoo Linux Reporter: Holger Hoffstätte <holger>
Component: Current packagesAssignee: Holger Hoffstätte <holger>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/lefcha/imapfilter/issues/256
See Also: https://github.com/gentoo/gentoo/pull/27304
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    

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(+)