[Mono-list] Error compiling mcs 0.30.1 on windows

Josh Gerdes JGerdes@quilogy.com
Fri, 20 Feb 2004 15:27:01 -0600


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:
=20
http://lists.ximian.com/archives/public/mono-devel-list/2004-January/0034=
39.html
=20
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:
=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
$ 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=3D\""/usr/local/share/jay"\" -g -O2 -c =
-o closure
.o closure.c
gcc -mno-cygwin -DSKEL_DIRECTORY=3D\""/usr/local/share/jay"\" -g -O2 -c =
-o error.o
 error.c
gcc -mno-cygwin -DSKEL_DIRECTORY=3D\""/usr/local/share/jay"\" -g -O2 -c =
-o lalr.o
lalr.c
gcc -mno-cygwin -DSKEL_DIRECTORY=3D\""/usr/local/share/jay"\" -g -O2 -c =
-o lr0.o l
r0.c
gcc -mno-cygwin -DSKEL_DIRECTORY=3D\""/usr/local/share/jay"\" -g -O2 -c =
-o main.o
main.c
gcc -mno-cygwin -DSKEL_DIRECTORY=3D\""/usr/local/share/jay"\" -g -O2 -c =
-o mkpar.o
 mkpar.c
gcc -mno-cygwin -DSKEL_DIRECTORY=3D\""/usr/local/share/jay"\" -g -O2 -c =
-o output.
o output.c
gcc -mno-cygwin -DSKEL_DIRECTORY=3D\""/usr/local/share/jay"\" -g -O2 -c =
-o reader.
o reader.c
gcc -mno-cygwin -DSKEL_DIRECTORY=3D\""/usr/local/share/jay"\" -g -O2 -c =
-o symtab.
o symtab.c
gcc -mno-cygwin -DSKEL_DIRECTORY=3D\""/usr/local/share/jay"\" -g -O2 -c =
-o verbose
.o verbose.c
gcc -mno-cygwin -DSKEL_DIRECTORY=3D\""/usr/local/share/jay"\" -g -O2 -c =
-o warshal
l.o warshall.c
gcc -mno-cygwin -DSKEL_DIRECTORY=3D\""/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
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=20
=20
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?
=20
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.
=20
Thanks,
=20
Josh

=20