trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: May 2011

Re: [trinity-devel] kdegraphics - Broke? error: taking address of temporary [-fpermissive]

From: "David C. Rankin" <drankinatty@...>
Date: Sun, 08 May 2011 11:35:22 -0500
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...



-- 
David C. Rankin, J.D.,P.E.