Results 1 to 7 of 7

Thread: Compile error on Debian Potato

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    63

    Question Compile error on Debian Potato

    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

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    183
    Look for my post in the old forums about patch for egcs 2.91, it may fix some if not all your problems.

    You will need qt 2.3.2 or higher (some slightly earlier versions will work but you have to manually make some changes related to SGI theme support).

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    63

    Kinda figured :] but thought I'd ask anyway

    I'm /still/ compiling qt 3.something, having started about 12 hours ago. My little pentium pro is chuggin right along. After that's done I'll check into the ecgs like you mentioned and probably update the kernel too. thanks again!

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    63
    Wow.. [blink] I take that back. It hasn't been compiling for the past twelve hours. It just shut off. I searched the logs and couldn't find anything helpful other than the fact that at 21:34 there was a message in the logs about 'switching to runlevel 0'. Booted back up and now continuing to compile.

  5. #5
    Registered User
    Join Date
    Dec 2001
    Posts
    63

    Um.. wow

    I must admit, i've never seen a compile cause a system to power itself off. I tried reconfiguring and recompiling qt and it did the same thing again. I'm updating the kernel now to 2.4 and will try again. If it fails again I can only assume that there's something wrong somewhere that I can't figure out since I had no errors in system install and such.

    If this happens, does anyone know where I can get a debian package of qt? Thanks ahead of time.

  6. #6
    Registered User
    Join Date
    Dec 2001
    Posts
    411

    use debian unstable

    migrate to frozen or unstable (preferable unstable works great, i do all my dev work and run showeq in a debian unstable environment.
    casey AT trifocus DOT net

  7. #7
    Registered User
    Join Date
    Dec 2001
    Posts
    63

    This is fun... :P

    I upgraded the kernel, installed it and it boots fine... but now it doesn't see the nic's I had installed and configured under 2.2 kernel.. argh!!! I'm gonna scream >:P

    So I guess nevermind the questions about seq, I'll have to dig up answers about debian first! (unless anyone here can help, even though it's a bit off topic)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

You may post new threads
You may post replies
You may post attachments
You may edit your posts
HTML code is Off
vB code is On
Smilies are On
[IMG] code is On