Hi,

I'm also having problem building Ruby on NT but I'm using Cygwin/gcc. The
problem is with the extension where a DLL is to be built (Win32API, socket
...). 'dllwrap' isn't able to create a
dll for the extensions. Please, see problem description below. I've
submitted it as a bug in the Ruby Bug tracking sys but it would be great
to hear if someone have managed the compilation. I've searched for docs on
dllwrap but haven't found any.

Machine is a 400Mhz IBM thinkpad running Windows NT SP4
Cygwin is version 1.1.2
Ruby is version 1.4.4 (ruby-1.4.4.tar.gz)

Steps to take to see the problem (unpack tarball and then):

bash$ ./configure
...
bash$ make
...
compiling curses
compiling dbm
compiling gdbm
compiling readline
compiling tcltklib
compiling Win32API
make[1]: Entering directory `/tmp/ruby-1.4.4/ext/Win32API'
dllwrap --export-all -s  -L/ruby-1.4.4  -o Win32API.dll Win32API.o  
Warning: no export definition file provided
dllwrap will create one, but may not be what you want
Win32API.o: In function `Win32API_initialize':
/tmp/ruby-1.4.4/ext/Win32API/Win32API.c:57: undefined reference to
`rb_eRuntimeError'
/tmp/ruby-1.4.4/ext/Win32API/Win32API.c:57: undefined reference to
`rb_raise'
...and so on for all references of the type rb_X...

The same happens for all the extensions that creates a dll (etc, fcntl,
md5, nkf, pty, sdbm, socket and tk).

Builds really nice on solaris though...

Regards,

Robert