On 12/16/2009 08:47 PM, Walter Dnes wrote:
   Attached is the emerge log.  I'm running 32 bit on an Intel Core Duo
(Dell D530) USE="-X -debug -gpm -svga".  The last step of the gcc
upgrade is "emerge -eav world".  dosemu 1.4.0 built under gcc 4.1.2 but
not under 4.3.4.  I've added my report to
http://bugs.gentoo.org/show_bug.cgi?id=294843  Any ideas from the log?

I'm guessing the doesemu code is getting old and needs maintenance.  This
patch lets dosemu compile with 4.3.4 but I can't test the result because
I don't have any DOS programs.  This is just a quick-and-dirty -- the
right way would be to add an #ifdef to test for compiler version.

#cat dosemu.patch
--- work/dosemu-1.4.0/src/tools/periph/dexeconfig.c.orig        2009-12-17 
08:02:40.000000000 -0800
+++ work/dosemu-1.4.0/src/tools/periph/dexeconfig.c     2009-12-17 
08:05:19.000000000 -0800
@@ -238,7 +238,7 @@
     exit(1);
   }
   close(fd);
-  fc = open(cfile, O_WRONLY | O_CREAT | O_TRUNC);
+  fc = open(cfile, O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
   if (fc < 0) {
     perror("cannot open config file");
     exit(1);


Reply via email to