Hi i just downloaded Ohcount 3.0 archive i read the readme and installed 'bash, pcre, gcc, ragel and swig' when i type './build' it eventually stops and says:
'Building src/parser.c (will take a while) cc1: error: unrecognized command line option "-Wno-pointer-to-int-cast"'
Does anyone know whats wrong?
uname -r: 2.6.18-93.cc4
/proc/version: Linux version 2.6.18-93.cc4 (email@example.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-9)) #1 SMP Mon Aug 11 20:37:16 EDT 2008
It seems you have an old version of gcc. 4.1.2 is the first version that I can confirm has this option.
If you're unable to update your gcc, you might have more luck with the repo available at: http://github.com/andy2/ohcount/commit/9362eb0916da33ddc102401b24faf01f990e9f0f It's an incomplete port to an autoconf based build system.