On Mon, 12 Jun 2000, Bart Oldeman wrote:

> If you or your distribution maker compiled using gcc-2.95, then that is
> the culprit, since it optimizes too much stuff away in a particular
> file. It has been solved in the upcoming dosemu-1.0.1. If you're feeling
> adventurous (well, now only documentation changes are pending, so it 
> shouldn't hurt, but don't complain if you don't find an obvious bug
> ;-) you can try to patch from ver 1.0.0 to a test version:
> ftp://ftp.dosemu.org/pub/dosemu/testing/patchset-1.0.0.9.tgz
> 
> Bart
> 
Yeah!  That was the problem.  But when compiling the new source, there
where to failures:

I'm using...

1. glibc-2.1.90 (upcoming glibc-2.2), so the base-configure does
not correctly determine the glibc version.  This patch helps:

--- dosemu-1.0.0/base-configure Sun Mar  5 14:52:47 2000
+++ dosemu-1.0.0.9/base-configure       Tue Jun 13 02:21:27 2000
@@ -3924,14 +3924,14 @@
   GCC_VERSION_CODE="-DGCC_VERSION_CODE=$GCC_VERSION_CODE"
 
   echo -n "checking for glibc..."
-  major=`echo '#include <features.h>' |${CC-cc} -E -dM -|awk
'/__GLIBC__/{print $3}'`
+  major=`echo '#include <features.h>' |${CC-cc} -E -dM -|awk '/#define
__GLIBC__/{print $3}'`
   if test "$major" = ""; then
     echo "no"
   else
     if test "$(( $major > 1 ))" = "1"; then
       GLIBCFLAGS="-D_XOPEN_SOURCE"
     fi
-    minor=`echo '#include <features.h>' |${CC-cc} -E -dM -|awk
'/__GLIBC_MINOR__/{print $3}'`
+    minor=`echo '#include <features.h>' |${CC-cc} -E -dM -|awk '/#define
__GLIBC_MINOR__/{print $3}'`
     if test "$minor" = ""; then
       minor=0;
     fi

2. linux-2.4.0-test1-ac15 and this error occurs when compiling disks.c:
In file included from /usr/include/linux/fs.h:23,
                 from disks.c:24:
/usr/include/linux/string.h:12: parse error before `__extension__'
/usr/include/linux/string.h:12: parse error before `&&'
/usr/include/linux/string.h:14: parse error before `__extension__'
/usr/include/linux/string.h:14: parse error before `('
/usr/include/linux/string.h:15: parse error before `__extension__'
/usr/include/linux/string.h:15: parse error before `&&'
In file included from /usr/include/linux/fs.h:23,
                 from disks.c:24:
/usr/include/linux/string.h:24: parse error before `__extension__'
....

many errors in string.h

Dirty patch: just linked /usr/src/linux back to the linux-2.2.15 kernel
and worked perfectly.

Now gaming makes fun!

TWISTI

Reply via email to