[cups.bugs] [MOD] STR #1422: unable to compile CUPS when CPPFLAGS is set

Tomasz Chmielewski mangoo at mch.one.pl
Wed Feb 15 06:16:59 PST 2006


[STR New]

I just tried to compile CUPS myself, and it failed, because I had CPPFLAGS
set to contain non-standard locations:

export CPPFLAGS="-I/home/data/wrt54/libjpeg/usr/local/include \
    -I/home/data/wrt54/libpng-1.2.8 -I/home/data/wrt54/tiff-3.8.0/libtiff"

If CPPFLAGS variable is set, the build process can't find config.h file,
and fails with errors like:

language.c: In function `cupsLangGet':
language.c:457: error: `CUPS_LOCALEDIR' undeclared (first use in this
function)
language.c:457: error: (Each undeclared identifier is reported only once
language.c:457: error: for each function it appears in.)
make[1]: *** [language.o] Fehler 1
make: *** [all] Fehler 1


A workaround is to contain cups directory in CPPFLAGS
(-I/home/data/wrt54/cups-1.1.23):

export CPPFLAGS="-I/home/data/wrt54/cups-1.1.23
-I/home/data/wrt54/libjpeg/usr/local/include \
    -I/home/data/wrt54/libpng-1.2.8 -I/home/data/wrt54/tiff-3.8.0/libtiff"

But it's rather unusual during the build process.

Link: http://www.cups.org/str.php?L1422
Version: 1.1.23





More information about the cups-devel mailing list