[Mono-list] Problems setting up MONO under cygwin
Jeffrey Peterson
jpeterson2@wi.rr.com
Sat, 16 Feb 2002 19:11:57 -0600
Hello,
I am trying to install and configure cygwin and glib1.3 for the first
time. I am receiving an undefined reference related to the glib1.3
library. I saw that someone else was having the same problem on the
mono-list. A little help would be appreciated.
Thanks,
Jeffrey Peterson
Output:
Jeffrey Peterson@JPXP /mono-0.8
$ ./configure --prefix=//c/mono
loading cache ./config.cache
checking host system type... i686-pc-cygwin
checking target system type... i686-pc-cygwin
checking build system type... i686-pc-cygwin
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles...
no
checking for gcc... (cached) 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... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... (cached) gcc -E
checking for ANSI C header files... (cached) yes
checking for Cygwin environment... (cached) yes
checking for mingw32 environment... (cached) no
checking for ld used by GCC... (cached) /usr/i686-pc-cygwin/bin/ld.exe
checking if the linker (/usr/i686-pc-cygwin/bin/ld.exe) is GNU ld...
(cached) ye
s
checking for /usr/i686-pc-cygwin/bin/ld.exe option to reload object
files... (ca
ched) -r
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
checking how to recognise dependant libraries... (cached) file_magic
file format
pei*-i386(.*architecture: i386)?
checking for object suffix... (cached) o
checking for executable suffix... (cached) .exe
checking command to parse /usr/bin/nm -B output... (cached) ok
checking for dlfcn.h... (cached) yes
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
checking for dlltool... (cached) dlltool
checking for as... (cached) as
checking for objdump... (cached) objdump
checking if libtool should supply DllMain function... (cached) no
checking for objdir... .libs
checking for gcc option to produce PIC... (cached) -DDLL_EXPORT
checking if gcc PIC flag -DDLL_EXPORT works... (cached) yes
checking if gcc static flag -static works... (cached) yes
checking if gcc supports -c -o file.o... (cached) yes
checking if gcc supports -c -o file.lo... (cached)
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/i686-pc-cygwin/bin/ld.exe) supports
shared lib
raries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... Win32 ld.exe
checking if libtool supports shared libraries... yes
creating libtool
checking size of void *... (cached) 4
checking for pkg-config... (cached) /usr/local/bin/pkg-config
checking for glib-2.0 >= 1.3.11... yes
checking BASE_DEPENDENCIES_CFLAGS... -I/usr/local/include/glib-2.0
-I/usr/local
/lib/glib-2.0/include
checking BASE_DEPENDENCIES_LIBS... -L/usr/local/lib -lglib-1.3
gnome-config: not found
Package gmodule-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gmodule-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gmodule-2.0' found
gnome-config: not found
Package gmodule-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gmodule-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gmodule-2.0' found
checking if building for some Win32 platform... yes
checking if building for native Win32... no
checking for new iconv... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating mono/Makefile
creating mono/metadata/Makefile
creating mono/dis/Makefile
creating mono/cil/Makefile
creating mono/arch/Makefile
creating mono/arch/x86/Makefile
creating mono/arch/ppc/Makefile
creating mono/arch/sparc/Makefile
creating mono/interpreter/Makefile
creating mono/tests/Makefile
creating mono/wrapper/Makefile
creating mono/monoburg/Makefile
creating mono/jit/Makefile
creating mono/io-layer/Makefile
creating runtime/Makefile
creating scripts/Makefile
creating man/Makefile
creating doc/Makefile
creating config.h
config.h is unchanged
Jeffrey Peterson@JPXP /mono-0.8
$ make
make all-recursive
make[1]: Entering directory `/mono-0.8'
Making all in mono
make[2]: Entering directory `/mono-0.8/mono'
Making all in io-layer
make[3]: Entering directory `/mono-0.8/mono/io-layer'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/mono-0.8/mono/io-layer'
Making all in monoburg
make[3]: Entering directory `/mono-0.8/mono/monoburg'
/bin/sh ../../libtool --mode=link gcc -g -Wall -Wunused
-Wmissing-prototypes -W
missing-declarations -o sample.exe sample.o -L/usr/local/lib
-lglib-1.3
gcc -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -o
sample.exe
sample.o -L/usr/local/lib -lglib-1.3
/usr/lib/libcygwin.a(libcmain.o)(.text+0x6a): undefined reference to
`WinMain@16
'
collect2: ld returned 1 exit status
make[3]: *** [sample.exe] Error 1
make[3]: Leaving directory `/mono-0.8/mono/monoburg'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mono-0.8/mono'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mono-0.8'
make: *** [all-recursive-am] Error 2
Jeffrey Peterson@JPXP /mono-0.8
$