[Mono-list] Configuration problem in mono-0.20 (windows/cygwin)
Stefan Matthias Aust
sma@3plus4.de
Mon, 24 Feb 2003 13:24:04 +0100
Stefan Matthias Aust wrote:
> Another problem might be that configure cannot find the GC lib
Okay, I cannot make mono pickup the libgc. I compiled gc6.1 after a
"configure --prefix=/usr" and make and installation seemed have to
worked. Still, mono's configure is complaining.
From the config.log file (please remember, I'm no Unix programmer, I
don't understand all that configure/automake magic) it looks like
configure:8790: checking for GC_malloc in -lgc
configure:8823: gcc -mno-cygwin -o conftest.exe -g -Wall -Wunused
-Wmissing-prot
otypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes
-Wnested
-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings
-DGC_WIN32
_THREADS -DWIN32_THREADS conftest.c -lgc >&5
configure:8805: warning: function declaration isn't a prototype
configure:8814: warning: function declaration isn't a prototype
/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../libgc.a(malloc.o)(.text+0x338):
In
function `GC_generic_malloc':
/usr/local/mono/gc6.1/malloc.c:189: undefined reference to
`pthread_mutex_lock'
the test program, configure is compiling to check for libgc doesn't work
because the mingw version of gcc is missing some pthread (portable
threads?) library. Is this a correct observation? Does this mean, I
didn't compile the libgc stuff correctly?
I /think/ I heard somewhere that mingw has still problems this threads.
So perhaps this is a problem. However, there're some win32 specific
files in the distribution perhaps it just didn't know that I wanted a
mingw version of libgc.
If I compare the configure outputs of mono and gc, mono said "checking
for gcc... gcc -mno-cygwin" while gc said "checking for gcc... gcc"
Still, it looks like I'm on the wrong way here, from a posting to
mono-list in November I guess, you need a special build libgc DLL for
windows build with VC++.
bye
--
Stefan Matthias Aust
www.3plus4software.de // Inter Deum Et Diabolum Semper Musica Est