Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

botcmd.c:1155:9: error: too many arguments to function ‘f’; expected 0, have 3 #1740

Closed
robert-scheck opened this issue Jan 17, 2025 · 3 comments · Fixed by #1741
Closed

Comments

@robert-scheck
Copy link

Building Eggdrop v1.10.0 from the release tarball on Fedora Rawhide using GCC 15 fails like this:

gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -pipe -Wall -I.. -I..  -DHAVE_CONFIG_H -I/usr/include  -c botcmd.c
botcmd.c: In function ‘bot_filereq’:
botcmd.c:1155:9: error: too many arguments to function ‘f’; expected 0, have 3
 1155 |         f(idx, from, path);
      |         ^ ~~~
make[1]: *** [Makefile:86: botcmd.o] Error 1
@michaelortmann
Copy link
Member

thanks for reporting, i also saw it with bleeding edge gcc-15-20250112 just 3 days ago, but i didnt expect the Issue to materialize yet.

Workaround is to use -std=gnu99, like: CFLAGS="-std=gnu99" ./configure

@michaelortmann
Copy link
Member

probably related to clang -Wdeprecated-non-prototype

@robert-scheck
Copy link
Author

robert-scheck commented Jan 17, 2025

thanks for reporting, i also saw it with bleeding edge gcc-15-20250112 just 3 days ago, but i didnt expect the Issue to materialize yet.

I'm the maintainer of the eggdrop package in Fedora, and currently the mass-rebuild for Fedora 42 takes place, where the eggdrop rebuild failed. This might be C23 related, given some other reports for some other packages. Main goal was to make you as upstream aware of it.

vanosg pushed a commit that referenced this issue Feb 2, 2025
Found by: robert-scheck
Patch by: michaelortmann
Fixes: #1740

GCC 15 changes the default language version for C compilation from -std=gnu17 to -std=gnu23. See https://gcc.gnu.org/gcc-15/changes.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants