Compiling glibc2.9 on ubuntu - stack-protector functions are undefined
Gilad Ben-Yossef
gilad at codefidence.com
Thu Jul 2 11:52:03 IDT 2009
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 at 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: gilad at 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."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20090702/66242fb1/attachment.html>
More information about the Linux-il
mailing list