[Mono-list] GC error building mono on windows

Piers Haken piersh@friskit.com
Mon, 10 Feb 2003 13:34:14 -0800


This is a multi-part message in MIME format.

------_=_NextPart_001_01C2D14C.28344D92
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

My guess is that your packages are not installed correctly.

Go to /monocvs/install/lib/pkgconfig and check the 'prefix=3D' line in
each of the '*.pc' files in there. If the line reads 'prefix=3D/target'
then change it to read 'prefix=3D/monocvs/install'


Here's a section of my ~/.profile script I use for building mono:

  export MONOINSTALL=3D$HOME/mono/install
  export CPPFLAGS=3D"$CPPFLAGS -I$MONOINSTALL/include"
  export LDFLAGS=3D"$LDFLAGS -L$MONOINSTALL/lib"
  export ACLOCAL_FLAGS=3D"-I $MONOINSTALL/share/aclocal $ACLOCAL_FLAGS"
  export PKG_CONFIG_PATH=3D$MONOINSTALL/lib/pkgconfig
  export PATH=3D$PATH:$MONOINSTALL/bin:$MONOINSTALL/lib

And instead of running configure, I do this:
  ./autogen.sh --prefix=3D`cygpath -m $MONOINSTALL` --with-gc=3Dboehm

Although, if the mono-build-w32.sh script works for you you should
probably stick with that...

HTH
Piers.

> -----Original Message-----
> From: Jean-Marc Andr=E9 [mailto:jean-marc.andre@polymtl.ca]=20
> Sent: Monday, February 10, 2003 12:54 PM
> To: John BouAntoun
> Cc: mono-list@lists.ximian.com
> Subject: Re: [Mono-list] GC error building mono on windows
>=20
>=20
> Hi,
>=20
> I had the same problem.
> If it still doesn't work, try this: in the configure.in file replace=20
> "mno-cygwin" by "mcygwin" on the line 20 and check your gc.h is in=20
> something like /usr/include or /usr/local/include.
> Then re-run autogen.sh
>=20
> Hope this helps
>=20
> JM
>=20
>=20
>=20
> John BouAntoun wrote:
>=20
> > Hi guys,
> >
> > This is my first post to the mailing list. Appologies about the html
> > mail, but i'm using the web interface to my office email.
> >
> > I am running the lateste mono-build-w32.sh and get the following=20
> > error:
> >
> > ...
> > checking whether to build shared libraries... yes
> > checking whether to build static libraries... yes
> > creating libtool
> > checking for sys/filio.h... no
> > checking for sys/sockio.h... no
> > checking for netdb.h... no
> > checking for utime.h... no
> > checking for semaphore.h... no
> > checking for elf.h... no
> > checking for wchar.h... yes
> > checking size of void *... 4
> > checking for pkg-config... /usr/bin/pkg-config
> > checking for glib-2.0 >=3D 1.3.11... yes
> > checking BASE_DEPENDENCIES_CFLAGS...
> > -I/monocvs/install/include/glib-2.0 -I/mono
> > cvs/install/lib/glib-2.0/include
> > checking BASE_DEPENDENCIES_LIBS... -L/monocvs/install/lib=20
> -lglib-2.0=20
> > -lintl -lic
> > onv
> > checking for gc.h... no
> > checking for gc/gc.h... no
> > checking for GC_malloc in -lgc... yes
> > configure: error: Found libgc but not its header files! You=20
> may need=20
> > to install
> > them by hand.
> >
> >
> > My setup is as follows:
> >  - full fresh mono, mcs and xsp get from cvs
> >  - /monocvs/mono, /monocvs/mcs, /monocvs/xsp folders=20
> contain cvs files
> >  - running /monocvs/mono-build-w32.sh
> >  - it creates a directory called /monocvs/install
> >
> > Help with this would be appreciated, I actually think it's a bug in
> > the make file, but have no real idea how to read a make file.
> >
> > jba (aka SecretSquirrel)
> >
>=20
>=20
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com=20
> http://lists.ximian.com/mailman/listinfo/mono-list
>=20

------_=_NextPart_001_01C2D14C.28344D92
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.4417.0">
<TITLE>RE: [Mono-list] GC error building mono on windows</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=3D2>My guess is that your packages are not installed =
correctly.</FONT>
</P>

<P><FONT SIZE=3D2>Go to /monocvs/install/lib/pkgconfig and check the =
'prefix=3D' line in each of the '*.pc' files in there. If the line reads =
'prefix=3D/target' then change it to read =
'prefix=3D/monocvs/install'</FONT></P>
<BR>

<P><FONT SIZE=3D2>Here's a section of my ~/.profile script I use for =
building mono:</FONT>
</P>

<P><FONT SIZE=3D2>&nbsp; export MONOINSTALL=3D$HOME/mono/install</FONT>

<BR><FONT SIZE=3D2>&nbsp; export CPPFLAGS=3D&quot;$CPPFLAGS =
-I$MONOINSTALL/include&quot;</FONT>

<BR><FONT SIZE=3D2>&nbsp; export LDFLAGS=3D&quot;$LDFLAGS =
-L$MONOINSTALL/lib&quot;</FONT>

<BR><FONT SIZE=3D2>&nbsp; export ACLOCAL_FLAGS=3D&quot;-I =
$MONOINSTALL/share/aclocal $ACLOCAL_FLAGS&quot;</FONT>

<BR><FONT SIZE=3D2>&nbsp; export =
PKG_CONFIG_PATH=3D$MONOINSTALL/lib/pkgconfig</FONT>

<BR><FONT SIZE=3D2>&nbsp; export =
PATH=3D$PATH:$MONOINSTALL/bin:$MONOINSTALL/lib</FONT>
</P>

<P><FONT SIZE=3D2>And instead of running configure, I do this:</FONT>

<BR><FONT SIZE=3D2>&nbsp; ./autogen.sh --prefix=3D`cygpath -m =
$MONOINSTALL` --with-gc=3Dboehm</FONT>
</P>

<P><FONT SIZE=3D2>Although, if the mono-build-w32.sh script works for =
you you should probably stick with that...</FONT>
</P>

<P><FONT SIZE=3D2>HTH</FONT>

<BR><FONT SIZE=3D2>Piers.</FONT>
</P>

<P><FONT SIZE=3D2>&gt; -----Original Message-----</FONT>

<BR><FONT SIZE=3D2>&gt; From: Jean-Marc Andr=E9 [<A =
HREF=3D"mailto:jean-marc.andre@polymtl.ca">mailto:jean-marc.andre@polymtl=
.ca</A>] </FONT>

<BR><FONT SIZE=3D2>&gt; Sent: Monday, February 10, 2003 12:54 PM</FONT>

<BR><FONT SIZE=3D2>&gt; To: John BouAntoun</FONT>

<BR><FONT SIZE=3D2>&gt; Cc: mono-list@lists.ximian.com</FONT>

<BR><FONT SIZE=3D2>&gt; Subject: Re: [Mono-list] GC error building mono =
on windows</FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>

<BR><FONT SIZE=3D2>&gt; Hi,</FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>

<BR><FONT SIZE=3D2>&gt; I had the same problem.</FONT>

<BR><FONT SIZE=3D2>&gt; If it still doesn't work, try this: in the =
configure.in file replace </FONT>

<BR><FONT SIZE=3D2>&gt; &quot;mno-cygwin&quot; by &quot;mcygwin&quot; on =
the line 20 and check your gc.h is in </FONT>

<BR><FONT SIZE=3D2>&gt; something like /usr/include or =
/usr/local/include.</FONT>

<BR><FONT SIZE=3D2>&gt; Then re-run autogen.sh</FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>

<BR><FONT SIZE=3D2>&gt; Hope this helps</FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>

<BR><FONT SIZE=3D2>&gt; JM</FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>

<BR><FONT SIZE=3D2>&gt; John BouAntoun wrote:</FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>

<BR><FONT SIZE=3D2>&gt; &gt; Hi guys,</FONT>

<BR><FONT SIZE=3D2>&gt; &gt;</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; This is my first post to the mailing list. =
Appologies about the html</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; mail, but i'm using the web interface to my =
office email.</FONT>

<BR><FONT SIZE=3D2>&gt; &gt;</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; I am running the lateste mono-build-w32.sh =
and get the following </FONT>

<BR><FONT SIZE=3D2>&gt; &gt; error:</FONT>

<BR><FONT SIZE=3D2>&gt; &gt;</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; ...</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; checking whether to build shared =
libraries... yes</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; checking whether to build static =
libraries... yes</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; creating libtool</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; checking for sys/filio.h... no</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; checking for sys/sockio.h... no</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; checking for netdb.h... no</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; checking for utime.h... no</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; checking for semaphore.h... no</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; checking for elf.h... no</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; checking for wchar.h... yes</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; checking size of void *... 4</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; checking for pkg-config... =
/usr/bin/pkg-config</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; checking for glib-2.0 &gt;=3D 1.3.11... =
yes</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; checking BASE_DEPENDENCIES_CFLAGS...</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; -I/monocvs/install/include/glib-2.0 =
-I/mono</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; cvs/install/lib/glib-2.0/include</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; checking BASE_DEPENDENCIES_LIBS... =
-L/monocvs/install/lib </FONT>

<BR><FONT SIZE=3D2>&gt; -lglib-2.0 </FONT>

<BR><FONT SIZE=3D2>&gt; &gt; -lintl -lic</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; onv</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; checking for gc.h... no</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; checking for gc/gc.h... no</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; checking for GC_malloc in -lgc... =
yes</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; configure: error: Found libgc but not its =
header files! You </FONT>

<BR><FONT SIZE=3D2>&gt; may need </FONT>

<BR><FONT SIZE=3D2>&gt; &gt; to install</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; them by hand.</FONT>

<BR><FONT SIZE=3D2>&gt; &gt;</FONT>

<BR><FONT SIZE=3D2>&gt; &gt;</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; My setup is as follows:</FONT>

<BR><FONT SIZE=3D2>&gt; &gt;&nbsp; - full fresh mono, mcs and xsp get =
from cvs</FONT>

<BR><FONT SIZE=3D2>&gt; &gt;&nbsp; - /monocvs/mono, /monocvs/mcs, =
/monocvs/xsp folders </FONT>

<BR><FONT SIZE=3D2>&gt; contain cvs files</FONT>

<BR><FONT SIZE=3D2>&gt; &gt;&nbsp; - running =
/monocvs/mono-build-w32.sh</FONT>

<BR><FONT SIZE=3D2>&gt; &gt;&nbsp; - it creates a directory called =
/monocvs/install</FONT>

<BR><FONT SIZE=3D2>&gt; &gt;</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; Help with this would be appreciated, I =
actually think it's a bug in</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; the make file, but have no real idea how to =
read a make file.</FONT>

<BR><FONT SIZE=3D2>&gt; &gt;</FONT>

<BR><FONT SIZE=3D2>&gt; &gt; jba (aka SecretSquirrel)</FONT>

<BR><FONT SIZE=3D2>&gt; &gt;</FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>

<BR><FONT SIZE=3D2>&gt; =
_______________________________________________</FONT>

<BR><FONT SIZE=3D2>&gt; Mono-list maillist&nbsp; -&nbsp; =
Mono-list@lists.ximian.com </FONT>

<BR><FONT SIZE=3D2>&gt; <A =
HREF=3D"http://lists.ximian.com/mailman/listinfo/mono-list">http://lists.=
ximian.com/mailman/listinfo/mono-list</A></FONT>

<BR><FONT SIZE=3D2>&gt; </FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C2D14C.28344D92--