Has anyone built NCO for Red Hat Enterprise Linux 5 (RHEL5)?

Help
Greg Ramos
2013-12-22
2013-12-22
  • Greg Ramos
    Greg Ramos
    2013-12-22

    I have a number of systems I manage and I have received a request for NCO. I can install it on RHEL 6, because it comes as a package. It fails to build on RHEL5 in the final stages. In fact if at the end I do a 'make install', everything seems to be there except ncap2. Has anyone built this package on RHEL5?

     
  • Greg Ramos
    Greg Ramos
    2013-12-22

    Below find the error I get. I have search and found others with this error, but their fix did not work for me. I am trying to compile using gcc and nc-4.3.9:

    Invoke.hh:8: error: ISO C++ forbids declaration of ‘ANTLR_USE_NAMESPACE’ with no type
    Invoke.hh:8: warning: ‘ANTLR_USE_NAMESPACE’ initialized and declared ‘extern’
    Invoke.hh:8: error: ‘antlr’ was not declared in this scope
    Invoke.hh:8: error: expected ‘,’ or ‘;’ before ‘TokenStreamSelector’
    ncoGrammer.g:38: error: expected constructor, destructor, or type conversion before ‘(’ token
    ncoGrammer.g:39: error: expected constructor, destructor, or type conversion before ‘(’ token
    ncoParser.hpp:53: error: expected class-name before ‘(’ token
    ncoParser.hpp:53: error: expected {' before ‘(’ token ncoParser.hpp:53: error: expected initializer before ‘LLkParser’ make[3]: *** [Invoke.o] Error 1 make[3]: Leaving directory/software/depot/heck-software/ramos/nco/new-nco/nco-4.3.9/src/nco++'
    make[2]: [all-recursive] Error 1
    make[2]: Leaving directory /software/depot/heck-software/ramos/nco/new-nco/nco-4.3.9/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/software/depot/heck-software/ramos/nco/new-nco/nco-4.3.9'
    make:
    [all] Error 2