Re: dietlibc: Debian redistribution

Tino Reichardt <[email protected]> Sat, 9 Jul 2011 13:36:10 +0200
Newsgroups gmane.linux.lib.dietlibc
Message-ID <[email protected]>
* VOITPTRPTR <[email protected]> wrote:
> Hi guys,
> 
> I'm trying to get my thread PID by calling the following function:
> 
> #include <sys/syscall.h>
> pid_t gettid( void )
> {
> 	return syscall( __NR_gettid );
> }
> 
> It works under GCC, but when trying to compile the above code
> using DIETLIBC, I got this error:
> ...
> mc.o: In function `gettid':
> mc.c:(.text+0xe): undefined reference to `syscall'
> 
> Who syscall are handled under DIETLIBC please?

it is @ -lcompat:

cd /opt/diet/lib-$ARCH
nm libcompat.a | grep T

but gettid() is defined @ libc.a - so you don't need a wrapper ;)


-- 
regards, TR