compilation error by using gcc v15.1 : error: too many arguments to function...
Status: Beta
Brought to you by:
chtsanti
When i try to compile c-icap by using the now default gcc v15.1 on my gentoo box i run into the error
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -fvisibility=hidden -I./include/ -I./include/ -DCONFDIR=\"/etc/c-icap\" -DMODSDIR=\"/usr/lib64/c_icap/\" -DSERVDIR=\"/usr/lib64/c_icap/\" -DLOGDIR=\"/var/lib/log/\" -DDATADIR=\"/usr/share/c_icap/\" -D_REENTRANT -march=native -O2 -pipe -Wall -D_FILE_OFFSET_BITS=64 -c -o c_icap-http_auth.o `test -f 'http_auth.c' || echo './'`http_auth.c
http_auth.c: In function 'http_authenticate':
http_auth.c:119:13: error: too many arguments to function 'auth_method->release_authentication_header'; expected 0, have 1
119 | auth_method->release_authentication_header(auth_header);
| ^~~~~~~~~~~ ~~~~~~~~~~~
In file included from http_auth.c:24:
./include/module.h:99:12: note: declared here
99 | void (*release_authentication_header)();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:1223: c_icap-http_auth.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/net-proxy/c-icap-0.5.9/work/c-icap-server-C_ICAP_0.5.9'
make[1]: *** [Makefile:1425: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-proxy/c-icap-0.5.9/work/c-icap-server-C_ICAP_0.5.9'
make: *** [Makefile:639: all] Error 2
This i very likely a result of switching to -std=gnu23/-std=c23 by default which implies the removal of support for unprototyped functions. He're some hints and suggestions to deal with the issue: https://wiki.gentoo.org/wiki/Modern_C_porting#Fixes_.28C23.29
Please let me know if there's anything that i can do.
Thanks & best regards,
-tom
Anonymous
Please use latest c-icap-0.5.14 and try again.