New 2.6.29 kernel & cloop

View: New views
2 Messages — Rating Filter:   Alert me  

New 2.6.29 kernel & cloop

by stirner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think we need, again, a little fix  to the cloop source for the new 2.6.29 kernel:

make[1]: Entering directory `/usr/src/cloop-2.628/advancecomp-1.15'
g++ -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -DUSE_ERROR_SILENT -DUSE_COMPRESS -pthread -c -o advfs.o ../advfs.cc
../advfs.cc: In function 'int main(int, char**)':
../advfs.cc:827: warning: deprecated conversion from string constant to 'char*'
../advfs.cc:886: error: 'INT_MAX' was not declared in this scope
make[1]: *** [advfs.o] Error 1
make[1]: Leaving directory `/usr/src/cloop-2.628/advancecomp-1.15'
make: *** [advancecomp-1.15/advfs] Error 2

Thank

Max

Re: New 2.6.29 kernel & cloop - FIXED

by stirner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


stirner wrote:
I think we need, again, a little fix  to the cloop source for the new 2.6.29 kernel:

make[1]: Entering directory `/usr/src/cloop-2.628/advancecomp-1.15'
g++ -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -DUSE_ERROR_SILENT -DUSE_COMPRESS -pthread -c -o advfs.o ../advfs.cc
../advfs.cc: In function 'int main(int, char**)':
../advfs.cc:827: warning: deprecated conversion from string constant to 'char*'
../advfs.cc:886: error: 'INT_MAX' was not declared in this scope
make[1]: *** [advfs.o] Error 1
make[1]: Leaving directory `/usr/src/cloop-2.628/advancecomp-1.15'
make: *** [advancecomp-1.15/advfs] Error 2

Thanks

Max
I reply to myself ;-)

Just put "#include <limits.h>" in advfs.cc and cloop will compile.

Max