[Mono-list] Building Mono from CVS

Gaurav Vaish gaurav.vaish@amsoft.net
Wed, 14 Aug 2002 10:38:26 +0530


This is a multi-part message in MIME format.

------=_NextPart_000_0009_01C2437E.B8AD2350
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hi,
    I am encountering a strange problem. Result: unable to compile mono
under Linux.

=====================
    Specs:

/mnt/GoMono/mine> pkg-config --libs glib-2.0
 -L/usr/local/lib -lglib-2.0

/mnt/GoMono/mine> pkg-config --cflags glib-2.0
 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
=====================

    On running "autogen.sh" on Mandrake 8.2, I get the following log (also
attached as .logs):

=====================
**Warning**: I am going to run `configure' with no arguments.
If you wish to pass any to it, please specify them on the
`./autogen.sh' command line.

Running libtoolize...
You should add the contents of `/usr/share/aclocal/libtool.m4' to
`aclocal.m4'.
Running aclocal  ...
Running autoheader...
configure.in:490: warning: AC_TRY_RUN called without default to allow cross
compiling
Running automake --gnu  ...
automake: configure.in: installing `./install-sh'
automake: configure.in: installing `./mkinstalldirs'
automake: configure.in: installing `./missing'
automake: configure.in: installing `./depcomp'
Running autoconf ...
configure.in:490: warning: AC_TRY_RUN called without default to allow cross
compiling
Running ./configure --enable-maintainer-mode --enable-compile-warnings ...
creating cache ./config.cache
checking host system type... i586-pc-linux-gnu
checking target system type... i586-pc-linux-gnu
checking build system type... i586-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking if building for some Win32 platform... no
checking for gcc... gcc
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc option to accept ANSI C... none needed
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
checking command to parse /usr/bin/nm -B output... ok
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking for sys/filio.h... no
checking for sys/sockio.h... no
checking for netdb.h... yes
checking for utime.h... yes
checking for iconv.h... yes
checking for giconv.h... no
checking for elf.h... yes
checking size of void *... 4
checking for pkg-config... /usr/local/bin/pkg-config
./configure: line 6401: syntax error near unexpected token
`PKG_CHECK_MODULES(BASE_DEPENDENCIES,'
./configure: line 6401: `PKG_CHECK_MODULES(BASE_DEPENDENCIES, glib-2.0 >=
$GLIB_REQUIRED_VERSION)'

=====================

    Any clues?

Happy Hacking,
Gaurav

------=_NextPart_000_0009_01C2437E.B8AD2350
Content-Type: application/octet-stream;
	name=".logs"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename=".logs"

**Warning**: I am going to run `configure' with no arguments.=0A=
If you wish to pass any to it, please specify them on the=0A=
`./autogen.sh' command line.=0A=
=0A=
Running libtoolize...=0A=
You should add the contents of `/usr/share/aclocal/libtool.m4' to =
`aclocal.m4'.=0A=
Running aclocal  ...=0A=
Running autoheader...=0A=
configure.in:490: warning: AC_TRY_RUN called without default to allow =
cross compiling=0A=
Running automake --gnu  ...=0A=
automake: configure.in: installing `./install-sh'=0A=
automake: configure.in: installing `./mkinstalldirs'=0A=
automake: configure.in: installing `./missing'=0A=
automake: configure.in: installing `./depcomp'=0A=
Running autoconf ...=0A=
configure.in:490: warning: AC_TRY_RUN called without default to allow =
cross compiling=0A=
Running ./configure --enable-maintainer-mode --enable-compile-warnings =
...=0A=
creating cache ./config.cache=0A=
checking host system type... i586-pc-linux-gnu=0A=
checking target system type... i586-pc-linux-gnu=0A=
checking build system type... i586-pc-linux-gnu=0A=
checking for a BSD compatible install... /usr/bin/install -c=0A=
checking whether build environment is sane... yes=0A=
checking for gawk... gawk=0A=
checking whether make sets ${MAKE}... yes=0A=
checking whether to enable maintainer-specific portions of Makefiles... =
yes=0A=
checking if building for some Win32 platform... no=0A=
checking for gcc... gcc=0A=
checking for gcc... (cached) gcc=0A=
checking whether the C compiler (gcc  ) works... yes=0A=
checking whether the C compiler (gcc  ) is a cross-compiler... no=0A=
checking whether we are using GNU C... yes=0A=
checking whether gcc accepts -g... yes=0A=
checking for style of include used by make... GNU=0A=
checking dependency style of gcc... gcc3=0A=
checking for gcc option to accept ANSI C... none needed=0A=
checking for a BSD compatible install... /usr/bin/install -c=0A=
checking how to run the C preprocessor... gcc -E=0A=
checking for ANSI C header files... yes=0A=
checking for Cygwin environment... no=0A=
checking for mingw32 environment... no=0A=
checking for ld used by GCC... /usr/bin/ld=0A=
checking if the linker (/usr/bin/ld) is GNU ld... yes=0A=
checking for /usr/bin/ld option to reload object files... -r=0A=
checking for BSD-compatible nm... /usr/bin/nm -B=0A=
checking whether ln -s works... yes=0A=
checking how to recognise dependant libraries... pass_all=0A=
checking for object suffix... o=0A=
checking for executable suffix... no=0A=
checking command to parse /usr/bin/nm -B output... ok=0A=
checking for dlfcn.h... yes=0A=
checking for ranlib... ranlib=0A=
checking for strip... strip=0A=
checking for objdir... .libs=0A=
checking for gcc option to produce PIC... -fPIC=0A=
checking if gcc PIC flag -fPIC works... yes=0A=
checking if gcc static flag -static works... yes=0A=
checking if gcc supports -c -o file.o... yes=0A=
checking if gcc supports -c -o file.lo... yes=0A=
checking if gcc supports -fno-rtti -fno-exceptions... yes=0A=
checking whether the linker (/usr/bin/ld) supports shared libraries... =
yes=0A=
checking how to hardcode library paths into programs... immediate=0A=
checking whether stripping libraries is possible... yes=0A=
checking dynamic linker characteristics... GNU/Linux ld.so=0A=
checking if libtool supports shared libraries... yes=0A=
checking whether to build shared libraries... yes=0A=
checking whether to build static libraries... yes=0A=
checking whether -lc should be explicitly linked in... no=0A=
creating libtool=0A=
checking for sys/filio.h... no=0A=
checking for sys/sockio.h... no=0A=
checking for netdb.h... yes=0A=
checking for utime.h... yes=0A=
checking for iconv.h... yes=0A=
checking for giconv.h... no=0A=
checking for elf.h... yes=0A=
checking size of void *... 4=0A=
checking for pkg-config... /usr/local/bin/pkg-config=0A=
./configure: line 6401: syntax error near unexpected token =
`PKG_CHECK_MODULES(BASE_DEPENDENCIES,'=0A=
./configure: line 6401: `PKG_CHECK_MODULES(BASE_DEPENDENCIES, glib-2.0 =
>=3D $GLIB_REQUIRED_VERSION)'=0A=

------=_NextPart_000_0009_01C2437E.B8AD2350--