[mythtv] Mythvideo cvs fails compilation with undeclared ceilf

Rutger Hendriks loial at home.nl
Sun Aug 8 09:40:20 EDT 2004


Hi

latest Mythvideo cvs doesn't compile on gcc 3.4.1 with glibc-2.3.4.20040619

g++ -c -pipe -Wall -W -O3 -march=k8 -fomit-frame-pointer -D_REENTRANT -fPIC  -D_GNU_SOURCE -DPREFIX=\"/usr\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -I/usr/qt/3/mkspecs/linux-g++ -I. -I/usr/include -I/usr/local/include -I/usr/qt/3/include -o videogallery.o videogallery.cpp
videogallery.cpp: In member function `virtual void VideoGallery::keyPressEvent(QKeyEvent*)':
videogallery.cpp:217: error: `ceilf' undeclared (first use this function)
videogallery.cpp:217: error: (Each undeclared identifier is reported only once for each function it appears in.)
videogallery.cpp: In member function `void VideoGallery::BuildVideoList()':
videogallery.cpp:471: error: `ceilf' undeclared (first use this function)
videogallery.cpp: In member function `void VideoGallery::LoadIconWindow()':
videogallery.cpp:874: error: `floorf' undeclared (first use this function)
videogallery.cpp: In member function `void VideoGallery::positionIcon()':
videogallery.cpp:1062: error: `floorf' undeclared (first use this function)
videogallery.cpp:1067: error: `ceilf' undeclared (first use this function)
make[1]: *** [videogallery.o] Error 1
make[1]: Leaving directory `/home/loial/myth/mythvideo/mythvideo'
make: *** [sub-mythvideo] Error 2

It needs to have a
#include <math.h>
on my system, then it compiles cleanly

here's some system info
# emerge info
Portage 2.0.50-r9 (gcc34-amd64-2004.1, gcc-3.4.1, glibc-2.3.4.20040619-r1, 2.6.7-gentoo-r12)
=================================================================
System uname: 2.6.7-gentoo-r12 x86_64 4
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
CFLAGS="-O2 -march=k8 -fomit-frame-pointer -momit-leaf-frame-pointer -fweb -frename-registers -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CXXFLAGS="-O2 -march=k8 -fomit-frame-pointer -momit-leaf-frame-pointer -fweb -frename-registers -pipe"


More information about the mythtv-dev mailing list