Where __NR_getxuid and __NR_getxgid should be defined?

stl st.lambert02 at gmail.com
Tue Oct 25 09:57:23 UTC 2011


Hello all,

when compiling GCC with uClibc, the libstdc++-v3/config.log
shows me that the header dlfcn.h is missing.

I realized that this header is provided by uClibc
when HAVE_SHARED config option is enabled.

But since I have enabled this option, I have the following
compiling errors:

./ldso/include/dl-syscall.h: In function '_dl_getuid':
./ldso/include/dl-syscall.h:74:1: error: '__NR_getuid' undeclared
./ldso/include/dl-syscall.h: In function '_dl_geteuid':
./ldso/include/dl-syscall.h:80:1: error: '__NR_getuid' undeclared
./ldso/include/dl-syscall.h: In function '_dl_getgid':
./ldso/include/dl-syscall.h:86:1: error: '__NR_getgid' undeclared
./ldso/include/dl-syscall.h: In function '_dl_getegid':
./ldso/include/dl-syscall.h:92:1: error: '__NR_getgid' undeclared

I have dug in the uClibc source code, and I have found that the
definition of __NR_getuid and __NR_getgid depend on
__NR_getxuid and __NR_getxgid.


The definitions are in the uclibc/ldso/include/dl-syscall.h file:

#ifdef __NR_getxuid
# define __NR_getuid __NR_getxuid
#endif

#ifdef __NR_getxgid
# define __NR_getgid __NR_getxgid
#endif

I have done a grep into the whole uClibc source code,
I have not found where __NR_getxuid and __NR_getxgid
should be defined...

Does anyone know where I should define these macros?

Thanks in advance for your help.


More information about the uClibc mailing list