[mythtv-users] compilation problem

Nick Morrott knowledgejunkie at gmail.com
Sat Aug 16 21:53:38 UTC 2008


On 16/08/2008, sac <sa.cizmeli at usherbrooke.ca> wrote:
> Hi Everybody
>
>  I am a newbie and this is my first post to the list. Thanks for your
>  understanding.
>
>  I am trying to compile mythtv-021 on a pardus 2008 linux distribution with gcc
>  4.3.1. I followed all the steps of the mythtv documentation in order to
>  compile and install it from the source tarball. It all went well until the
>  compilation stage:
>  make -j 2
>
>  ....
>  ....
>  usr/include/X11/Xlib.h:3813: error: '_Xconst' has not been declared
>  /usr/include/X11/Xlib.h:3815: error: two or more data types in declaration
>  of 'parameter'
>  /usr/include/X11/Xlib.h:3819: error: 'Drawable' has not been declared
>  /usr/include/X11/Xlib.h:3824: error: '_Xconst' has not been declared
>  /usr/include/X11/Xlib.h:3826: error: two or more data types in declaration
>  of 'parameter'
>  /usr/include/X11/Xlib.h:3841: error: expected initializer before '_X_SENTINEL'
>  /usr/include/X11/Xlib.h:3845: error: expected initializer before '_X_SENTINEL'
>  /usr/include/X11/Xlib.h:3857: error: expected initializer before '_X_SENTINEL'
>  /usr/include/X11/Xlib.h:3885: error: expected initializer before '_X_SENTINEL'
>  /usr/include/X11/Xlib.h:3889: error: expected initializer before '_X_SENTINEL'
>  /usr/include/X11/Xlib.h:3897: error: 'Window' has not been declared
>  /usr/include/X11/Xlib.h:3905: error: 'KeySym' has not been declared
>  /usr/include/X11/Xlib.h:3914: error: 'KeySym' has not been declared
>  /usr/include/X11/Xlib.h:3923: error: 'KeySym' has not been declared
>  /usr/include/X11/Xlib.h:3929: error: expected initializer before '_X_SENTINEL'
>  In file included from mythcontext.cpp:34:
>  util-x11.h:16: error: expected constructor, destructor, or type conversion
>  before 'Display'
>  mythcontext.cpp: In member function 'bool MythContext::BackendIsRunning()':
>  mythcontext.cpp:1793: warning: deprecated conversion from string constant
>  to 'char*'
>
>  *** 470 errors, 2 warnings
>
>  There is a ticket at http://svn.mythtv.org/trac/ticket/4165 that was closed 8
>  months ago. I believe it is related with my problem. I do not know if the
>  patches proposed by this ticket was applied to the tarball source I am trying
>  to compile or not. I suppose no, because the source code does not compile in
>  my case :o(
>
>  Would my problem be solved if I applied one of those two patches? Moreover I
>  don't know how to apply the patch... How to do it?

I recommend checking out the current 0.21-fixes branch from svn and
use that in lieu of the 0.21 tarball. That way you'll get the latest
stable release and all backported fixes.

-- 
Nick Morrott

MythTV Official wiki:
http://mythtv.org/wiki/
MythTV users list archive:
http://www.gossamer-threads.com/lists/mythtv/users

"An investment in knowledge always pays the best interest." - Benjamin Franklin


More information about the mythtv-users mailing list