Forums : The Ohcount Project

Dear Open Hub Users,

We’re excited to announce that we will be moving the Open Hub Forum to https://community.synopsys.com/s/black-duck-open-hub. Beginning immediately, users can head over, register, get technical help and discuss issue pertinent to the Open Hub. Registered users can also subscribe to Open Hub announcements here.


On May 1, 2020, we will be freezing https://www.openhub.net/forums and users will not be able to create new discussions. If you have any questions and concerns, please email us at [email protected]

Ohcount not recursivly scanning directories

I've just built ohcount from the git repos and it isn't recursively scanning my source directories. The help says Directories will be probed recursively. by default, yet it only scans the directory I give it, not all the subsequent ones.

docgnome over 14 years ago
 

hi docgnome,

I'm unable to reproduce this problem on either a mac or an ubuntu machine. Please open a ticket or if you're not able to do that, please provide more details about your OS and the exact command you're giving. Thanks.

Andy Verprauskus over 14 years ago
 

I'm using gentoo. It does not build on my ubuntu machine. The error I get there is

Building src/parser.c (will take a while)
In file included from src/parser.c:8:
parsers.gperf:31:29: error: ../parsers/haml.h: No such file or directory
parsers.gperf:54:29: error: ../parsers/perl.h: No such file or directory
parsers.gperf:60:29: error: ../parsers/ruby.h: No such file or directory
parsers.gperf:61:30: error: ../parsers/rhtml.h: No such file or directory
In file included from src/parser.c:8:
parsers.gperf: In function ‘ohcounthashparserfromlanguage’:
parsers.gperf:137: error: ‘parseperl’ undeclared (first use in this function)
parsers.gperf:137: error: (Each undeclared identifier is reported only once
parsers.gperf:137: error: for each function it appears in.)
parsers.gperf:115: error: ‘parse
haml’ undeclared (first use in this function)
parsers.gperf:143: error: ‘parserhtml’ undeclared (first use in this function)
parsers.gperf:144: error: ‘parse
ruby’ undeclared (first use in this function)

The command I'm running is ./ohcount ~/www/httpdocs/
~/www/httpdocs is where my project lives and ohcount says Examining 39 file(s) and then returns the count on those 39. However I have far more than that in subdirectories.

docgnome over 14 years ago
 

About your compilation is not recursing directories, I've fixed this BUG (I use Gentoo too, and I reproduced the same problem as you described). Please check Trac system [Ticket 55] and [Ticket 56].

Guilherme Balen... over 14 years ago
 

If you like to taste 'brand new' stuff, you can try a fork I've made and try to compile using CMake: http://github.com/balena/ohcount

Guilherme Balen... over 14 years ago