This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Building glibc from CVS on x86 Ubuntu Hardy


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]