tags 652159 +patch
thanks
Relevant part:
gcc -g -Wall -pipe -O2 -I../src -I./ -D_BSD_SOURCE -I/usr/include/pcap
-I/usr/libipq -I../lib/libipulog/include -DHAVE_BW -DFAST_FW_CHECK
-DLAYER7_FILTER -DUSE_MYSQL -I/usr/include/mysql -DWIPE_OPENSSL
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DHAVE_BILLING -DDEBUG
-DLINUX -I/usr/include/pcap -I/usr/libipq -I../lib/libipulog/include
-I/usr/include/libnetfilter_queue -Wno-format-zero-length -I./libcli -c
libcli/libcli.c
In file included from /usr/include/glib-2.0/glib/ghash.h:34:0,
from ../src/config.h:52,
from libcli/libcli.c:2:
/usr/include/glib-2.0/glib/gtypes.h:34:24: fatal error: glibconfig.h: No such
file or directory
compilation terminated.
make[2]: *** [libcli.a] Error 1
The problem is glibconfig.h has moved to a multiarch dir.
The attatched patch fixes the build by replacing the hardcoded include paths
with a call to pkg-config.
diff -ur netams-3.4.5/debian/Rules.make netams-3.4.5.new/debian/Rules.make
--- netams-3.4.5/debian/Rules.make 2010-07-24 11:25:42.000000000 +0000
+++ netams-3.4.5.new/debian/Rules.make 2012-01-13 02:06:19.000000000 +0000
@@ -30,7 +30,7 @@
#DEFINE += -DUSE_HASH
DEFINE += -DUSE_MYSQL -I/usr/include/mysql
LIB += -lmysqlclient -L/usr/lib
-DEFINE += -DWIPE_OPENSSL -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
+DEFINE += -DWIPE_OPENSSL $(shell pkg-config --cflags glib-2.0)
LIB += -lglib-2.0 -L/usr/lib
DEFINE += -DHAVE_BILLING
SRC += billing.c s_billing.c