<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body dir="ltr" bgcolor="#ffffff" text="#000000">
<p style="margin-bottom: 0cm; margin-top: 0pt;">Lev Olshvang wrote:<br>
</p>
<blockquote cite="mid:4A4C8374.70101@vboxcomm.com" type="cite">Hi
linuxers,
<br>
<br>
<br>
I am trying to compile glibc2.9 on Ubuntu 7.10
<br>
and I am experiencing chicken and egg problem :
<br>
<br>
Here the steps I do
<br>
<br>
1. ../glibc-2-.9/configure
<br>
<br>
2. make
<br>
<br>
Result:
<br>
dl-load.c:1796: more undefined references to `__stack_chk_fail_local'
follow
<br>
collect2: ld returned 1 exit status
<br>
<br>
Google search reveals that this function belong to stack-protector
feature and advised to turn it off
<br>
So I removed buid directory to start again
<br>
<br>
1 . export CFLAGS="-fno-stack-protector"
<br>
export CXXFLAGS="-fno-stack-protector "
<br>
<br>
<br>
2. ../glibc-2-.9/configure
<br>
<br>
3. make
<br>
<br>
Result
<br>
glibc-build/config.h:3:3: error: #error "glibc cannot be compiled
without optimization"
<br>
<br>
Can smb advise on this ?
<br>
</blockquote>
You overrode the default CFLAGS, CXXFLAGS with your own version - which
does not include -O<br>
Add -O2 to your CFLAGS, CXXFLAGS. Possibly other flags are needs as
well. See which flags are used by default.<br>
<br>
Gilad<br>
<br>
<blockquote cite="mid:4A4C8374.70101@vboxcomm.com" type="cite"><br>
Thanks,
<br>
Lev
<br>
<br>
<br>
<br>
_______________________________________________
<br>
Linux-il mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a>
<br>
<a class="moz-txt-link-freetext" href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a>
<br>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Gilad Ben-Yossef
Chief Coffee Drinker & CTO
Codefidence Ltd.
Web: <a class="moz-txt-link-freetext" href="http://codefidence.com">http://codefidence.com</a>
Cell: +972-52-8260388
Tel: +972-8-9316883 ext. 201
Fax: +972-8-9316884
Email: <a class="moz-txt-link-abbreviated" href="mailto:gilad@codefidence.com">gilad@codefidence.com</a>
Check out our Open Source technology and training blog - <a class="moz-txt-link-freetext" href="http://tuxology.net">http://tuxology.net</a>
        "Now the world has gone to bed
         Darkness won't engulf my head
         I can see by infra-red
         How I hate the night."
</pre>
</body>
</html>