[oe] undefined reference when installing eglibc on x86 platform

Guo Hongruan camelguo at gmail.com
Tue Dec 15 11:09:14 UTC 2009


Hi guys,
    I compiled eglibc for my x86 box. But when installing, the folllowing  
error occured. Anyone can give me some hints

Thanks a lot!

/media/work-disk/workdir/oe-mini/work/i586-oe-linux/eglibc-2.9-r5/build-i586-oe-linux/nscd/connections.o:  
In function `nscd_init':
connections.c:(.text+0x2292): undefined reference to `inotify_init1'
connections.c:(.text+0x2b9f): undefined reference to `mkostemp'
/media/work-disk/workdir/oe-mini/work/i586-oe-linux/eglibc-2.9-r5/build-i586-oe-linux/nscd/getpwnam_r.o:  
In function `getpwnam_r':
getpwnam_r.c:(.text+0xb2): undefined reference to `__nss_next2'
getpwnam_r.c:(.text+0x11c): undefined reference to `__nss_passwd_lookup2'
/media/work-disk/workdir/oe-mini/work/i586-oe-linux/eglibc-2.9-r5/build-i586-oe-linux/nscd/getpwuid_r.o:  
In function `getpwuid_r':
getpwuid_r.c:(.text+0xb2): undefined reference to `__nss_next2'
getpwuid_r.c:(.text+0x11c): undefined reference to `__nss_passwd_lookup2'
/media/work-disk/workdir/oe-mini/work/i586-oe-linux/eglibc-2.9-r5/build-i586-oe-linux/nscd/getgrnam_r.o:  
In function `getgrnam_r':
getgrnam_r.c:(.text+0xb2): undefined reference to `__nss_next2'
getgrnam_r.c:(.text+0x11c): undefined reference to `__nss_group_lookup2'
/media/work-disk/workdir/oe-mini/work/i586-oe-linux/eglibc-2.9-r5/build-i586-oe-linux/nscd/getgrgid_r.o:  
In function `getgrgid_r':
getgrgid_r.c:(.text+0xb2): undefined reference to `__nss_next2'
getgrgid_r.c:(.text+0x11c): undefined reference to `__nss_group_lookup2'
/media/work-disk/workdir/oe-mini/work/i586-oe-linux/eglibc-2.9-r5/build-i586-oe-linux/nscd/gethstbyad_r.o:  
In function `__gethostbyaddr2_r':
gethstbyad_r.c:(.text+0x87): undefined reference to `__nss_next2'
gethstbyad_r.c:(.text+0x148): undefined reference to `__nss_hosts_lookup2'
/media/work-disk/workdir/oe-mini/work/i586-oe-linux/eglibc-2.9-r5/build-i586-oe-linux/nscd/gethstbynm3_r.o:  
In function `__gethostbyname3_r':
gethstbynm3_r.c:(.text+0xd6): undefined reference to `__nss_next2'
gethstbynm3_r.c:(.text+0x1e3): undefined reference to `__nss_hosts_lookup2'
/media/work-disk/workdir/oe-mini/work/i586-oe-linux/eglibc-2.9-r5/build-i586-oe-linux/nscd/getsrvbynm_r.o:  
In function `getservbyname_r':
getsrvbynm_r.c:(.text+0xb7): undefined reference to `__nss_next2'
getsrvbynm_r.c:(.text+0x121): undefined reference to  
`__nss_services_lookup2'
/media/work-disk/workdir/oe-mini/work/i586-oe-linux/eglibc-2.9-r5/build-i586-oe-linux/nscd/getsrvbypt_r.o:  
In function `getservbyport_r':
getsrvbypt_r.c:(.text+0xb7): undefined reference to `__nss_next2'
getsrvbypt_r.c:(.text+0x121): undefined reference to  
`__nss_services_lookup2'
/media/work-disk/workdir/oe-mini/work/i586-oe-linux/eglibc-2.9-r5/build-i586-oe-linux/nscd/gai.o:  
In function `getaddrinfo':
gai.c:(.text+0x3ae6): undefined reference to `qsort_r'
gai.c:(.text+0x3bea): undefined reference to `qsort_r'
/media/work-disk/workdir/oe-mini/work/i586-oe-linux/eglibc-2.9-r5/build-i586-oe-linux/nscd/res_hconf.o:  
In function `arg_bool':
res_hconf.c:(.text+0xa8): undefined reference to `__asprintf_chk'
/media/work-disk/workdir/oe-mini/work/i586-oe-linux/eglibc-2.9-r5/build-i586-oe-linux/nscd/res_hconf.o:  
In function `arg_trimdomain_list':
res_hconf.c:(.text+0x2a9): undefined reference to `__asprintf_chk'
res_hconf.c:(.text+0x308): undefined reference to `__asprintf_chk'
/media/work-disk/workdir/oe-mini/work/i586-oe-linux/eglibc-2.9-r5/build-i586-oe-linux/nscd/res_hconf.o:  
In function `do_init':
res_hconf.c:(.text+0x545): undefined reference to `__asprintf_chk'
/media/work-disk/workdir/oe-mini/work/i586-oe-linux/eglibc-2.9-r5/build-i586-oe-linux/nis/libnsl.so:  
undefined reference to `__libc_clntudp_bufcreate at GLIBC_PRIVATE'
/media/work-disk/workdir/oe-mini/work/i586-oe-linux/eglibc-2.9-r5/build-i586-oe-linux/rt/librt.so:  
undefined reference to `__fortify_fail at GLIBC_PRIVATE'
collect2: ld returned 1 exit status
make[2]: ***  
[/media/work-disk/workdir/oe-mini/work/i586-oe-linux/eglibc-2.9-r5/build-i586-oe-linux/nscd/nscd]  
Error 1
make[2]: Leaving directory  
`/media/work-disk/workdir/oe-mini/work/i586-oe-linux/eglibc-2.9-r5/eglibc-2_9/libc/nscd'
make[1]: *** [nscd/subdir_install] Error 2
make[1]: Leaving directory  
`/media/work-disk/workdir/oe-mini/work/i586-oe-linux/eglibc-2.9-r5/eglibc-2_9/libc'


-- 
Guo Hongruan, Embedded Linux Consultant
Mobile: +86-0-13484056007
Skype: camelguo
Twitter: camelguo
http://www.gulessoft.com




More information about the Openembedded-devel mailing list