Ernst-Ludwig Bohnen wrote:
BTW is there a chance to get rid of the nasty line: "*** Press ENTER to continue, Ctrl-C to abort."?
Comment it out in config-lang.in. ;-) But seriously, do you want to get rid of the line in the output, or of the requirement to press enter? In the latter case, running `echo "" | .../configure ...' should help.
make sed grep patch 3.79 3.02 2.5 2.5 <--- GNU version
Test 1 GNU GNU GNU GNU OK, compiled 10k lines of units & programs Test 2 GNU GNU GNU SUN Error 1
As I said, that's a bug. Once it's fixed (by adding the lost spaces), it should not require GNU patch.
Test 3 SUN GNU GNU GNU Error 2
Expected. One might discuss if it should print a clear error message to the effect that GNU make is required, but that's a choice to be made at top-level, i.e. in GCC, so if you'd like this, please contact the GCC developers.
Test 4 GNU SUN GNU GNU Warning 1, after <RET> successfull
Also expected (but not critical, so it's not "really needed" for the core functionality).
Test 5 GNU GNU SUN GNU Installation ends successfully ^----^---------^--- Really needed as GNU-version on SUN
Here some test results with SUN or GNU tools activated on SunOS 5.8 when installing gpc-20020410 based on gcc-2.95.2. 'Error 3' shows the 'last words' when trying to install on HP-UX 10.20 (all 4 GNU-tools activated).
Error 3 (HP-UX 10.20)
/usr/include/sys/unistd.h:535: warning: type of `a' defaults to `int' /usr/include/sys/unistd.h:535: warning: type of `c' defaults to `int'
This might be a "feature" of HP-UX's system headers. Maybe they don't like to be included in the order we do, or they want to have some other header included before. I've seen this in some other proprietary Unixes (and I don't understand it at all -- I mean how hard is it to include the required headers from the header itself, and to protect against multiple inclusion? But that's getting off-topic ... ;-). You might want to try moving the #include's in rts.c around or adding required ones to get it working (by trial and error, or by looking at other examples, or maybe by removing previous includes until you find the conflict). Preferably produce a minimal change to rts.c, to lessen the risk of breaking things this way on other systems.
/tmp/bohnen/install.gpc/gcc-2.95.2/gcc/p/rts/rts.c: At top level: /tmp/bohnen/install.gpc/gcc-2.95.2/gcc/p/rts/rts.c:656: conflicting types for `usleep' /usr/include/sys/unistd.h:375: previous declaration of `usleep' /tmp/bohnen/install.gpc/gcc-2.95.2/gcc/p/rts/rts.c: In function `_p_Sleep': /tmp/bohnen/install.gpc/gcc-2.95.2/gcc/p/rts/rts.c:921: warning: implicit declaration of function `_sleep'
Probably another detail about the headers. Could you send me everything related to "sleep" in the system headers (not the whole headers!), and in config.{log,cache} (created in the RTS build directory)?
Frank