On Tue, 2006-08-15 at 03:18 +0100, Chris Elsworth wrote:
> 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:
> [EMAIL PROTECTED]:~/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
> [EMAIL PROTECTED]:~/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.
On my Ubuntu System (Dapper with Ubuntu Kernel 2.6.15-26-686), the macro
_syscall0 is defined in /usr/include/asm-i386/unistd.h
and /usr/include/asm-x86_64/unistd.h. It comes with linux-kernel-headers
vdr mailing list