Re: [bwm-tools-tech] autoclass error
Brought to you by:
nkukard
From: Nigel K. <nk...@lb...> - 2006-01-08 12:19:20
|
Hi Wikan, > Having heard good things about bwmtools I decided to give it a try. When > attempting to compile as per the instructions in the README and INSTALL > files i ran into the following error: > > if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -pthread > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > -I/usr/include/libxml2 > -DCONFIG_FILE=\"/etc/bwm_tools/firewall.xml\" > -DLOG_DIR=\"/var/bwm_tools\" -g -O2 -Wall -MT bwmd-autoclass.o -MD > -MP -MF ".deps/bwmd-autoclass.Tpo" -c -o bwmd-autoclass.o `test -f > 'autoclass.c' || echo './'`autoclass.c; \ > then mv -f ".deps/bwmd-autoclass.Tpo" ".deps/bwmd-autoclass.Po"; > else rm -f ".deps/bwmd-autoclass.Tpo"; exit 1; fi > autoclass.c: In function autoClassify_port: > autoclass.c:37: error: invalid storage class for function > tcpPortToPrio > autoclass.c:87: error: invalid storage class for function > udpPortToPrio > make[2]: *** [bwmd-autoclass.o] Error 1 > make[2]: Leaving directory `/usr/src/bwm_tools-0.2.2/bwmd' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/src/bwm_tools-0.2.2' > make: *** [all] Error 2 > > > The version I have is 0.2.2 and I'm trying to compile it on Fedora Core 4. > > Does anyone know what causes this and how it can be fixed? > Seems like a small gcc4 issue, please try the attached patch and let me know how it goes. -Nigel |