Build failures on Ubuntu - gettid related

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2006-08-15 at 03:18 +0100, Chris Elsworth wrote:
> Hello,
> 
> 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@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@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.
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
package.



[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux