[vdr] Build failures on Ubuntu - gettid related

Chris Elsworth chris at shagged.org
Tue Aug 15 04:18:57 CEST 2006


I'm trying to get vdr-1.4.0 built on Ubuntu. I'm using the source from
the apt repository (apt-get source vdr).

I'm getting this:

root at media:~/vdr-1.4.0# make
g++ -fPIC -g -O2 -Wall -Woverloaded-virtual -c -DREMOTE_KBD -DLIRC_DEVICE=\"/dev/lircd\" -DRCU_DEVICE=\"/dev/ttyS1\" -D_GNU_SOURCE -DVIDEODIR=\"/video\" -DPLUGINDIR=\"./PLUGINS/lib\"  thread.c
thread.c:319: error: 'gettid' has not been declared
thread.c:321: error: expected constructor, destructor, or type conversion before 'tThreadId'
make: *** [thread.o] Error 1
root at media:~/vdr-1.4.0#

If I comment out the line:
_syscall0(pid_t, gettid)

And change the gettid() call just below it into:
  return syscall(224);

Then it builds, and seems to work fine.
Clearly I'm just missing a gettid definition, but does anyone know which
Debian/Ubuntu package (they're basically the same) it's in?
I have linux-kernel-headers 2.6.17-5.16 installed, I'm not sure where
else to look.


More information about the vdr mailing list