prosa wrote:
>
> First there are tons of warnings of the following kind:
>
> xms.c:461:16: warning: pasting would not give a valid preprocessing token
> xms.c:462:12: warning: pasting would not give a valid preprocessing token
> And the build breaks on the following place:
>
> [...]
> fossil.c:365:70: warning: pasting would not give a valid preprocessing token
> fossil.c: In function `fossil_int14':
> fossil.c:283: warning: implicit declaration of function `memcpy'
> rm -f /usr/src/RPM/BUILD/dosemu-1.0.1/src/lib/libbase_serial.a
> ar cr /usr/src/RPM/BUILD/dosemu-1.0.1/src/lib/libbase_serial.a ser_init.o ser_irq.o
>ser_ports.o int14.o fossil.o
> ranlib /usr/src/RPM/BUILD/dosemu-1.0.1/src/lib/libbase_serial.a
> make[2]: Leaving directory `/usr/src/RPM/BUILD/dosemu-1.0.1/src/base/serial'
> make[2]: Entering directory `/usr/src/RPM/BUILD/dosemu-1.0.1/src/base/keyboard'
> gcc -c -D_GNU_SOURCE -O2 -fomit-frame-pointer -m486 -malign-loops=2 -malign-jumps=2
>-malign-functions=2 -MD -fno-strict-aliasing -DGCC_VERSION_CODE=2096 -DASM_PEDANTIC
>-DGLIBC_VERSION_CODE=2001 -D_XOPEN_SOURCE -pipe -DUSING_NET -Wall
>-I/usr/src/RPM/BUILD/dosemu-1.0.1/src/include
>-I/usr/src/RPM/BUILD/dosemu-1.0.1/src/dosext/dpmi
>-I/usr/src/RPM/BUILD/dosemu-1.0.1/src/include/slang -I/usr/X11R6/include -o
>serv_xlat.o serv_xlat.c
> serv_xlat.c: In function `make_bios_code':
> serv_xlat.c:313: malformed floating constant
> serv_xlat.c:313: numeric constant contains digits beyond the radix
> serv_xlat.c:313: hexadecimal floating constant has no exponent
> serv_xlat.c:313: case label does not reduce to an integer constant
> make[2]: *** [serv_xlat.o] Error 1
> make[2]: Leaving directory `/usr/src/RPM/BUILD/dosemu-1.0.1/src/base/keyboard'
> make[1]: *** [base/keyboard] Error 2
> make[1]: Leaving directory `/usr/src/RPM/BUILD/dosemu-1.0.1/src'
> make: *** [default] Error 2
> Bad exit status from /var/tmp/rpm-tmp.66034 (%build)
This is esy to fix - go to line 313 of serv_xlat.c and add the MISSING SPACES before
and
after the three
dots of the case range. Will be fixed in dosemu-1.1.1 and 1.0.2.
As for the warnings - please don't care about them, dosemu compiles and runs with both
2.96 and later
snapshots. I can't guarantee about stability, however, because dosemu is more unstable
than gcc ;-)
Alberto