[Mono-devel-list] Error compiling mcs 0.30.1 on windows

Josh Gerdes JGerdes at quilogy.com
Thu Feb 19 10:48:19 EST 2004


I am attempting to successfully compile both mono and mcs (and
eventually gtk-sharp 0.16) on windows (XP SP1) with cygwin and I have
had some success with a successful build of mono 0.30.1 by slightly
modifying these instructions I found on the mono-devel list:
 
http://lists.ximian.com/archives/public/mono-devel-list/2004-January/003
439.html
 
The snag I am having is when I try to compile the mcs 0.30.1 source.
When I run make I get the following error:
 
=====================================================================
$ make
make[1]: Entering directory `/home/jgerdes/src/mcs-0.30.1/build'
make[1]: Leaving directory `/home/jgerdes/src/mcs-0.30.1/build'
make[1]: Entering directory `/home/jgerdes/src/mcs-0.30.1/jay'
gcc -mno-cygwin -DSKEL_DIRECTORY=\""/usr/local/share/jay"\" -g -O2 -c -o
closure
.o closure.c
gcc -mno-cygwin -DSKEL_DIRECTORY=\""/usr/local/share/jay"\" -g -O2 -c -o
error.o
 error.c
gcc -mno-cygwin -DSKEL_DIRECTORY=\""/usr/local/share/jay"\" -g -O2 -c -o
lalr.o
lalr.c
gcc -mno-cygwin -DSKEL_DIRECTORY=\""/usr/local/share/jay"\" -g -O2 -c -o
lr0.o l
r0.c
gcc -mno-cygwin -DSKEL_DIRECTORY=\""/usr/local/share/jay"\" -g -O2 -c -o
main.o
main.c
gcc -mno-cygwin -DSKEL_DIRECTORY=\""/usr/local/share/jay"\" -g -O2 -c -o
mkpar.o
 mkpar.c
gcc -mno-cygwin -DSKEL_DIRECTORY=\""/usr/local/share/jay"\" -g -O2 -c -o
output.
o output.c
gcc -mno-cygwin -DSKEL_DIRECTORY=\""/usr/local/share/jay"\" -g -O2 -c -o
reader.
o reader.c
gcc -mno-cygwin -DSKEL_DIRECTORY=\""/usr/local/share/jay"\" -g -O2 -c -o
symtab.
o symtab.c
gcc -mno-cygwin -DSKEL_DIRECTORY=\""/usr/local/share/jay"\" -g -O2 -c -o
verbose
.o verbose.c
gcc -mno-cygwin -DSKEL_DIRECTORY=\""/usr/local/share/jay"\" -g -O2 -c -o
warshal
l.o warshall.c
gcc -mno-cygwin -DSKEL_DIRECTORY=\""/usr/local/share/jay"\" -g -O2 -o
jay closur
e.o error.o lalr.o lr0.o main.o mkpar.o output.o reader.o symtab.o
verbose.o war
shall.o
main.o(.text+0x500): In function `create_file_names':
/home/jgerdes/src/mcs-0.30.1/jay/main.c:291: undefined reference to
`_mkstemp'
main.o(.text+0x50d):/home/jgerdes/src/mcs-0.30.1/jay/main.c:292:
undefined refer
ence to `_mkstemp'
main.o(.text+0x51a):/home/jgerdes/src/mcs-0.30.1/jay/main.c:293:
undefined refer
ence to `_mkstemp'
collect2: ld returned 1 exit status
make[1]: *** [jay] Error 1
make[1]: Leaving directory `/home/jgerdes/src/mcs-0.30.1/jay'
make: *** [all-recursive] Error 1
=====================================================================
 
 
I am currently just trying to get a downloadable release version of mcs
compiled and I was wondering if anyone has seen this issue and how they
went about solving it.  What is "_mkstemp" and how do I set the
reference for it?
 
I also would suggest putting some sort of updated instructions on how to
get all of these great tools compiled on windows on the mono site.  It
would be very helpful for everyone trying to work with them on windows.
I will be more than happy to send on the instructions I have once I get
them working fully.
 
Thanks,
 
Josh

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040219/d3ee96e8/attachment.html 


More information about the Mono-devel-list mailing list