LFS-6.6, Stage2, glibc, nscd.c:442

Andrew Benton b3nton at gmail.com
Wed Jun 2 13:56:26 PDT 2010


On 26/05/10 03:04, Paul Rogers wrote:
> /usr/local/src/glibc-build/libc_nonshared.a -lgcc -Wl,--as-needed
> -lgcc_s  -Wl,--no-as-needed `gcc --print-file-name=crtendS.o`
> /usr/local/src/glibc-build/csu/crtn.o
> /usr/local/src/glibc-build/nscd/nscd.o: In function `nscd_open_socket':
> /usr/local/src/glibc-2.11.1/nscd/nscd.c:442: undefined reference to
> `__stack_chk_guard'
> /usr/local/src/glibc-build/nscd/nscd.o: In function `parse_opt':
> /usr/local/src/glibc-2.11.1/nscd/nscd.c:291: undefined reference to
> `__stack_chk_guard'
> /usr/local/src/glibc-build/nscd/connections.o: In function `restart':
> /usr/local/src/glibc-2.11.1/nscd/connections.c:1305: undefined reference
> to `__stack_chk_guard'
> /usr/local/src/glibc-2.11.1/nscd/connections.c:1461: undefined reference
> to `__stack_chk_guard'
> /usr/local/src/glibc-build/nscd/connections.o: In function
> `main_loop_epoll':
> /usr/local/src/glibc-2.11.1/nscd/connections.c:2005: undefined reference
> to `__stack_chk_guard'
> /usr/local/src/glibc-build/nscd/connections.o:/usr/local/src/glibc-2.11.1/nscd/connections.c:1795:
> more undefined references to `__stack_chk_guard' follow
> collect2: ld returned 1 exit status
> make[2]: *** [/usr/local/src/glibc-build/nscd/nscd] Error 1
> make[2]: Leaving directory `/usr/local/src/glibc-2.11.1/nscd'
> make[1]: *** [nscd/others] Error 2
> make[1]: Leaving directory `/usr/local/src/glibc-2.11.1'
> make: *** [all] Error 2
>

Just out of curiosity, do you need a nameserver caching daemon? Could 
you live with out it? If so, try this sed inside the glibc source 
(before you make the ../glibc-build dir):
sed -i 's/ nscd$//' nscd/Makefile

Andy



More information about the lfs-support mailing list