/asm/sigcontext.h compiler error on i386 gcc -pedantic -pedantic-errors

2010-09-08 Thread Will Moore
I am using buildroot 2010-02 with uclibc 0.9.30 targeting i386. Line 96 in /asm/sigcontext.h does not provide a name for the union, when compiling with gcc 4.3.4 -pedantic -pedantic-errors I get the following error: Error: ISO C doesn't support unnamed structs/unions I have checked the source

static linking is broken with -ldl

2010-09-08 Thread Natanael Copa
Hi, It seems like static linking is broken when -ldl is there: ncdev:~/testcase$ cat dlopen-test.c #include stdlib.h #include dlfcn.h int main(int argc, char *argv[]) { return dlopen(argv[1], RTLD_NOW) != NULL; } ncdev:~/testcase$ gcc -static dlopen-test.c -ldl