Le Sun, 16 Apr 2006 14:12:36 +0600 "Alexander E. Patrakov" <[EMAIL PROTECTED]> 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 > > > > I encounterd it twice on Google, but not on the dosemu bugtracking > > system. Can someone help me on this one ? > > It is probably caused by a bug in glibc. Apply this patch to the installed > /usr/include/sys/kd.h file: > > http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/unix/sysv/linux/sys/kd.h.diff?cvsroot=glibc&r1=1.4&r2=1.5 I was explained by someone on the Dosemu list that it was a problem with a too recent pci.h file. This patch applied to the source tree of dosemu 1.3.3 solved the compilation problem : ------------------ 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 ------------------------------ Maybe it should be added to the dosemu hint. I cc this message to it's author. \bye -- Nicolas FRANCOIS http://nicolas.francois.free.fr A TRUE Klingon programmer does NOT comment his code -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
