[mythtv] GCC problem?
Christian Fredriksson
ille at ludd.ltu.se
Fri Feb 29 17:45:54 UTC 2008
>I already tried to get help in the users list, and i guess everybody
>reads there too. But maybe someone that knows how to fix this don't
>usually read the users list i try to post it here too.
>Haven't found anything that this version of GCC shouldn't work.
>
>So i'm running the trunk version a few days back. I'm no expert, but if i dont try i'll never learn.Been using trunk version a few years without any big problems.But recently i got a crashing frontend and a error about misaligned stacks and got a suggestion that i should update GCC, so i did. Version 4.2.2. And now i got some real problem. When running configure i get: WARNING! An unknown C++ compiler flag in: "-Wall". Option(s) will be ignored.WARNING! An unknown C++ compiler flag in: "-Wno-switch". Option(s) will be ignored.WARNING! An unknown C++ compiler flag in: "-Wpointer-arith". Option(s) will be ignored.WARNING! An unknown C++ compiler flag in: "-Wredundant-decls". Option(s) will be ignored.WARNING! An unknown C++ compiler flag in: "-Wno-non-virtual-dtor". Option(s) will be ignored.WARNING! An unknown C++ compiler flag in: "-D__STDC_CONSTANT_MACROS". Option(s) will be ignored.And lirc is not longer recognized. And maybe more has been disabled that i haven't noticed yet. When trying to compile i get:avformatdecoder.cpp: In member function `virtual bool AvFormatDecoder::DoFastForward(long long int, bool)':avformatdecoder.cpp:546: error: integer constant is too large for "long" typeavformatdecoder.cpp:546: error: `INT64_C' undeclared (first use this function)I've found "hacks" around both problems but it feels like something is wrong. Maybe i should have compiled GCC with some options? Now i just did configure, make, make install with the new GCC version. /Stefan
Dunno if this is a gcc problem, I've also the same problem trying compile 0.21-fixes. 0.20-fixes does not have this. Running old G++ g++ (GCC) 3.3.5 (Debian 1:3.3.5-12)
C++ compiler flag in: "-Wredundant-decls". Option(s) will be ignored.
WARNING! An unknown C++ compiler flag in: "-Wno-non-virtual-dtor". Option(s) will be ignored.
WARNING! An unknown C++ compiler flag in: "-D__STDC_CONSTANT_MACROS". Option(s) will be ignored.
# Basic Settings
Compile type release
Compiler cache yes
DistCC no
install prefix /usr
CPU x86_32 (model name : AMD Athlon(tm) )
big-endian no
MMX enabled yes
CMOV enabled yes
CMOV is fast no
# Input Support
Joystick menu yes
lirc support no
Video4Linux sup. yes
ivtv support no
FireWire support yes
DVB support yes [/usr/include]
DBox2 support no
HDHomeRun support no
IPTV support no
# Sound Output Support
OSS support yes
ALSA support yes
aRts support yes
JACK support
yes
libfftw3 support no
# Video Output Support
x11 support yes
xrandr support yes
xv support no
XvMC support no
XvMC VLD support no
XvMC pro support no
XvMC OpenGL sup. no
XvMC libs -lXvMCW
OpenGL video no
OpenGL vsync no
DirectFB no
Fribidi formatting no
# Misc Features
multi threaded libavcodec yes
Frontend yes
Backend yes
# Bindings
bindings_perl yes
bindings_python yes
Creating libs/libmyth/mythconfig.h and libs/libmyth/mythconfig.mak
WARNING: When using --enable-proc-opt you must include the
output of ./configure along with any bug report.
libs/libmyth/mythconfig.h is unchanged
A make stops at avformatdecoder.cpp.
ccache g++ -c -pipe -march=athlon -fomit-frame-pointer -O3 -I/usr/include/kde/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -D_REENTRANT -DPIC -fPIC -DMMX -Di386 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DLIBDIR=\"/usr/lib\" -D_LARGEFILE_SOURCE -DUSING_OSS -DUSING_H264TOOLS -DUSING_X11 -DUSING_FRONTEND -DUSING_FFMPEG_THREADS -DUSING_V4L -DUSING_LINUX_FIREWIRE -DUSING_FIREWIRE -DUSING_DVB -DUSING_BACKEND -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/usr/share/qt3/mkspecs/default -I. -I/usr/include -I/usr/include -I/usr/X11R6/include -I../.. -I.. -I. -I../libmyth -I../libavcodec -I../libavutil -I../libmythmpeg2 -Idvbdev -Impeg -Iiptv -I../libmythlivemedia/BasicUsageEnvironment/include -I../libmythlivemedia/groupsock/include -I../libmythlivemedia/liveMedia/include -I../libmythlivemedia/UsageEnvironment/include -I/usr/include/qt3 -o avformatdecoder.o avformatdecoder.cpp
avformatdecoder.cpp: In member function `virtual bool
AvFormatDecoder::DoFastForward(long long int, bool)':
avformatdecoder.cpp:575: error: integer constant is too large for "long" type
avformatdecoder.cpp:575: error: `INT64_C' undeclared (first use this function)
avformatdecoder.cpp:575: error: (Each undeclared identifier is reported only
once for each function it appears in.)
avformatdecoder.cpp: In member function `virtual bool
AvFormatDecoder::GetFrame(int)':
avformatdecoder.cpp:3128: error: integer constant is too large for "long" type
avformatdecoder.cpp:3128: error: `INT64_C' undeclared (first use this function)
avformatdecoder.cpp:3410: error: integer constant is too large for "long" type
avformatdecoder.cpp:3537: error: integer constant is too large for "long" type
make[2]: *** [avformatdecoder.o] Error 1
make[2]: Leaving directory `/myth/video3/source/0.21.fixes/mythtv/libs/libmythtv'
make[1]: *** [sub-libmythtv] Error 2
make[1]: Leaving directory `/myth/video3/source/0.21.fixes/mythtv/libs'
make: *** [sub-libs] Error 2
/Christian
More information about the mythtv-dev
mailing list