Re: [bwm-tools-tech] Compilation problems
Brought to you by:
nkukard
From: Nigel K. <nk...@lb...> - 2003-11-30 13:27:39
|
Fixed in version 0.1.7, on freshmeat soon Thanks man -Nigel On Sun, Nov 30, 2003 at 01:04:11PM +0000, Henning Botha wrote: > I get the following error trying to compile bwm-tools. I've tried version= s=20 > 0.1.6, 0.1.4 and 0.1.2. >=20 > flowControl.c: In function `controlRunner': > flowControl.c:235: parse error before `struct' > flowControl.c:245: `tempStat' undeclared (first use in this function) > flowControl.c:245: (Each undeclared identifier is reported only once > flowControl.c:245: for each function it appears in.) > make[2]: *** [flowControl.o] Error 1 > make[2]: Leaving directory `/home/hjb/bwm_tools-0.1.x/bwmd' > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/home/hjb/bwm_tools-0.1.x/bwmd' > make: *** [all] Error 2 >=20 > What am I doing wrong? gcc is version 2.95.4. >=20 > Complete compilation log follows. >=20 > Thanks, > Henning >=20 > [hq:~/bwm_tools-0.1.2]$ ./configure > checking for gcc... gcc > checking for C compiler default output... a.out > checking whether the C compiler works... yes > checking whether we are cross compiling... no > checking for suffix of executables... > checking for suffix of object files... o > checking whether we are using the GNU C compiler... yes > checking whether gcc accepts -g... yes > checking for gcc option to accept ANSI C... none needed > checking for a BSD-compatible install... /usr/bin/install -c > checking how to run the C preprocessor... gcc -E > checking for egrep... grep -E > checking for ANSI C header files... yes > checking for sys/types.h... yes > checking for sys/stat.h... yes > checking for stdlib.h... yes > checking for string.h... yes > checking for memory.h... yes > checking for strings.h... yes > checking for inttypes.h... yes > checking for stdint.h... yes > checking for unistd.h... yes > checking arpa/inet.h usability... yes > checking arpa/inet.h presence... yes > checking for arpa/inet.h... yes > checking fcntl.h usability... yes > checking fcntl.h presence... yes > checking for fcntl.h... yes > checking netinet/in.h usability... yes > checking netinet/in.h presence... yes > checking for netinet/in.h... yes > checking for stdlib.h... (cached) yes > checking for string.h... (cached) yes > checking sys/socket.h usability... yes > checking sys/socket.h presence... yes > checking for sys/socket.h... yes > checking sys/time.h usability... yes > checking sys/time.h presence... yes > checking for sys/time.h... yes > checking for unistd.h... (cached) yes > checking for stdbool.h that conforms to C99... no > checking for _Bool... no > checking for an ANSI C-conforming const... yes > checking for size_t... yes > checking whether time.h and sys/time.h may both be included... yes > checking for stdlib.h... (cached) yes > checking for GNU libc compatible malloc... yes > checking for stdlib.h... (cached) yes > checking for GNU libc compatible realloc... yes > checking sys/select.h usability... yes > checking sys/select.h presence... yes > checking for sys/select.h... yes > checking for sys/socket.h... (cached) yes > checking types of arguments for select... int,fd_set *,struct timeval * > checking return type of signal handlers... void > checking whether lstat dereferences a symlink specified with a trailing= =20 > slash... yes > checking whether stat accepts an empty string... no > checking for gettimeofday... yes > checking for inet_ntoa... yes > checking for memset... yes > checking for select... yes > checking for socket... yes > checking for strcasecmp... yes > checking for strchr... yes > checking for strdup... yes > checking for strerror... yes > checking for strncasecmp... yes > checking for strndup... yes > checking for pkg-config... /usr/bin/pkg-config > checking for GLIB - version >=3D 2.0.0... yes (version 2.0.1) > checking for xml2-config... /usr/bin/xml2-config > checking for libxml - version >=3D 2.0.0... makeyes (version 2.5.11) > configure: creating ./config.status > config.status: creating Makefile > config.status: creating makefile.inc > config.status: creating lib/Makefile > config.status: creating bwm_firewall/Makefile > config.status: creating bwm_graph/Makefile > config.status: creating bwmd/Makefile > config.status: creating bwm_monitor/Makefile > config.status: creating config.h >=20 > [hq:~/bwm_tools-0.1.2]$ make > for dir in lib bwm_firewall bwm_graph bwmd bwm_monitor; \ > do \ > make -C $dir all; \ > res=3D$?; \ > if [ $res !=3D '0' ]; then exit $res; fi \ > done > make[1]: Entering directory `/home/hjb/bwm_tools-0.1.2/lib' > cc -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include =20 > -I/usr/include/libxml2 -Wall -I../include -D > _GNU_SOURCE --depend flow.c ipq.c libipq.c xmlConf.c autoclass.c misc.c >= =20 > .deps > make libbwm.a > make[2]: Entering directory `/home/hjb/bwm_tools-0.1.2/lib' > cc -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include =20 > -I/usr/include/libxml2 -Wall -I../include - > D_GNU_SOURCE -c flow.c > cc -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include =20 > -I/usr/include/libxml2 -Wall -I../include - > D_GNU_SOURCE -c ipq.c > ipq.c: In function `queuePacket': > ipq.c:141: warning: unused variable `icmph' > cc -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include =20 > -I/usr/include/libxml2 -Wall -I../include - > D_GNU_SOURCE -c libipq.c > cc -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include =20 > -I/usr/include/libxml2 -Wall -I../include - > D_GNU_SOURCE -c xmlConf.c > cc -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include =20 > -I/usr/include/libxml2 -Wall -I../include - > D_GNU_SOURCE -c autoclass.c > cc -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include =20 > -I/usr/include/libxml2 -Wall -I../include - > D_GNU_SOURCE -c misc.c > ar cr libbwm.a flow.o ipq.o libipq.o xmlConf.o autoclass.o misc.o > make[2]: Leaving directory `/home/hjb/bwm_tools-0.1.2/lib' > make[1]: Leaving directory `/home/hjb/bwm_tools-0.1.2/lib' > make[1]: Entering directory `/home/hjb/bwm_tools-0.1.2/bwm_firewall' > cc -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include =20 > -I/usr/include/libxml2 -DCONFIG_FILE=3D\"/etc/ > bwm_tools/firewall.xml\" -DIPTABLES_FILE=3D\"/etc/sysconfig/iptables\" -W= all=20 > -I../include -D_GNU_SOURCE --depend bwm_f > irewall.c > .deps > make bwm_firewall > make[2]: Entering directory `/home/hjb/bwm_tools-0.1.2/bwm_firewall' > cc -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include =20 > -I/usr/include/libxml2 -DCONFIG_FILE=3D\"/etc > /bwm_tools/firewall.xml\" -DIPTABLES_FILE=3D\"/etc/sysconfig/iptables\" -= Wall=20 > -I../include -D_GNU_SOURCE -c bwm_firewa > ll.c > cc -o bwm_firewall bwm_firewall.o ../lib/libbwm.a -lgthread-2.0 -lpthread= =20 > -lglib-2.0 -lxml2 -lpthread -lz -lm > make[2]: Leaving directory `/home/hjb/bwm_tools-0.1.2/bwm_firewall' > make[1]: Leaving directory `/home/hjb/bwm_tools-0.1.2/bwm_firewall' > make[1]: Entering directory `/home/hjb/bwm_tools-0.1.2/bwm_graph' > cc -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include =20 > -DLOG_DIR=3D\"/var/bwm_tools\" -Wall -I../includ > e -D_GNU_SOURCE --depend bwm_graph.c graph.c > .deps > make bwm_graph > make[2]: Entering directory `/home/hjb/bwm_tools-0.1.2/bwm_graph' > cc -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include =20 > -DLOG_DIR=3D\"/var/bwm_tools\" -Wall -I../inclu > de -D_GNU_SOURCE -c bwm_graph.c > cc -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include =20 > -DLOG_DIR=3D\"/var/bwm_tools\" -Wall -I../inclu > de -D_GNU_SOURCE -c graph.c > cc -o bwm_graph bwm_graph.o graph.o ../lib/libbwm.a -lgthread-2.0 -lpthre= ad=20 > -lglib-2.0 -lrrd > make[2]: Leaving directory `/home/hjb/bwm_tools-0.1.2/bwm_graph' > make[1]: Leaving directory `/home/hjb/bwm_tools-0.1.2/bwm_graph' > make[1]: Entering directory `/home/hjb/bwm_tools-0.1.2/bwmd' > cc -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include =20 > -I/usr/include/libxml2 -DCONFIG_FILE=3D\"/etc/ > bwm_tools/firewall.xml\" -DLOG_DIR=3D\"/var/bwm_tools\" -Wall -I../includ= e=20 > -D_GNU_SOURCE --depend report.c flowControl > .c bwmd.c > .deps > make bwmd > make[2]: Entering directory `/home/hjb/bwm_tools-0.1.2/bwmd' > cc -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include =20 > -I/usr/include/libxml2 -DCONFIG_FILE=3D\"/etc > /bwm_tools/firewall.xml\" -DLOG_DIR=3D\"/var/bwm_tools\" -Wall -I../inclu= de=20 > -D_GNU_SOURCE -c report.c > cc -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include =20 > -I/usr/include/libxml2 -DCONFIG_FILE=3D\"/etc > /bwm_tools/firewall.xml\" -DLOG_DIR=3D\"/var/bwm_tools\" -Wall -I../inclu= de=20 > -D_GNU_SOURCE -c flowControl.c > flowControl.c: In function `controlRunner': > flowControl.c:235: parse error before `struct' > flowControl.c:245: `tempStat' undeclared (first use in this function) > flowControl.c:245: (Each undeclared identifier is reported only once > flowControl.c:245: for each function it appears in.) > make[2]: *** [flowControl.o] Error 1 > make[2]: Leaving directory `/home/hjb/bwm_tools-0.1.2/bwmd' > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/home/hjb/bwm_tools-0.1.2/bwmd' > make: *** [all] Error 2 >=20 > _________________________________________________________________ > Groove on the latest from the hot new rock groups! Get downloads, videos= ,=20 > and more here. http://special.msn.com/entertainment/wiredformusic.armx >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > bwm-tools-tech mailing list > bwm...@li... > https://lists.sourceforge.net/lists/listinfo/bwm-tools-tech |