Just installed a debian box lately to work as a replacement router for the mandrake box I had (which the bios battery failed on and it flaked after a power outage). I'm still getting used to debian, but when compiling I'm getting an error as follows.

I realize the kernel is a little old, and I'll be updating asap, but here's what I have so far:

Linux spastic 2.2.19pre17-idepci #1 Mon Apr 2 01:31:38 PDT 2001 i686 unknown

all packages are said to be 'most current version' when running an apt-get install XXX. QT was also installed as version 2.0.2 (and I'm rebuilding that as 3.+ just now to try and see if that helps, but when running make -f makefile.dist, it said the version of 2.0.2 was workable.

Thanks ahead of time :]

(---- error message follows ----)

make
make all-recursive
make[1]: Entering directory `/root/linux'
Making all in maps
make[2]: Entering directory `/root/linux/maps'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/linux/maps'
Making all in src
make[2]: Entering directory `/root/linux/src'
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt2/include -I/usr/X11R6/include -DMAPDIR=\"/usr/local/share/showeq\" -DLOGDIR=\"/usr/local/share/showeq\" -I/usr/include/pcap -g -O2 -c main.cpp
In file included from interface.h:31,
from main.cpp:20:
packet.h:433: syntax error before `('
packet.h:433: ANSI C++ forbids declaration `__v' with no type
packet.h:433: parse error at null character
packet.h:434: syntax error before `('
packet.h:435: syntax error before `('
packet.h:435: ANSI C++ forbids declaration `__v' with no type
packet.h:435: parse error before `}'
packet.h:436: syntax error before `('
packet.h:439: non-member function `getIPVersion()' cannot have `const' method qualifier
packet.h: In function `uint8_t getIPVersion()':
packet.h:439: `m_ip' undeclared (first use this function)
packet.h:439: (Each undeclared identifier is reported only once
packet.h:439: for each function it appears in.)
packet.h: At top level:
packet.h:442: non-member function `getIPv4TOS()' cannot have `const' method qualifier
packet.h:443: non-member function `getIPv4IDRaw()' cannot have `const' method qualifier
packet.h:444: non-member function `getIPv4FragOff()' cannot have `const' method qualifier
packet.h:445: non-member function `getIPv4Protocol()' cannot have `const' method qualifier
packet.h:446: non-member function `getIPv4TTL()' cannot have `const' method qualifier
packet.h:447: syntax error before `('
packet.h:447: ANSI C++ forbids declaration `__v' with no type
packet.h:447: redefinition of `int __v'
packet.h:435: `int __v' previously declared here
packet.h:447: parse error before `}'
packet.h:448: syntax error before `('
packet.h:449: non-member function `getIPv4SourceA()' cannot have `const' method qualifier
packet.h:450: non-member function `getIPv4SourceInAddr()' cannot have `const' method qualifier
packet.h:452: syntax error before `('
packet.h:452: ANSI C++ forbids declaration `__v' with no type
packet.h:452: redefinition of `int __v'
packet.h:447: `int __v' previously declared here
packet.h:452: parse error before `}'
packet.h:453: syntax error before `('
packet.h:454: non-member function `getIPv4DestA()' cannot have `const' method qualifier
packet.h:455: non-member function `getIPv4DestInAddr()' cannot have `const' method qualifier
packet.h:459: non-member function `headerFlags(bool)' cannot have `const' method qualifier
packet.h:461: parse error before `protected'
packet.h:466: `struct ip * m_ip' used prior to declaration
packet.h:469: parse error before `}'
packet.h:663: `in_addr_t' was not declared in this scope
packet.h:663: parse error before `)'
packet.h:681: type specifier omitted for parameter
packet.h:681: parse error before `='
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/root/linux/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/linux'
make: *** [all-recursive-am] Error 2