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

Attachment: .logs
Description: Binary data

Reply via email to