On Thu, 28 Nov 2002, Jiangbo wrote: > > Hi, all, > > Would you please have a look to the following code for me? This code has no compile error, but it will get an error message "unresolved symbol sys_semctl". I don't know why. > > /* gcc -c -Wall test.c*/ > I don't have asm/uaccess.h on any of my systems. On RHL 8.0 I get: [summer@orange summer]$ gcc -c -Wall test.c -o test In file included from test.c:10: /usr/include/linux/string.h:8:2: warning: #warning Using kernel header in userland! test.c:19:25: asm/uaccess.h: No such file or directory test.c: In function `ftok': test.c:26: storage size of `st' isn't known test.c:26: warning: unused variable `st' test.c: At top level: test.c:35: warning: return type defaults to `int' test.c: In function `init_module': test.c:40: warning: implicit declaration of function `sys_semget' test.c:44: warning: implicit declaration of function `sys_semctl' [summer@orange summer]$ On 7.3: [summer@numbat summer]$ gcc -c -Wall test.c -o test test.c:19:25: asm/uaccess.h: No such file or directory [summer@numbat summer]$ I think those inplicit declarations are part of the problem. _______________________________________________ Redhat-devel-list mailing list Redhat-devel-list@redhat.com https://listman.redhat.com/mailman/listinfo/redhat-devel-list