"Dr A Olowofoyeku" wrote:
On 20 Jan 00, at 22:42, J. David Bryan wrote:
I am attempting to make an i486-pc-mingwmsvc (i.e., Windows NT
standalone) version of the latest gpc alpha (gpc-19991030) using the Cygwin B20.1 emulation, and I get a compilation error when the build process attempts to make the run-time library. Specifically, I get:
/usr/local/src/gcc-2.95.2/gcc/p/rts/rts.c: At top level: /usr/local/src/gcc-2.95.2/gcc/p/rts/rts.c:577: warning: `struct passwd' declared inside parameter list
[...]
The problem occurs because the RTS tries to use `struct passwd' though the C headers don't contain it. The next snapshot will solve the problem by adding an autoconf check and not using `struct passwd' if not available.
Your problem is probably due to things that are missing in the gcc Mingw libraries (and there are many of them). However, I have been able to produce a Mingw version of the RTS. It has involved a lot of patches, C macros in a new header (we presently call it 'os- hacks.h'), and sources going back and forth between Frank and me. The good news is that the next gpc snapshot will probably solve these problems that you are having.
I am quite disorganised at the moment, having just arrived back from down under. But when I am more settled, I can send you a copy of my 'os-hacks.h' file. Frank can tell you where you need to '#include' it.
The best I can tell you right now is to wait for the next snapshot, and then use it together with `os-hacks.h'. Though using `os-hacks.h' with the last alpha should yield some improvements already, it will not solve all problems and probably cause you additional debugging effort for problems that have been solved recently, like the one above...
Frank