Problem compiling

Help
2004-10-12
2012-07-03
  • I'm trying to compile torcs on a gentoo system, 2.6.7 kernel.

    After just a few minutes of compiling I get:

    grmultitexstate.cpp: In member function virtual void grMultiTexState::apply(int)': grmultitexstate.cpp:30: error:GL_TEXTURE0_ARB' undeclared (first use this
    function)
    grmultitexstate.cpp:30: error: (Each undeclared identifier is reported only
    once for each function it appears in.)
    grmultitexstate.cpp:30: error: glActiveTextureARB' undeclared (first use this function) grmultitexstate.cpp:34: error:GL_TEXTURE1_ARB' undeclared (first use this
    function)
    grmultitexstate.cpp:40: error: GL_TEXTURE2_ARB' undeclared (first use this function) grmultitexstate.cpp:44: error:GL_TEXTURE3_ARB' undeclared (first use this
    function)
    make[5]: [grmultitexstate.o] Error 1
    make[5]: Leaving directory /var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/src/modules/graphic/ssggraph' make[4]: *** [subdirs] Error 1 make[4]: Leaving directory/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/src/modules/graphic'
    make[3]:
    [subdirs] Error 1
    make[3]: Leaving directory /var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/src/modules' make[2]: *** [subdirs] Error 1 make[2]: Leaving directory/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2/src'
    make[1]: [subdirs] Error 1
    make[1]: Leaving directory `/var/tmp/portage/torcs-1.2.2/work/torcs-1.2.2'
    make:
    [restart] Error 2

    !!! ERROR: games-sports/torcs-1.2.2 failed.
    !!! Function src_compile, Line 52, Exitcode 2
    !!! (no error message)

    Any suggestions?

    Regards,
    Odegard