On 05/08/2011 11:07 AM, Serghei Amelian wrote:
On Sunday 08 May 2011 18:55:01 David C. Rankin wrote:
Guys,
kdegraphics was building fine on 5/6, but now it fails with:
[...]
I haven't changed anything on my end - is there something I need to add? I have tried:
CFLAGS=${CFLAGS}" -fpermissive" CXXFLAGS=${CXXFLAGS}" -fpermissive"
but that didn't help. What to try next?
Try
cmake -DCMAKE_CXX_FLAGS="-fpermisive"
OK, with the way I did it, I got this:
[ 92%] Building CXX object kviewshell/plugins/djvu/libdjvu/CMakeFiles/djvu-shared.dir/Arrays.cpp.o cd /home/david/tblds/trinity-kdegraphics/src/build/kviewshell/plugins/djvu/libdjvu && /usr/bin/c++ -Ddjvu_shared_EXPORTS -DHAVE_CONFIG_H -DUNIX -DHAVE_STDINCLUDES -march=i686 -mtune=generic -O2 -pipe -fpermissive -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT -D_REENTRANT -include tqt.h -fPIC -I/home/david/tblds/trinity-kdegraphics/src/build -I/opt/qt/include -I/opt/qt/include/tqt -o CMakeFiles/djvu-shared.dir/Arrays.cpp.o -c /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/plugins/djvu/libdjvu/Arrays.cpp In file included from /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/plugins/djvu/libdjvu/Arrays.h:67:0, from /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/plugins/djvu/libdjvu/Arrays.cpp:64: /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:117:30: error: ‘size_t’ does not name a type /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:117:37: warning: ISO C++ forbids declaration of ‘n’ with no type [-fpermissive] /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:117:45: error: ‘size_t’ does not name a type /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:117:52: warning: ISO C++ forbids declaration of ‘t’ with no type [-fpermissive] /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:119:21: error: ‘size_t’ does not name a type /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:119:28: warning: ISO C++ forbids declaration of ‘n’ with no type [-fpermissive] /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:119:36: error: ‘size_t’ does not name a type /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:119:43: warning: ISO C++ forbids declaration of ‘t’ with no type [-fpermissive] /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:120:33: error: ‘size_t’ does not name a type /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:120:40: warning: ISO C++ forbids declaration of ‘n’ with no type [-fpermissive] /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:121:18: error: ‘size_t’ does not name a type /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:121:25: warning: ISO C++ forbids declaration of ‘t’ with no type [-fpermissive] /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:126:3: error: ‘size_t’ does not name a type /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h: In member function ‘GPBufferBase::operator int() const’: /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:123:43: error: ‘num’ was not declared in this scope /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h: At global scope: /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:133:30: error: ‘size_t’ does not name a type /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:133:39: warning: ISO C++ forbids declaration of ‘n’ with no type [-fpermissive] /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:134:28: error: ‘size_t’ does not name a type /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h:134:35: warning: ISO C++ forbids declaration of ‘n’ with no type [-fpermissive] make[2]: *** [kviewshell/plugins/djvu/libdjvu/CMakeFiles/djvu-shared.dir/Arrays.cpp.o] Error 1 make[2]: Leaving directory `/home/david/tblds/trinity-kdegraphics/src/build' make[1]: *** [kviewshell/plugins/djvu/libdjvu/CMakeFiles/djvu-shared.dir/all] Error 2 make[1]: Leaving directory `/home/david/tblds/trinity-kdegraphics/src/build' make: *** [all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...
I'll report back after I try your suggestion :)