Guys,
kdegraphics was building fine on 5/6, but now it fails with:
[ 7%] Building CXX object kviewshell/CMakeFiles/kmultipage-shared.dir/documentWidget.cpp.o cd /home/david/tblds/trinity-kdegraphics/src/build/kviewshell && /usr/bin/c++ -Dkmultipage_shared_EXPORTS -DHAVE_CONFIG_H -march=i686 -mtune=generic -O2 -pipe -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/kviewshell -I/home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell -I/home/david/tblds/trinity-kdegraphics/src/build -I/opt/trinity/include -I/opt/qt/include -I/opt/qt/include/tqt -o CMakeFiles/kmultipage-shared.dir/documentWidget.cpp.o -c /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/documentWidget.cpp /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/documentWidget.cpp: In member function ‘virtual void DocumentWidget::paintEvent(QPaintEvent*)’: /home/david/tblds/trinity-kdegraphics/src/kdegraphics/kviewshell/documentWidget.cpp:290:70: error: taking address of temporary [-fpermissive] make[2]: *** [kviewshell/CMakeFiles/kmultipage-shared.dir/documentWidget.cpp.o] Error 1 make[2]: Leaving directory `/home/david/tblds/trinity-kdegraphics/src/build' make[1]: *** [kviewshell/CMakeFiles/kmultipage-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 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?
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"
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 :)
Le Sun, 08 May 2011 11:16:20 -0500, "David C. Rankin" drankinatty@suddenlinkmail.com a écrit :
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 :)
The error 'size_t' does not name a type wont't be fixed by -fpermissive. To fix it, you need to add a #include <cstddef> to your GSmartPointer.h include. It is the same kind of error that the one with Qt3.
On 05/08/2011 11:34 AM, /dev/ammo42 wrote:
The error 'size_t' does not name a type wont't be fixed by -fpermissive. To fix it, you need to add a #include<cstddef> to your GSmartPointer.h include. It is the same kind of error that the one with Qt3.
Ahh - a gcc-4.6 error. I'll go do that and report back! Thanks :)
On 05/08/2011 11:42 AM, David C. Rankin wrote:
On 05/08/2011 11:34 AM, /dev/ammo42 wrote:
The error 'size_t' does not name a type wont't be fixed by -fpermissive. To fix it, you need to add a #include<cstddef> to your GSmartPointer.h include. It is the same kind of error that the one with Qt3.
Ahh - a gcc-4.6 error. I'll go do that and report back! Thanks :)
SUCCESS!
--- kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h +++ kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h 2011-05-08 11:47:20.000000000 -0500 @@ -56,6 +56,7 @@
#ifndef _GSMARTPOINTER_H_ #define _GSMARTPOINTER_H_ +#include <cstddef> #ifdef HAVE_CONFIG_H #include "config.h" #endif
Let me know if putting the include in that location is OK. It works so I guess its good - but if it would be better somewhere else - let me know. Thanks:
==> Finished making: trinity-kdegraphics 1230898-1 (Sun May 8 11:57:07 CDT 2011)
Le Sun, 08 May 2011 11:59:20 -0500, "David C. Rankin" drankinatty@suddenlinkmail.com a écrit :
On 05/08/2011 11:42 AM, David C. Rankin wrote:
On 05/08/2011 11:34 AM, /dev/ammo42 wrote:
The error 'size_t' does not name a type wont't be fixed by -fpermissive. To fix it, you need to add a #include<cstddef> to your GSmartPointer.h include. It is the same kind of error that the one with Qt3.
Ahh - a gcc-4.6 error. I'll go do that and report back! Thanks :)
SUCCESS!
--- kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h +++ kdegraphics/kviewshell/plugins/djvu/libdjvu/GSmartPointer.h 2011-05-08 11:47:20.000000000 -0500 @@ -56,6 +56,7 @@
#ifndef _GSMARTPOINTER_H_ #define _GSMARTPOINTER_H_ +#include <cstddef> #ifdef HAVE_CONFIG_H #include "config.h" #endif
Let me know if putting the include in that location is OK. It works so I guess its good - but if it would be better somewhere else - let me know. Thanks:
The location of the include is OK, at least for me :) Anyway, in C/C++, the only requirement with an include is that the include must be put before where it is used. But putting it after the include guard, like you did it, is even better :) (the include guard is the 2 first lines and the last line, which prevent the header from being included more than one time — after the first include, including it again does nothing).
==> Finished making: trinity-kdegraphics 1230898-1 (Sun May 8 11:57:07 CDT 2011)
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"
Uh -- the updates broke something else...
Updated to revision 1230899. ==> SVN checkout of revision 1230898 -- Complete. ==> Setting PATH, CMAKE and Trinity Environment variables ==> Creating out-of-source build directory: /home/david/tblds/trinity-kdegraphics/src/build ==> Starting cmake... -- The C compiler identification is GNU -- The CXX compiler identification is unknown -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- broken CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:45 (MESSAGE): The C++ compiler "/usr/bin/c++" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/david/tblds/trinity-kdegraphics/src/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory `/home/david/tblds/trinity-kdegraphics/src/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/david/tblds/trinity-kdegraphics/src/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o
/usr/bin/c++ -fpermisive -o CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -c
/home/david/tblds/trinity-kdegraphics/src/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
cc1plus: error: unrecognized command line option ‘-fpermisive’
make[1]: Leaving directory `/home/david/tblds/trinity-kdegraphics/src/build/CMakeFiles/CMakeTmp'
make[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o] Error 1
make: *** [cmTryCompileExec/fast] Error 2
CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:17 (project)
-- Configuring incomplete, errors occurred! ==> ERROR: A failure occurred in build(). Aborting...
On 05/08/2011 11:19 AM, David C. Rankin wrote:
Try
cmake -DCMAKE_CXX_FLAGS="-fpermisive"
Uh -- the updates broke something else...
Nevermind ... it is "-fpermissive". (two s's)
On 05/08/2011 11:23 AM, David C. Rankin wrote:
On 05/08/2011 11:19 AM, David C. Rankin wrote:
Try
cmake -DCMAKE_CXX_FLAGS="-fpermisive"
Uh -- the updates broke something else...
Nevermind ... it is "-fpermissive". (two s's)
Still didn't help -- same error as when I set:
CFLAGS=${CFLAGS}" -fpermissive" CXXFLAGS=${CXXFLAGS}" -fpermissive"
I built with:
cmake ${srcdir}/${_svnmod} \ -DCMAKE_INSTALL_PREFIX=${trinity_prefix} \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DQT_VERSION=3 \ -DWITH_PAM=ON \ -DCMAKE_CXX_FLAGS="-fpermissive" \ -DBUILD_ALL=ON make
The error:
[ 93%] 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 -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...
Le Sun, 08 May 2011 11:35:22 -0500, "David C. Rankin" drankinatty@suddenlinkmail.com a écrit :
On 05/08/2011 11:23 AM, David C. Rankin wrote:
On 05/08/2011 11:19 AM, David C. Rankin wrote:
Try
cmake -DCMAKE_CXX_FLAGS="-fpermisive"
Uh -- the updates broke something else...
Nevermind ... it is "-fpermissive". (two s's)
Still didn't help -- same error as when I set:
CFLAGS=${CFLAGS}" -fpermissive" CXXFLAGS=${CXXFLAGS}" -fpermissive"
I built with:
cmake ${srcdir}/${_svnmod} \ -DCMAKE_INSTALL_PREFIX=${trinity_prefix} \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DQT_VERSION=3 \ -DWITH_PAM=ON \ -DCMAKE_CXX_FLAGS="-fpermissive" \ -DBUILD_ALL=ON make
The error:
[ 93%] 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 -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...
See my other message about #include <cstddef>. It is the same kind of gcc-4.6 related error as the one with Qt3. #include'ing <cstddef> at the beginning of the file should solve every error (including the one with GPBufferBase::operator int() const).
On Sunday 08 May 2011 12:44:47 pm /dev/ammo42 wrote:
Le Sun, 08 May 2011 11:35:22 -0500,
Aborting...
See my other message about #include <cstddef>. It is the same kind of gcc-4.6 related error as the one with Qt3. #include'ing <cstddef> at the beginning of the file should solve every error (including the one with GPBufferBase::operator int() const).
Bingo
Compiles with GSmartPointer patched
David see my svn http://svn.trinitydesktop.org/websvn/listing.php?repname=Trinity+Packaging&a... for a patch
On svn.trinity.org /arch/baho/desktop/kdegraphics/
On 05/08/2011 11:53 AM, Baho Utot wrote:
On Sunday 08 May 2011 12:44:47 pm /dev/ammo42 wrote:
Le Sun, 08 May 2011 11:35:22 -0500,
Aborting...
See my other message about #include<cstddef>. It is the same kind of gcc-4.6 related error as the one with Qt3. #include'ing<cstddef> at the beginning of the file should solve every error (including the one with GPBufferBase::operator int() const).
Bingo
Compiles with GSmartPointer patched
David see my svn http://svn.trinitydesktop.org/websvn/listing.php?repname=Trinity+Packaging&a... for a patch
On svn.trinity.org /arch/baho/desktop/kdegraphics/
Awesome - things are looking up for gcc 4.6. May not be that bad after all after we find all the headers that need #include <cstddef>. The problem I have is I can't tell which header needs the new include.... :p
Le Sun, 08 May 2011 12:45:30 -0500, "David C. Rankin" drankinatty@suddenlinkmail.com a écrit :
On 05/08/2011 11:53 AM, Baho Utot wrote:
On Sunday 08 May 2011 12:44:47 pm /dev/ammo42 wrote:
Le Sun, 08 May 2011 11:35:22 -0500,
Aborting...
See my other message about #include<cstddef>. It is the same kind of gcc-4.6 related error as the one with Qt3. #include'ing<cstddef> at the beginning of the file should solve every error (including the one with GPBufferBase::operator int() const).
Bingo
Compiles with GSmartPointer patched
David see my svn http://svn.trinitydesktop.org/websvn/listing.php?repname=Trinity+Packaging&a... for a patch
On svn.trinity.org /arch/baho/desktop/kdegraphics/
Awesome - things are looking up for gcc 4.6. May not be that bad after all after we find all the headers that need #include <cstddef>. The problem I have is I can't tell which header needs the new include.... :p
Every header that produces an error of the type error: 'A' does not name a type where A is a C standard type like size_t or ptrdiff_t is a header that needs to #include <cstddef>. Here are the types defined by stddef.h and cstddef (which is the C++ equivalent of stddef.h) according to the C standard: size_t wchar_t ptrdiff_t
On 05/08/2011 01:45 PM, David C. Rankin wrote:
On 05/08/2011 11:53 AM, Baho Utot wrote:
On Sunday 08 May 2011 12:44:47 pm /dev/ammo42 wrote:
Le Sun, 08 May 2011 11:35:22 -0500,
Aborting...
See my other message about #include<cstddef>. It is the same kind of gcc-4.6 related error as the one with Qt3. #include'ing<cstddef> at the beginning of the file should solve every error (including the one with GPBufferBase::operator int() const).
Bingo
Compiles with GSmartPointer patched
David see my svn http://svn.trinitydesktop.org/websvn/listing.php?repname=Trinity+Packaging&a...
for a patch
On svn.trinity.org /arch/baho/desktop/kdegraphics/
Awesome - things are looking up for gcc 4.6. May not be that bad after all after we find all the headers that need #include <cstddef>. The problem I have is I can't tell which header needs the new include.... :p
I have changed all my PKGBUILDS to use source tarballs. When 3.5.13 is released I won't have much to change
On 05/08/2011 12:55 PM, Baho Utot wrote:
I have changed all my PKGBUILDS to use source tarballs. When 3.5.13 is released I won't have much to change
Thinking lightyears ahead :)