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