Re: Compiling glibc2.9 on ubuntu - stack-protector functions are undefined
Lev Olshvang wrote: > Hi linuxers, > > > I am trying to compile glibc2.9 on Ubuntu 7.10 > and I am experiencing chicken and egg problem : > > Here the steps I do > > 1. ../glibc-2-.9/configure > > 2. make > > Result: > dl-load.c:1796: more undefined references to `__stack_chk_fail_local' > follow > collect2: ld returned 1 exit status > > Google search reveals that this function belong to stack-protector > feature and advised to turn it off > So I removed buid directory to start again > > 1 . export CFLAGS="-fno-stack-protector" >export CXXFLAGS="-fno-stack-protector " > > > 2. ../glibc-2-.9/configure > > 3. make > > Result > glibc-build/config.h:3:3: error: #error "glibc cannot be compiled > without optimization" > Isn't there a configure option to turn off the stack protector? -- Ilya A. Volynets-Evenbakh http://www.total-knowledge.com ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: Compiling glibc2.9 on ubuntu - stack-protector functions are undefined
Lev Olshvang wrote: Hi linuxers, I am trying to compile glibc2.9 on Ubuntu 7.10 and I am experiencing chicken and egg problem : Here the steps I do 1. ../glibc-2-.9/configure 2. make Result: dl-load.c:1796: more undefined references to `__stack_chk_fail_local' follow collect2: ld returned 1 exit status Google search reveals that this function belong to stack-protector feature and advised to turn it off So I removed buid directory to start again 1 . export CFLAGS="-fno-stack-protector" export CXXFLAGS="-fno-stack-protector " 2. ../glibc-2-.9/configure 3. make Result glibc-build/config.h:3:3: error: #error "glibc cannot be compiled without optimization" Can smb advise on this ? You overrode the default CFLAGS, CXXFLAGS with your own version - which does not include -O Add -O2 to your CFLAGS, CXXFLAGS. Possibly other flags are needs as well. See which flags are used by default. Gilad Thanks, Lev ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il -- Gilad Ben-Yossef Chief Coffee Drinker & CTO Codefidence Ltd. Web: http://codefidence.com Cell: +972-52-8260388 Tel: +972-8-9316883 ext. 201 Fax: +972-8-9316884 Email: gi...@codefidence.com Check out our Open Source technology and training blog - http://tuxology.net "Now the world has gone to bed Darkness won't engulf my head I can see by infra-red How I hate the night." ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Compiling glibc2.9 on ubuntu - stack-protector functions are undefined
Hi linuxers, I am trying to compile glibc2.9 on Ubuntu 7.10 and I am experiencing chicken and egg problem : Here the steps I do 1. ../glibc-2-.9/configure 2. make Result: dl-load.c:1796: more undefined references to `__stack_chk_fail_local' follow collect2: ld returned 1 exit status Google search reveals that this function belong to stack-protector feature and advised to turn it off So I removed buid directory to start again 1 . export CFLAGS="-fno-stack-protector" export CXXFLAGS="-fno-stack-protector " 2. ../glibc-2-.9/configure 3. make Result glibc-build/config.h:3:3: error: #error "glibc cannot be compiled without optimization" Can smb advise on this ? Thanks, Lev ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il