gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gcl-devel] GCL under Cygwin - configure fails


From: Camm Maguire
Subject: Re: [Gcl-devel] GCL under Cygwin - configure fails
Date: 16 Oct 2006 13:07:46 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Greetings, and thanks!

Please note that our primary Windows port is mingw.  If you want to
help with cygwin, that would be great!

The issue is in the output of ldd on your system:

AC_MSG_CHECKING(for shared library/C stack ceiling to heap)
if test "$use" = "mingw" ; then
  heap_ceiling=2000000000
else
if test "$enable_static" = "yes" ; then
  heap_ceiling=0x0
else
if ! test -x `which ldd` ; then
  heap_ceiling=0x0
else
echo "int main() {return 0;}" >foo.c
$CC foo.c -o foo
heap_ceiling=`ldd foo | tail -n 1 | awk '{print $NF}' | tr -d '()'`


Note that mingw steps around this entirely.  The idea is to get an
idea of the address at which the OS starts to load shared libraries.
Do you have a suggestion?

Take care,

Blake McBride <address@hidden> writes:

> At 03:30 PM 10/12/2006, Camm Maguire wrote:
> 
>           Greetings!  Could you please post your config.log and the full 
> configure output?     
>      Take care,     
>      
>      
> ============================================================================= 
> Greetings,     
>      
>      I am attempting to compile the latest GCL (via CVS) under the latest 
> Cygwin.  While running configure I get:     
>      
>      checking for shared library/C stack ceiling to heap... failed     
>      
>      configure exits at that point.  Help would be appreciated.     
>      
>      Thanks.     
>      
>      Blake McBride
> 
> As I'm sure you are aware, those files are large.  I was unaware of the
> config.log file.  I think the tail of those two outputs would be sufficient.
> If not let me know and I'll post them in their entirety. 
> The following test was done with your CVS repository of 10/15/06
> Thanks for the help!
> Blake McBride
> tail of configure output
> -----------------------------
> ......
> #
> # Subconfigure of GMP done
> # ------------------------
> #
> checking for leading underscore in object symbols... yes
> checking for GNU ld option -Map... yes
> checking for size of gmp limbs... 4
> checking _SHORT_LIMB... no
> checking _LONG_LONG_LIMB... no
> checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
> checking for dnet_ntoa in -ldnet... no
> checking for dnet_ntoa in -ldnet_stub... no
> checking for gethostbyname... yes
> checking for connect... yes
> checking for remove... yes
> checking for shmat... yes
> checking for IceConnectionNumber in -lICE... yes
> checking for main in -lXmu... yes
> checking for main in -lXt... yes
> checking for main in -lXext... yes
> checking for main in -lXaw... yes
> checking for main in -lX11... yes
> checking for X11/Xlib.h... yes
> checking for X11/Xutil.h... yes
> checking for X11/Xlibint.h... yes
> checking for X11/Xresource.h... yes
> checking for X11/keysym.h... yes
> checking can compile xgcl... yes
> checking for bfd.h... yes
> checking for bfd_init in -lbfd... yes
> checking if need to define CONST for bfd... no
> checking for useable bfd_boolean... yes
> checking size of long... 4
> checking size of int... 4
> checking size of short... 2
> checking size of char... 1
> checking for number of bits in char... 8
> checking whether byte ordering is bigendian... no
> checking for sbrk... yes
> checking for randomized sbrk... no
> checking for required object alignment... 8
> checking for C extension variable alignment... __attribute__ ((aligned (8)))
> checking TYPE_BITS macro... 0xff09
> checking sizeof struct contblock... 8
> checking DBEGIN... 0x0
> checking for pagewidth... 16
> checking CSTACK_ADDRESS... 0x2fffff
> checking NEG_CSTACK_ADDRESS... no
> checking finding CSTACK_ALIGNMENT... 32
> checking CSTACK_DIRECTION... -1
> checking for shared library/C stack ceiling to heap... failed
> tail of config.log
> -----------------------
> ...
> configure:4736: checking NEG_CSTACK_ADDRESS
> configure:4749: gcc -o conftest      conftest.c  1>&5
> configure: failed program was:
> #line 4741 "configure"
> #include "confdefs.h"
> #include <stdio.h>
> main()
> {
>   return (long)0x2fffff<0 ? 0 : -1;
> }
> configure:4767: checking finding CSTACK_ALIGNMENT
> configure:4789: gcc -o conftest      conftest.c  1>&5
> configure:4808: checking CSTACK_DIRECTION
> configure:4832: gcc -o conftest      conftest.c  1>&5
> configure: In function `foo':
> configure:4818: warning: function returns address of local variable
> configure:4852: checking for shared library/C stack ceiling to heap
> configure:4880: gcc -o conftest      conftest.c  1>&5
> configure: In function `main':
> configure:4873: error: parse error before '/' token
> configure:4874: error: `d' undeclared (first use in this function)
> configure:4874: error: (Each undeclared identifier is reported only once
> configure:4874: error: for each function it appears in.)
> configure:4875: error: `c' undeclared (first use in this function)
> configure: failed program was:
> #line 4869 "configure"
> #include "confdefs.h"
> #include <stdio.h>
> int main() {
>     FILE *fp=fopen("conftest1","w");
>     unsigned long h=/cygdrive/c/WINDOWS/system32/rpcrt4.dll,d=0x0,c=0x2fffff;
>     h=h<d ? 0 : h;
>     h=c>d && c<h ? c : h;
>     fprintf(fp,"0x%lx",h);
>     return 0;}

-- 
Camm Maguire                                            address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah




reply via email to

[Prev in Thread] Current Thread [Next in Thread]