This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Building glibc from CVS on x86 Ubuntu Hardy
- From: Reuben Thomas <rrt at sc3d dot org>
- To: libc-help at sourceware dot org
- Date: Fri, 2 May 2008 23:39:37 +0100 (BST)
- Subject: Building glibc from CVS on x86 Ubuntu Hardy
- Dkim-signature: a=rsa-sha1; t=1209767974; x=1210372774; s=key1024; d=sc3d.org; c=relaxed/relaxed; q=dns; h=From:Subject:Date:Message-ID:To:MIME-Version:Content-Type; b=pwytk4SA48jTfHDDY7eF6Ki52LCV36L1Jc9sFlHYbXT+TsGZ5FnpbxUzJfqTsYE868XmFVXSx5KzFSfwqpnWkP7HyyDcULLMydXB1RdvObZw0anLldkgujBLWlv743EoWWE7n1kBUx2TX/8KttQgof0IbXdh4Q9Hzf+sg7+VQuc=
Hi,
I just made an anon checkout of glibc and when I try to build it with
../glibc/configure --prefix=/home/rrt/local
make
I get:
gcc -nostdlib -nostartfiles -r -o
/home/rrt/download/libc-build/elf/librtld.os '-Wl,-('
/home/rrt/download/libc-build/elf/dl-allobjs.os
/home/rrt/download/libc-build/elf/rtld-libc.a -lgcc '-Wl,-)' \
-Wl,-Map,/home/rrt/download/libc-build/elf/librtld.os.map
gcc -nostdlib -nostartfiles -shared \
-Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both
-Wl,-z,defs -Wl,--verbose 2>&1 | \
LC_ALL=C \
sed -e '/^=========/,/^=========/!d;/^=========/d' \
-e 's/\. = 0 + SIZEOF_HEADERS;/& _begin = . -
SIZEOF_HEADERS;/' \
> /home/rrt/download/libc-build/elf/ld.so.lds
gcc -nostdlib -nostartfiles -shared -o
/home/rrt/download/libc-build/elf/ld.so \
-Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both
-Wl,-z,defs \
/home/rrt/download/libc-build/elf/librtld.os
-Wl,--version-script=/home/rrt/download/libc-build/ld.map \
-Wl,-soname=ld-linux.so.2 -T
/home/rrt/download/libc-build/elf/ld.so.lds
/home/rrt/download/libc-build/elf/librtld.os: In function
`print_statistics':
/home/rrt/download/libc/elf/rtld.c:2821: undefined reference to
`__stack_chk_fail_local'
/home/rrt/download/libc-build/elf/librtld.os: In function
`process_dl_debug':
/home/rrt/download/libc/elf/rtld.c:2457: undefined reference to
`__stack_chk_fail_local'
/home/rrt/download/libc-build/elf/librtld.os: In function `process_envvars':
/home/rrt/download/libc/elf/rtld.c:2716: undefined reference to
`__stack_chk_fail_local'
/home/rrt/download/libc-build/elf/librtld.os: In function `dl_main':
/home/rrt/download/libc/elf/rtld.c:2337: undefined reference to
`__stack_chk_fail_local'
/home/rrt/download/libc-build/elf/librtld.os: In function
`print_search_path':
/home/rrt/download/libc/elf/dl-load.c:1568: undefined reference to
`__stack_chk_fail_local'
/home/rrt/download/libc-build/elf/librtld.os:/home/rrt/download/libc/elf/dl-load.c:1805:
more undefined references to `__stack_chk_fail_local' follow
collect2: ld returned 1 exit status
make[2]: *** [/home/rrt/download/libc-build/elf/ld.so] Error 1
make[2]: Leaving directory `/home/rrt/download/libc/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/home/rrt/download/libc'
make: *** [all] Error 2
I've found various references to this, but mostly suggesting that it ought
to work now. I have the default Ubuntu compiler configured, that is, Ubuntu
Hardy's gcc 4.2. configure says it detects stack protection on by default,
which is what I expect.