Im using this rootstrap i386:

Maemo_Dev_Platform_v2.0_i386-rootstrap.tgz

There a bug in /usr/include/linux/unistd.h

instead of:

extern int errno;

it should say:

#include <errno.h>

this test program reproduces the problem:

#include <sys/types.h>
#include <linux/unistd.h>

_syscall0(pid_t,gettid)

int main() { return 0; }

 gcc -o foo foo.c
/var/tmp/ccehHJtS.o: In function `gettid':foo.c:(.text+0x1f): undefined reference to `errno'

errno is defined per thread so it cant be declared extern int as such, errno.h fixes this by declaring a macro for errno instead.

Doesnt seem to be an issue with the arm rootstrap, dunno why.

-re
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers

Reply via email to