dosemu doesn't compile

Bernd Kosmahl beko at duke.famkos.net
Tue Oct 31 17:49:29 CET 2006


Am Dienstag, 31. Oktober 2006 17:09 tippselte Bernd Kosmahl:
> gcc -c -I/usr/X11R6/include -MP -MMD -I../src/include
> -I../src/plugin/include  -Wall -Wstrict-prototypes
> -Wmissing-declarations -Wnested-externs  -O0 -march=athlon-xp
> -fno-strict-aliasing -mtune=i686 -pipe  -o emu.o emu.c
> In file included from /usr/include/sys/pci.h:23,
>                  from ../src/include/pci.h:10,
>                  from emu.c:119:
> /usr/include/linux/pci.h:453: error: syntax error before
> "pci_power_t" make[1]: *** [emu.o] Errors 1
> make[1]: Leaving directory `/usr/src/dosemu-1.2.2/src'
> make: *** [default] Errors 2

okey, tchan saved my day. It's all about the kernel-headers. dosemu 
doesn't work with 2.6 kernelheaders. I tried the latest development 
version 1.3.3 and still had this problem. tchan found a nice little 
patch on 
http://linuxfromscratch.org/pipermail/blfs-support/2006-April/059257.html

------------------ begin patch ------------------------------
diff -Naur dosemu-1.3.3/src/include/pci.h
dosemu-1.3.3.new/src/include/pci.h ---
dosemu-1.3.3/src/include/pci.h  2005-12-10 05:41:58.000000000 +0100
+++ dosemu-1.3.3.new/src/include/pci.h  2006-04-15
14:21:51.000000000 +0200 @@ -7,7 +7,21 @@ #ifndef DOSEMU_PCI_H
 #define DOSEMU_PCI_H
 
-#include <sys/pci.h>
+/* #include <sys/pci.h> */
+#define PCI_VENDOR_ID                   0x00
+#define PCI_VENDOR_ID_INTEL             0x8086
+#define PCI_VENDOR_ID_COMPAQ            0x0e11
+#define PCI_BASE_ADDRESS_0              0x10
+#define PCI_BASE_ADDRESS_5              0x24
+#define PCI_BASE_ADDRESS_SPACE_IO       0x01
+#define PCI_BASE_ADDRESS_SPACE_MEMORY   0x00
+#define PCI_BASE_ADDRESS_MEM_MASK       (~0x0fUL)
+#define PCI_BASE_ADDRESS_IO_MASK        (~0x03UL)
+#define PCI_ROM_ADDRESS                 0x30
+#define PCI_ROM_ADDRESS_MASK            (~0x7ffUL)
+#define PCI_CLASS_DISPLAY_VGA           0x0300
+#define PCI_CLASS_BRIDGE_HOST           0x0600
+#define PCI_CLASS_DEVICE                0x0a
 
 #define PCIBIOS_PCI_FUNCTION_ID        0xb1
 #define PCIBIOS_PCI_BIOS_PRESENT       0xb101
-------------------- end patch ------------------------------

Perhaps somebody has the same problem and can make some use of it :)
-- 
Bernd "beko" Kosmahl
beko (a-nospam-t) duke.famkos.net


More information about the Lunar mailing list