[mythtv] [PATCH] lcddevice.cpp missing include for usleep

jack jr at jrh.net
Sun Oct 24 05:56:58 UTC 2004


I can't even compile mythmusic anymore, it complains about missing
GetLCDDevice now in mythcontext. As far as I can tell all my cvs is up to
the minute. 

g++ -c -pipe -Wall -W -O3 -march=pentium4 -fomit-frame-pointer
-I/usr/include/SDL -D_REENTRANT -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/include/cdda
-I/usr/qt/3/include -I/usr/X11R6/include -o databasebox.o databasebox.cpp
databasebox.cpp: In destructor `virtual DatabaseBox::~DatabaseBox()':
databasebox.cpp:150: error: `GetLCDDevice' undeclared (first use this
function)
databasebox.cpp:150: error: (Each undeclared identifier is reported only
once
   for each function it appears in.)
databasebox.cpp: In member function `void DatabaseBox::showWaiting()':
databasebox.cpp:173: error: `GetLCDDevice' undeclared (first use this
function)
databasebox.cpp: In member function `void
   DatabaseBox::updateLCDMenu(QKeyEvent*)':
databasebox.cpp:1324: error: `GetLCDDevice' undeclared (first use this
   function)
make[1]: *** [databasebox.o] Error 1
make[1]: Leaving directory
`/var/tmp/portage/mythmusic-cvs-20040507/work/mythmusic/mythmusic'
make: *** [sub-mythmusic] Error 2



> -----Original Message-----
> From: mythtv-dev-bounces at mythtv.org [mailto:mythtv-dev-bounces at mythtv.org]
> On Behalf Of sbower at cisco.com
> Sent: Saturday, October 23, 2004 8:02 PM
> To: mythtv-dev at mythtv.org
> Subject: [mythtv] [PATCH] lcddevice.cpp missing include for usleep
> 
> Howdy,
> 
> A recent update to lcddevice.cpp added a call to usleep(), but the
> headers don't include a definition for it.
> 
> Attached is a patch that adds a #include <unistd.h> (required on rh9, at
> least).
> 
>   Steve.
> 
> I/usr/lib/qt-3.1/mkspecs/default -I. -I/usr/local/packages/mythtv/mythtv-
> cvs/include -I/usr/local/include -I/usr/lib/qt-3.1/include -o lcddevice.o
> lcddevice.cpp
> lcddevice.cpp: In member function `bool LCD::connectToHost(const QString&,
>    unsigned int)':
> lcddevice.cpp:127: `usleep' undeclared (first use this function)
> lcddevice.cpp:127: (Each undeclared identifier is reported only once for
> each
>    function it appears in.)
> make[2]: *** [lcddevice.o] Error 1
> make[2]: Leaving directory `/home/sbower/src/mythtv/mythtv/libs/libmyth'
> make[1]: *** [sub-libmyth] Error 2
> make[1]: Leaving directory `/home/sbower/src/mythtv/mythtv/libs'
> make: *** [sub-libs] Error 2



More information about the mythtv-dev mailing list