[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bacula-devel] Missing include path when compiling to make plugins/fd/bpipe-fd.lo

There is some confusion about CFLAGS and CPPFLAGS in the plugin makefiles in

FreeBSD 5.4 has libintl.h installed in /usr/local/include and this is detected
correctly by configure, but compiling plugins/fd/bpipe-fd.c to make
plugins/fd/bpipe-fd.lo fails like this:

libtool --silent --tag=CXX --mode=compile /usr/bin/g++   -g -Wall -fno-strict-aliasing -fno-exceptions -fno-rtti -pthread  -I../.. -I../../filed -c bpipe-fd.c
In file included from ../../bacula.h:166,
                 from bpipe-fd.c:34:
../../baconfig.h:124: libintl.h: No such file or directory
gmake: *** [bpipe-fd.lo] Error 1

The problem is that the rule for bpipe-fd.lo in plugins/fd/Makefile uses
CFLAGS only, but the necessary -I/usr/local/include option is only in

CFLAGS = -g -Wall -fno-strict-aliasing -fno-exceptions -fno-rtti -pthread 
CPPFLAGS = -I/usr/local/include -fno-strict-aliasing -fno-exceptions -fno-rtti

I see that other Bacula makefiles use both CFLAGS and CPPFLAGS in the
compilation options (via the .c.o rule).


Bacula-devel mailing list

This mailing list archive is a service of Copilotco.