[mythtv-users] Unable to compile mythtv

Greg Grotsky spikeygg.mythbox at gmail.com
Sun Aug 6 23:20:59 UTC 2017


I'm trying to upgrade my installation of mythtv to the latest. I usually
use the git repo but sometimes run into issues. This time, I'm stumped.

I've just updated to v30-Pre-10-g951e601 and tried to compile. It gets to
zeromq and shows this:

make -C zeromq all
make[2]: Entering directory `/usr/src/mythtv/mythtv/external/zeromq'
Making all in src
make[3]: Entering directory `/usr/src/mythtv/mythtv/external/zeromq/src'
make  all-am
make[4]: Entering directory `/usr/src/mythtv/mythtv/external/zeromq/src'
  CXX      libmythzmq_la-clock.lo
In file included from clock.hpp:24:0,
                 from clock.cpp:21:
stdint.hpp:33:9: error: '__int8' does not name a type
 typedef __int8 int8_t;
         ^
stdint.hpp:36:9: error: '__int16' does not name a type
 typedef __int16 int16_t;
         ^
stdint.hpp:39:9: error: '__int32' does not name a type
 typedef __int32 int32_t;
         ^
stdint.hpp:42:9: error: '__int64' does not name a type
 typedef __int64 int64_t;
         ^
stdint.hpp:45:25: error: expected initializer before 'uint8_t'
 typedef unsigned __int8 uint8_t;
                         ^
stdint.hpp:48:26: error: expected initializer before 'uint16_t'
 typedef unsigned __int16 uint16_t;
                          ^
stdint.hpp:51:26: error: expected initializer before 'uint32_t'
 typedef unsigned __int32 uint32_t;
                          ^
stdint.hpp:54:26: error: expected initializer before 'uint64_t'
 typedef unsigned __int64 uint64_t;
                          ^
In file included from clock.cpp:21:0:
clock.hpp:37:16: error: 'uint64_t' does not name a type
         static uint64_t rdtsc ();
                ^
clock.hpp:40:16: error: 'uint64_t' does not name a type
         static uint64_t now_us ();
                ^
clock.hpp:44:9: error: 'uint64_t' does not name a type
         uint64_t now_ms ();
         ^
clock.hpp:49:9: error: 'uint64_t' does not name a type
         uint64_t last_tsc;
         ^
clock.hpp:52:9: error: 'uint64_t' does not name a type
         uint64_t last_time;
         ^
clock.cpp: In constructor 'zmq::clock_t::clock_t()':
clock.cpp:42:5: error: class 'zmq::clock_t' does not have any field named
'last_tsc'
     last_tsc (rdtsc ()),
     ^
clock.cpp:42:22: error: 'rdtsc' was not declared in this scope
     last_tsc (rdtsc ()),
                      ^
clock.cpp:43:5: error: class 'zmq::clock_t' does not have any field named
'last_time'
     last_time (now_us () / 1000)
     ^
clock.cpp:43:24: error: 'now_us' was not declared in this scope
     last_time (now_us () / 1000)
                        ^
clock.cpp: At global scope:
clock.cpp:51:32: error: no 'uint64_t zmq::clock_t::now_us()' member
function declared in class 'zmq::clock_t'
 uint64_t zmq::clock_t::now_us ()
                                ^
clock.cpp:100:32: error: no 'uint64_t zmq::clock_t::now_ms()' member
function declared in class 'zmq::clock_t'
 uint64_t zmq::clock_t::now_ms ()
                                ^
clock.cpp:119:31: error: no 'uint64_t zmq::clock_t::rdtsc()' member
function declared in class 'zmq::clock_t'
 uint64_t zmq::clock_t::rdtsc ()
                               ^
make[4]: *** [libmythzmq_la-clock.lo] Error 1
make[4]: Leaving directory `/usr/src/mythtv/mythtv/external/zeromq/src'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/src/mythtv/mythtv/external/zeromq/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/mythtv/mythtv/external/zeromq'
make[1]: *** [zeromq-all] Error 2
make[1]: Leaving directory `/usr/src/mythtv/mythtv/external'
make: *** [external] Error 2
>

 I thought maybe this is a problem with the current git commit so I
downloaded mythtv-fixes-29 zip file and tried to compile it and I get the
same error message! what gives? How do I fix it? I tried looking for "does
not name a type" on the mythtv-user archives and searching google. The only
thing I could find was to #include <inttypes.h> which I tried hacking into
the zeromq file it's compiling but it doesn't fix the problem. I'm guessing
this is an issue with my setup or something. Anyone know?

Thanks,
-Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20170806/f3b0da7b/attachment-0001.html>


More information about the mythtv-users mailing list