From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matthias Koeppe Newsgroups: gmane.lisp.guile.devel Subject: [Patch] Fix configure test for __libc_stack_end Date: Wed, 18 Jun 2003 11:18:08 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1055928200 21878 80.91.224.249 (18 Jun 2003 09:23:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 18 Jun 2003 09:23:20 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Jun 18 11:23:19 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19SZ8E-0005XR-00 for ; Wed, 18 Jun 2003 11:21:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19SZ6w-0000mJ-1d for guile-devel@m.gmane.org; Wed, 18 Jun 2003 05:20:10 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19SZ5o-000054-KN for guile-devel@gnu.org; Wed, 18 Jun 2003 05:19:00 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19SZ5e-0008LX-G2 for guile-devel@gnu.org; Wed, 18 Jun 2003 05:18:51 -0400 Original-Received: from merkur.math.uni-magdeburg.de ([141.44.75.40]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19SZ50-0007z0-Kf for guile-devel@gnu.org; Wed, 18 Jun 2003 05:18:10 -0400 Original-Received: from beta ([141.44.75.78] helo=beta.math.uni-magdeburg.de) by merkur.math.uni-magdeburg.de with esmtp (Exim 4.10) id 19SZ4z-0005AH-00 for guile-devel@gnu.org; Wed, 18 Jun 2003 11:18:09 +0200 Original-Received: (from mkoeppe@localhost) by beta.math.uni-magdeburg.de (8.11.7+Sun/8.11.7) id h5I9I8K29001; Wed, 18 Jun 2003 11:18:08 +0200 (MEST) X-Authentication-Warning: beta.math.uni-magdeburg.de: mkoeppe set sender to mkoeppe@mail.math.uni-magdeburg.de using -f Original-To: guile-devel@gnu.org Original-Lines: 24 X-Warning: no 'abuse'-account in domain mail.math.uni-magdeburg.de (cf. RFC2142/4.) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2551 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2551 The test for `guile_cv_have_libc_stack_end' does not work reliably because the compiler can optimize away the use of the variable in the test program. This happened to me on Solaris with the Sun Forte C compiler. Here is a patch. --- configure.in.~1.220.~ Mon Jun 16 16:49:24 2003 +++ configure.in Wed Jun 18 10:49:17 2003 @@ -603,8 +603,9 @@ AC_MSG_CHECKING(for __libc_stack_end) AC_CACHE_VAL(guile_cv_have_libc_stack_end, -[AC_TRY_LINK([extern char *__libc_stack_end;], - [char *p = __libc_stack_end;], +[AC_TRY_LINK([#include +extern char *__libc_stack_end;], + [printf("%s", (char*) __libc_stack_end);], guile_cv_have_libc_stack_end=yes, guile_cv_have_libc_stack_end=no)]) AC_MSG_RESULT($guile_cv_have_libc_stack_end) -- Matthias Koeppe -- http://www.math.uni-magdeburg.de/~mkoeppe _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel