[mythtv] unable to compile with gcc 3.4.0

Jukka Tastula jukka.tastula at kotinet.com
Tue Jun 1 10:36:48 EDT 2004


Following the compile instructions I get up to 

make -C libs/libmythtv -j6 CXX=distcc

which takes a while and in the end I'm left with following error message

distcc -c -pipe -Wall -W -O3 -march=pentium3 -mfpmath=sse,387 
-fomit-frame-pointer `freetype-config --cflags` -D_REENTRANT -fPIC  
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DMMX -DUSING_XV 
-DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/share/qt3//mkspecs/default -I. 
-I/usr/include -I/usr/local/include -I../libmyth -I.. -Idvbdev 
-I../libavcodec -I/usr/share/qt3//include -o RTjpegN.o RTjpegN.cpp
RTjpegN.cpp: In member function `int RTjpeg::b2s(int16_t*, int8_t*, uint8_t)':
RTjpegN.cpp:136: error: ISO C++ forbids cast to non-reference type used as 
lvalue
RTjpegN.cpp:145: error: ISO C++ forbids cast to non-reference type used as 
lvalue
RTjpegN.cpp:174: error: ISO C++ forbids cast to non-reference type used as 
lvalue
RTjpegN.cpp:186: error: ISO C++ forbids cast to non-reference type used as 
lvalue
RTjpegN.cpp:203: error: ISO C++ forbids cast to non-reference type used as 
lvalue
RTjpegN.cpp:224: error: ISO C++ forbids cast to non-reference type used as 
lvalue
RTjpegN.cpp:234: error: ISO C++ forbids cast to non-reference type used as 
lvalue
RTjpegN.cpp:241: error: ISO C++ forbids cast to non-reference type used as 
lvalue
distcc[3370] ERROR: compile on localhost failed
make: *** [RTjpegN.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory 
`/home/mythtv/r4v2_src/mythtv-0.14/src/mythtv-0.15.1/libs/libmythtv'


Using knoppmyth originally but I've (obviously) done some upgrades to it. 

g++ (GCC) 3.4.0 (Debian)
gcc (GCC) 3.4.0 (Debian)

I compiled the cvs on 15th may and it didn't show such problem so this must be 
some new addition before release. Happens with both 0.15 and 0.15.1.

Sorry about the word wrapping, can't think of any better way to do it.



More information about the mythtv-dev mailing list