Re: Problem compiling Dosemu, "pci_power_t" problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Fri, 14 Apr 2006, Nicolas FRANCOIS wrote:

Le Fri, 14 Apr 2006 17:52:30 +0200 Reinhard Karcher <rkarcher@xxxxxxx> a
écrit :

Nicolas FRANCOIS wrote:
While compiling dosemu-1.2.2 on a LFS 6.0 (dev, gcc 3.4.3, kernel
2.6.13), I get this error message :

gcc -c -I/usr/X11R6/include -MP -MMD -I../src/include
-I../src/plugin/include  -Wall -Wstrict-prototypes -Wmissing-declarations
-Wnested-externs -O2 -fomit-frame-pointer -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:454: erreur: erreur d'analyse
syntaxique avant « pci_power_t » make[1]: *** [emu.o] Erreur 1 make[1]:
Leaving directory `/sources/dosemu-1.2.2/src' make: *** [default] Erreur 2

You should compile dosemu-1.3.3 from
I'm afraid pci.h is too new for dosemu-1.2.2

Doesn't work either :-( Same error, but from vga.c this time.

#include <sys/pci.h> just seems to get broken at unrelated places again. As much as I would like that the headers would be fixed, that just doesn't seem to happen quickly enough...

if you search and replace

#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_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

you should be fine. That's what I did in the current SVN.


[Index of Archives]     [Linux Console]     [Linux Audio]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Camping]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Samba]     [Linux Media]     [Fedora Users]

  Powered by Linux