trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: May 2011

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

From: "David C. Rankin" <drankinatty@...>
Date: Sun, 08 May 2011 10:55:01 -0500
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?

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