View Revisions: Issue #4247

Summary 0004247: latest official c-ares does not compile with UnrealIRCd
Revision 2013-12-04 16:54 by syzop
Description with the official latest c-ares ./configure fails because we may supply C preprocessor flags in CFLAGS.
The error (from 0004244) is:
configure: CFLAGS error: CFLAGS may only be used to specify C compiler flags, not include directories. Use CPPFLAGS for: -I/usr/local/include

Similarly it may complain about other flags as well, see cares/m4/xc-val-flgs.m4

Our (Unreal) configure may add an -I to certain directories when compiling with things like openssl (and zlib?). The code is there to catch common installations of openssl/zlib on systems that don't have these in the default search paths, hence we add them in configure.

Similarly, we use curl-config to grab cflags and such to add these...
$ ~/curl/bin/curl-config --cflags
-I/home/syzop/curl/include
which is funny because that would conflict with c-ares ;)

Anyway, maybe we can just avoid those problems and run the c-ares configure script before setting any CFLAGS/etc?

And(/or) update our Makefile and configure scripts to also support the use of CPPFLAGS.

Revision 2013-12-04 16:52 by syzop
Description with the official latest c-ares ./configure fails because we may supply C preprocessor flags in CFLAGS.
The error (from 0004244) is:
configure: CFLAGS error: CFLAGS may only be used to specify C compiler flags, not include directories. Use CPPFLAGS for: -I/usr/local/include

Similarly it may complain about other flags as well, see cares/m4/xc-val-flgs.m4

Our (Unreal) configure may add an -I to certain directories when compiling with things like openssl (and zlib?). The code is there to catch common installations of openssl/zlib on systems that don't have these in the default search paths, hence we add them in configure.

Similarly, we use curl-config to grab cflags and such to add these...
$ ~/curl/bin/curl-config --cflags
-I/home/syzop/curl/include
which is funny because that would conflict with c-ares ;)

Anyway, maybe we can just avoid those problems and run the c-ares configure script before setting any CFLAGS/etc?

And / or (possibly better!) update our Makefile and configure scripts to also support the use of CPPFLAGS.