Bug#652159: netams: FTBFS: gtypes.h:34:24: fatal error: glibconfig.h: No such, file or directory
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.0 + +++ netams-3.4.5.new/debian/Rules.make 2012-01-13 02:06:19.0 + @@ -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
Bug#652159: netams: FTBFS: gtypes.h:34:24: fatal error: glibconfig.h: No such file or directory
Source: netams Version: 3.4.5-2 Severity: serious Tags: wheezy sid User: debian...@lists.debian.org Usertags: qa-ftbfs-20111210 qa-ftbfs Justification: FTBFS on amd64 Hi, During a rebuild of all packages in sid, your package failed to build on amd64. 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 full build log is available from: http://people.debian.org/~lucas/logs/2011/12/10/netams_3.4.5-2_lsid64.buildlog A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! About the archive rebuild: The rebuild was done on about 50 AMD64 nodes of the Grid'5000 platform, using a clean chroot. Internet was not accessible from the build systems. -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org