[maemo-developers] [maemo-developers] Maemo 2.0 bug in /usr/include/linux/unistd.h
From: Ramiro Estrugo ramiro at fateware.comDate: Wed Jul 19 02:33:22 EEST 2006
- Previous message: [maemo-developers] Help! - how to static link single library
- Next message: [maemo-developers] build Kernel 06
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [maemo-developers] Help! - how to static link single library
- Next message: [maemo-developers] build Kernel 06
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]