Ticket #115 (closed defect: fixed)
scanner.cc doesn't compile
| Reported by: | Silver | Owned by: | lbponey |
|---|---|---|---|
| Priority: | major | Milestone: | Release 0.2.0 |
| Component: | museek_general | Version: | 0.2prerelease (newnet2 branch) |
| Keywords: | Cc: |
Description
I'm trying to compile Museek 0.2 (SVN 1026) on FreeBSD, but concerning MUSCAN component, scanner.cc fails:
[ 43%] Building CXX object muscan/CMakeFiles/Tools.dir/scanner.cc.o /home/silver/museek+/muscan/scanner.cc: In member function 'void DirScanner::scan(const stat*)': /home/silver/museek+/muscan/scanner.cc:85: error: invalid use of incomplete type 'const struct stat' /home/silver/museek+/muscan/scanner.hh:37: error: forward declaration of 'const struct stat' /home/silver/museek+/muscan/scanner.cc:86: error: invalid use of incomplete type 'const struct stat' /home/silver/museek+/muscan/scanner.hh:37: error: forward declaration of 'const struct stat' /home/silver/museek+/muscan/scanner.cc:98: error: aggregate 'stat s2' has incomplete type and cannot be defined /home/silver/museek+/muscan/scanner.cc:99: error: invalid use of incomplete type 'struct stat' /home/silver/museek+/muscan/scanner.hh:37: error: forward declaration of 'struct stat' /home/silver/museek+/muscan/scanner.cc: In member function 'void DirScanner::real_scan()': /home/silver/museek+/muscan/scanner.cc:167: error: aggregate 'stat s' has incomplete type and cannot be defined /home/silver/museek+/muscan/scanner.cc:199: error: invalid use of incomplete type 'struct stat' /home/silver/museek+/muscan/scanner.hh:37: error: forward declaration of 'struct stat' /home/silver/museek+/muscan/scanner.cc:204: error: 'S_ISREG' was not declared in this scope /home/silver/museek+/muscan/scanner.cc:208: error: 'S_ISDIR' was not declared in this scope *** Error code 1
