Compilation problem <netinet/in.h>

Help
2005-04-04
2013-04-23
  • Hi,
    I am running Redhat 9.0 (Kernel 2.4) and am having troubles compiling ultimatestunts.
    The problem seems to be in 'netinet/in.h' - this is probably a problem with my distro - is anyone else having similar problems?

    Here is a screen dump of what happens when I build:

    [root@Euler ultimatestunts-srcdata-0541]# make
    Making all in intl
    Making all in po
    Making all in data
    Making all in shared
    Making all in simulation
    In file included from udpnet.h:23,
                     from stuntsnet.h:25,
                     from clientnet.h:22,
                     from clientplayercontrol.h:22,
                     from clientplayercontrol.cpp:19:
    /usr/include/netinet/in.h:259: parse error before `)' token
    /usr/include/netinet/in.h:259: parse error before `?' token
    /usr/include/netinet/in.h:259: parse error before `)' token
    /usr/include/netinet/in.h:260: parse error before `)' token
    /usr/include/netinet/in.h:260: parse error before `?' token
    /usr/include/netinet/in.h:260: parse error before `)' token
    /usr/include/netinet/in.h:261: parse error before `)' token
    /usr/include/netinet/in.h:261: parse error before `?' token
    /usr/include/netinet/in.h:261: parse error before `)' token
    /usr/include/netinet/in.h:262: parse error before `)' token
    /usr/include/netinet/in.h:262: parse error before `?' token
    /usr/include/netinet/in.h:262: parse error before `)' token
    In file included from udpnet.h:23,
                     from stuntsnet.h:25,
                     from clientnet.h:22,
                     from clientplayercontrol.h:22,
                     from clientplayercontrol.cpp:19:
    /usr/include/netinet/in.h:364: parse error before `}' token
    make[2]: *** [clientplayercontrol.o] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all] Error 2

    Could you please email mr_wolf@tpg.com.au if you figgure it out (or want a look at the offending header file)?

    Many thanks - i look forward to playing ultimate stunts :)

     
    • I was able to fix the problem by commenting out the offending lines in my netinet/in.h file. Not sure if it is a problem with my distribution, or if a header file is missing somewhere which in.h needs. Everything seems to work fine now though :)