* Problem compiling Dosemu, "pci_power_t" problem
@ 2006-04-14 14:29 Nicolas FRANCOIS
2006-04-14 15:52 ` Reinhard Karcher
0 siblings, 1 reply; 5+ messages in thread
From: Nicolas FRANCOIS @ 2006-04-14 14:29 UTC (permalink / raw)
To: Dosemu
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 ?
\bye
--
Nicolas FRANCOIS
http://nicolas.francois.free.fr
A TRUE Klingon programmer does NOT comment his code
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Problem compiling Dosemu, "pci_power_t" problem
2006-04-14 14:29 Problem compiling Dosemu, "pci_power_t" problem Nicolas FRANCOIS
@ 2006-04-14 15:52 ` Reinhard Karcher
2006-04-14 19:05 ` Nicolas FRANCOIS
0 siblings, 1 reply; 5+ messages in thread
From: Reinhard Karcher @ 2006-04-14 15:52 UTC (permalink / raw)
To: Dosemu
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 dosemu.org.
I'm afraid pci.h is too new for dosemu-1.2.2
Reinhard
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problem compiling Dosemu, "pci_power_t" problem
2006-04-14 15:52 ` Reinhard Karcher
@ 2006-04-14 19:05 ` Nicolas FRANCOIS
2006-04-15 10:06 ` Bart Oldeman
0 siblings, 1 reply; 5+ messages in thread
From: Nicolas FRANCOIS @ 2006-04-14 19:05 UTC (permalink / raw)
To: Dosemu
Le Fri, 14 Apr 2006 17:52:30 +0200 Reinhard Karcher <rkarcher@frey.de> 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 dosemu.org.
> 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.
\bye
--
Nicolas FRANCOIS
http://nicolas.francois.free.fr
A TRUE Klingon programmer does NOT comment his code
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Problem compiling Dosemu, "pci_power_t" problem
2006-04-14 19:05 ` Nicolas FRANCOIS
@ 2006-04-15 10:06 ` Bart Oldeman
2006-04-16 11:37 ` Nicolas FRANCOIS
0 siblings, 1 reply; 5+ messages in thread
From: Bart Oldeman @ 2006-04-15 10:06 UTC (permalink / raw)
To: Nicolas FRANCOIS; +Cc: Dosemu
[-- Attachment #1: Type: TEXT/PLAIN, Size: 2010 bytes --]
On Fri, 14 Apr 2006, Nicolas FRANCOIS wrote:
> Le Fri, 14 Apr 2006 17:52:30 +0200 Reinhard Karcher <rkarcher@frey.de> 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 dosemu.org.
>> 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>
with
#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
you should be fine. That's what I did in the current SVN.
Bart
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problem compiling Dosemu, "pci_power_t" problem
2006-04-15 10:06 ` Bart Oldeman
@ 2006-04-16 11:37 ` Nicolas FRANCOIS
0 siblings, 0 replies; 5+ messages in thread
From: Nicolas FRANCOIS @ 2006-04-16 11:37 UTC (permalink / raw)
To: Dosemu
[-- Attachment #1: Type: text/plain, Size: 1673 bytes --]
Le Sat, 15 Apr 2006 22:06:56 +1200 (NZST) Bart Oldeman
<bartoldeman@users.sourceforge.net> a écrit :
> >> You should compile dosemu-1.3.3 from dosemu.org.
> >> 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>
>
> with
>
> #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
>
> you should be fine. That's what I did in the current SVN.
>
> Bart
It worked fine. I attached to this mail a patch file for anyone
interested.
Thanks.
(BTW, it didn't help so much for running UFO 1 : I had a crash at the end
of the introduction).
\bye
--
Nicolas FRANCOIS
http://nicolas.francois.free.fr
A TRUE Klingon programmer does NOT comment his code
[-- Attachment #2: dosemu-1.3.3_pci_h_hack.patch --]
[-- Type: text/x-patch, Size: 1087 bytes --]
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-04-16 11:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-14 14:29 Problem compiling Dosemu, "pci_power_t" problem Nicolas FRANCOIS
2006-04-14 15:52 ` Reinhard Karcher
2006-04-14 19:05 ` Nicolas FRANCOIS
2006-04-15 10:06 ` Bart Oldeman
2006-04-16 11:37 ` Nicolas FRANCOIS
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.