After upgrading to Fedora 41 I get a compile error with rpmbuild --rebuild

I thought you had a solution adding the -Wno-implicit-function-declaration to the build?

Why is that not enough to get you working RPMs?

That does not work when compiling in support for IBM Informix esql

Ok so you will need to debug the build process and code then.