This file arbitrarily includes: #include <cups/backend.h> I think compiling this needs to depend on HAVE_CUPS somehow (look at source3/printing/print_cups.c where the whole file is include bracketed by: #ifdef HAVE_CUPS Jeremy.