[Mono-list] Error while compiling mono from SVN in cygwin

Andrus kobruleht2 at hot.ee
Fri Aug 22 11:27:38 EDT 2008


Robert,

>> This error occurs also after adding command
>>
>> export PKG_CONFIG_PATH=${MONO_LOCATION}/lib/pkgconfig:${PKG_CONFIG_PATH}
> Well, I told you to remove this line and to put mono at the top of the
> path.

Thank you for patience.
glib-2.0 package not found error occurs after  running commands you
recommended:

cd /mono/svn/mono
export PATH=${MONO_LOCATION}/bin:${PATH}
export MONO_LOCATION=/cygdrive/c/mono
export ACLOCAL_FLAGS="-I ${MONO_LOCATION}/share/aclocal"
./autogen.sh --prefix=/mono/build

autogen causes couple of messages during build.
Below is output from autogen.

Are those messages OK ?
How to force autogen to find glib-2.0 package ?

Andrus.

$ ./autogen.sh --prefix=/mono/build
Running libtoolize...
Running aclocal  ...
Running autoheader...
Running automake --gnu  ...
mono/benchmark/Makefile.am:52: `%'-style pattern rules are a GNU make 
extension
mono/benchmark/Makefile.am:55: `%'-style pattern rules are a GNU make 
extension
mono/mini/Makefile.am:398: `%'-style pattern rules are a GNU make extension
mono/mini/Makefile.am:405: `%'-style pattern rules are a GNU make extension
mono/mini/Makefile.am:131: compiling `genmdesc.c' with per-target flags 
requires
 `AM_PROG_CC_C_O' in `configure.in'
mono/monograph/Makefile.am:28: `%'-style pattern rules are a GNU make 
extension
mono/tests/Makefile.am:421: `%'-style pattern rules are a GNU make extension
mono/tests/Makefile.am:424: `%'-style pattern rules are a GNU make extension
mono/tests/cas/assembly/Makefile.am:59: `%'-style pattern rules are a GNU 
make e
xtension
mono/tests/cas/assembly/Makefile.am:62: `%'-style pattern rules are a GNU 
make e
xtension
mono/tests/cas/demand/Makefile.am:73: `%'-style pattern rules are a GNU make 
ext
ension
mono/tests/cas/demand/Makefile.am:76: `%'-style pattern rules are a GNU make 
ext
ension
mono/tests/cas/inheritance/Makefile.am:83: `%'-style pattern rules are a GNU 
mak
e extension
mono/tests/cas/inheritance/Makefile.am:86: `%'-style pattern rules are a GNU 
mak
e extension
mono/tests/cas/inheritance/Makefile.am:89: `%'-style pattern rules are a GNU 
mak
e extension
mono/tests/cas/inheritance/Makefile.am:92: `%'-style pattern rules are a GNU 
mak
e extension
mono/tests/cas/inheritance/Makefile.am:95: `%'-style pattern rules are a GNU 
mak
e extension
mono/tests/cas/inheritance/Makefile.am:98: `%'-style pattern rules are a GNU 
mak
e extension
mono/tests/cas/linkdemand/Makefile.am:95: `%'-style pattern rules are a GNU 
make
 extension
mono/tests/cas/linkdemand/Makefile.am:98: `%'-style pattern rules are a GNU 
make
 extension
mono/tests/cas/linkdemand/Makefile.am:113: `%'-style pattern rules are a GNU 
mak
e extension
mono/tests/cas/linkdemand/Makefile.am:116: `%'-style pattern rules are a GNU 
mak
e extension
mono/tests/cas/threads/Makefile.am:79: `%'-style pattern rules are a GNU 
make ex
tension
mono/tests/cas/threads/Makefile.am:82: `%'-style pattern rules are a GNU 
make ex
tension
mono/tests/cas/threads/Makefile.am:85: `%'-style pattern rules are a GNU 
make ex
tension
scripts/Makefile.am:152: shell cygpath -m $(libdir: non-POSIX variable name
scripts/Makefile.am:152: (probably a GNU make extension)
scripts/Makefile.am:153: shell cygpath -m $(libdir: non-POSIX variable name
scripts/Makefile.am:153: (probably a GNU make extension)
Running autoconf ...
Running libgc/autogen.sh ...
Running libtoolize...
Running aclocal  ...
acinclude.m4:20: warning: underquoted definition of GC_SET_VERSION
acinclude.m4:20:   run info '(automake)Extending aclocal'
acinclude.m4:20:   or see 
http://sources.redhat.com/automake/automake.html#Exten
ding-aclocal
Running automake --gnu  ...
Running autoconf ...
Skipping configure process.
Done running libgc/autogen.sh ...
Running 
./configure --enable-maintainer-mode --enable-compile-warnings --prefix=
/mono/build ...
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking target system type... i686-pc-cygwin
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether ln -s works... yes
checking host platform characteristics... ok
checking for gcc... gcc -mno-cygwin -g
checking for gcc... (cached) gcc -mno-cygwin -g
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -mno-cygwin -g accepts -g... yes
checking for gcc -mno-cygwin -g option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc -mno-cygwin -g... gcc3
checking dependency style of gcc -mno-cygwin -g... gcc3
checking for gcc... (cached) gcc -mno-cygwin -g
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc -mno-cygwin -g accepts -g... (cached) yes
checking for gcc -mno-cygwin -g option to accept ISO C89... (cached) none 
needed

checking dependency style of gcc -mno-cygwin -g... (cached) gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... (cached) gawk
checking for bison... yes
checking how to run the C preprocessor... gcc -mno-cygwin -g -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for ld used by gcc -mno-cygwin -g... 
/usr/i686-pc-mingw32/bin/ld.exe
checking if the linker (/usr/i686-pc-mingw32/bin/ld.exe) is GNU ld... yes
checking for /usr/i686-pc-mingw32/bin/ld.exe option to reload object 
files... -r

checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognize dependent libraries... file_magic ^x86 archive 
import|
^x86 DLL
checking for dlltool... dlltool
checking for as... as
checking for objdump... objdump
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... no
checking dlfcn.h presence... no
checking for dlfcn.h... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 8192
checking command to parse /usr/bin/nm -B output from gcc -mno-cygwin -g 
object..
. ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc -mno-cygwin -g supports -fno-rtti -fno-exceptions... no
checking for gcc -mno-cygwin -g option to produce PIC... -DDLL_EXPORT
checking if gcc -mno-cygwin -g PIC flag -DDLL_EXPORT works... yes
checking if gcc -mno-cygwin -g static flag -static works... yes
checking if gcc -mno-cygwin -g supports -c -o file.o... yes
checking whether the gcc -mno-cygwin -g linker 
(/usr/i686-pc-mingw32/bin/ld.exe)
 supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/i686-pc-mingw32/bin/ld.exe
checking if the linker (/usr/i686-pc-mingw32/bin/ld.exe) is GNU ld... yes
checking whether the g++ linker (/usr/i686-pc-mingw32/bin/ld.exe) supports 
share
d libraries... yes
checking for g++ option to produce PIC... -DDLL_EXPORT
checking if g++ PIC flag -DDLL_EXPORT works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/i686-pc-mingw32/bin/ld.exe) supports 
share
d libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for bash... /usr/bin/bash
checking if dolt supports this host... no, falling back to libtool
checking for ld used by gcc -mno-cygwin -g... (cached) 
/usr/i686-pc-mingw32/bin/
ld.exe
checking if the linker (/usr/i686-pc-mingw32/bin/ld.exe) is GNU ld... 
(cached) y
es
checking if the linker (/usr/i686-pc-mingw32/bin/ld.exe) is GNU ld... 
(cached) y
es
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking netdb.h usability... no
checking netdb.h presence... no
checking for netdb.h... no
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking sys/utime.h usability... yes
checking sys/utime.h presence... yes
checking for sys/utime.h... yes
checking semaphore.h usability... no
checking semaphore.h presence... no
checking for semaphore.h... no
checking sys/un.h usability... no
checking sys/un.h presence... no
checking for sys/un.h... no
checking linux/rtc.h usability... no
checking linux/rtc.h presence... no
checking for linux/rtc.h... no
checking sys/syscall.h usability... no
checking sys/syscall.h presence... no
checking for sys/syscall.h... no
checking sys/mkdev.h usability... no
checking sys/mkdev.h presence... no
checking for sys/mkdev.h... no
checking zlib.h usability... no
checking zlib.h presence... no
checking for zlib.h... no
checking elf.h usability... no
checking elf.h presence... no
checking for elf.h... no
checking poll.h usability... no
checking poll.h presence... no
checking for poll.h... no
checking sys/poll.h usability... no
checking sys/poll.h presence... no
checking for sys/poll.h... no
checking sys/wait.h usability... no
checking sys/wait.h presence... no
checking for sys/wait.h... no
checking grp.h usability... no
checking grp.h presence... no
checking for grp.h... no
checking syslog.h usability... no
checking syslog.h presence... no
checking for syslog.h... no
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking for isinf... yes
checking for void *... yes
checking size of void *... 4
checking for -Wdeclaration-after-statement option to gcc... yes
checking integrity of package... ok
checking for pkg-config... /usr/bin/pkg-config
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
Package gthread-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gthread-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gthread-2.0' found
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
Package gthread-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gthread-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gthread-2.0' found
checking pkg-config is at least version 0.9.0... yes
checking for BASE_DEPENDENCIES... configure: error: Package requirements 
(glib-2
.0 >= 1.3.11) were not met:

No package 'glib-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables 
BASE_DEPENDENCIES_CFLAGS
and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.



More information about the Mono-list mailing list