Hi,
I am unable to build zorba on Ubuntu Hardy LTS (with gcc version 4.2.4). The CMAKE step seems to go fine, with all required dependencies being found. It is when I come to use 'make' that I get problems. I get multiple errors (when using make --keep-going) that all seem to be of the same form (error at end of this message). I've tried it with the latest release, and with the latest version in svn trunk, but I get the same type of error.
Incidentally, I'm quite happy to install binaries or use a package installer, it's just that I want to use the ruby bindings and as far as I can see they're not included in the binaries.
Any ideas?
Thanks in advance,
Jon
jon@hardy-vm:~/Desktop/zorba-edge/build$ make --keep-going
[ 1%] Built target json
[ 1%] Building CXX object src/CMakeFiles/zorba_simplestore.dir/compiler/parser/xquery_driver.o
In file included from /home/jon/Desktop/zorba-edge/src/compiler/parser/xquery_driver.cpp:19:
/home/jon/Desktop/zorba-edge/src/compiler/parser/xquery_parser.y:124: error: ISO C++ forbids declaration of ‘FunctionSig’ with no type
/home/jon/Desktop/zorba-edge/src/compiler/parser/xquery_parser.y:124: error: invalid use of ‘::’
/home/jon/Desktop/zorba-edge/src/compiler/parser/xquery_parser.y:124: error: expected ‘;’ before ‘*’ token
make[2]: *** [src/CMakeFiles/zorba_simplestore.dir/compiler/parser/xquery_driver.o] Error 1
[ 1%] Building CXX object src/CMakeFiles/zorba_simplestore.dir/compiler/parser/xquery_scanner.o
In file included from /home/jon/Desktop/zorba-edge/src/compiler/parser/xquery_scanner.l:35:
/home/jon/Desktop/zorba-edge/src/compiler/parser/xquery_parser.y:122: error: ISO C++ forbids declaration of ‘parsenode’ with no type
/home/jon/Desktop/zorba-edge/src/compiler/parser/xquery_parser.y:122: error: invalid use of ‘::’
/home/jon/Desktop/zorba-edge/src/compiler/parser/xquery_parser.y:122: error: expected ‘;’ before ‘*’ token
/home/jon/Desktop/zorba-edge/src/compiler/parser/xquery_parser.y:123: error: ISO C++ forbids declaration of ‘exprnode’ with no type
/home/jon/Desktop/zorba-edge/src/compiler/parser/xquery_parser.y:123: error: invalid use of ‘::’
/home/jon/Desktop/zorba-edge/src/compiler/parser/xquery_parser.y:123: error: expected ‘;’ before ‘*’ token
/home/jon/Desktop/zorba-edge/src/compiler/parser/xquery_parser.y:124: error: ISO C++ forbids declaration of ‘FunctionSig’ with no type
/home/jon/Desktop/zorba-edge/src/compiler/parser/xquery_parser.y:124: error: invalid use of ‘::’
/home/jon/Desktop/zorba-edge/src/compiler/parser/xquery_parser.y:124: error: expected ‘;’ before ‘*’ token
/home/jon/Desktop/zorba-edge/build/src/compiler/parser/xquery_parser.hpp:423: error: expected `)' before ‘&’ token
/home/jon/Desktop/zorba-edge/build/src/compiler/parser/xquery_parser.hpp:583: error: ISO C++ forbids declaration of ‘xquery_driver’ with no type
/home/jon/Desktop/zorba-edge/build/src/compiler/parser/xquery_parser.hpp:583: error: expected ‘;’ before ‘&’ token
make[2]: *** [src/CMakeFiles/zorba_simplestore.dir/compiler/parser/xquery_scanner.o] Error 1
make[2]: Target `src/CMakeFiles/zorba_simplestore.dir/build' not remade because of errors.
make[1]: *** [src/CMakeFiles/zorba_simplestore.dir/all] Error 2
make[1]: Target `all' not remade because of errors.
make: *** [all] Error 2
make: Target `default_target' not remade because of errors.
UPDATE: I managed to build it by downgrading from bison 2.4 to bison 2.3.
Cheers,
Jon