Opened 12 years ago

Closed 12 years ago

#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

Change History (3)

comment:1 Changed 12 years ago by lbponey

Status: newassigned

Thanks for reporting! Can you try r1027?

comment:2 Changed 12 years ago by Silver

It seems to compile now, but I now get the error about linking against libxml++ (the same as ticket #116):

Scanning dependencies of target muscan [ 76%] Building CXX object muscan/CMakeFiles/muscan.dir/muscan.cc.o [ 80%] Building C object muscan/CMakeFiles/muscan.dir/mp3.c.o [ 83%] Building CXX object muscan/CMakeFiles/muscan.dir/scandir.cc.o [ 86%] Building CXX object muscan/CMakeFiles/muscan.dir/scanner.cc.o Linking CXX executable muscan /usr/bin/ld: cannot find -lxml++-2.6 * Error code 1

So I guess it's the matter of ticket #116 and not this one ;)

comment:3 Changed 12 years ago by lbponey

Resolution: fixed
Status: assignedclosed

Ok. Now this is the #116 bug. Closing this.

Note: See TracTickets for help on using tickets.