Hello,
I am having difficulty building vgabios. Can someone please give me a hand? I took the latest code off of the freebios2 branch (6 days old, by Ollie) I get the following Errors when I try to compile. It looks like I am missing files in the drop #include <pci/pci.h>
gcc -Wall -Ix86emu/include -O2 -g -m32 -march=i386 -c -o pci-userspace.o pci-userspace.c pci-userspace.c:2:21: pci/pci.h: No such file or directory In file included from pci-userspace.c:4: pci.h:1: error: parse error before "port" pci-userspace.c: In function `pciInit': pci-userspace.c:20: warning: implicit declaration of function `pci_alloc' pci-userspace.c:20: warning: assignment makes pointer from integer without a cast pci-userspace.c:22: warning: implicit declaration of function `pci_init' pci-userspace.c:23: warning: implicit declaration of function `pci_scan_bus' pci-userspace.c:24: error: dereferencing pointer to incomplete type pci-userspace.c:24: error: dereferencing pointer to incomplete type pci-userspace.c:25: warning: implicit declaration of function `pci_fill_info' pci-userspace.c:25: error: `PCI_FILL_IDENT' undeclared (first use in this function) pci-userspace.c:25: error: (Each undeclared identifier is reported only once pci-userspace.c:25: error: for each function it appears in.) pci-userspace.c:25: error: `PCI_FILL_BASES' undeclared (first use in this function) pci-userspace.c: In function `pciExit': pci-userspace.c:32: warning: implicit declaration of function `pci_cleanup' pci-userspace.c: In function `findPci': pci-userspace.c:44: error: dereferencing pointer to incomplete type pci-userspace.c:45: error: dereferencing pointer to incomplete type pci-userspace.c:46: error: dereferencing pointer to incomplete type pci-userspace.c:48: warning: implicit declaration of function `pci_get_dev' pci-userspace.c: At top level: pci-userspace.c:54: error: parse error before "pciSlotBX" pci-userspace.c:55: warning: return type defaults to `int' pci-userspace.c: In function `pciSlotBX': pci-userspace.c:56: error: dereferencing pointer to incomplete type pci-userspace.c:56: error: dereferencing pointer to incomplete type pci-userspace.c:56: error: dereferencing pointer to incomplete type pci-userspace.c: At top level: pci-userspace.c:59: error: parse error before "pciReadByte" pci-userspace.c:59: error: parse error before "u32" pci-userspace.c:60: warning: return type defaults to `int' pci-userspace.c: In function `pciReadByte': pci-userspace.c:62: error: `tag' undeclared (first use in this function) pci-userspace.c:62: warning: assignment makes pointer from integer without a cast pci-userspace.c:63: warning: implicit declaration of function `pci_read_byte' pci-userspace.c:63: error: `idx' undeclared (first use in this function) pci-userspace.c: At top level: pci-userspace.c:71: error: parse error before "pciReadWord" pci-userspace.c:71: error: parse error before "u32" pci-userspace.c:72: warning: return type defaults to `int' pci-userspace.c: In function `pciReadWord': pci-userspace.c:74: error: `tag' undeclared (first use in this function) pci-userspace.c:74: warning: assignment makes pointer from integer without a cast pci-userspace.c:75: warning: implicit declaration of function `pci_read_word' pci-userspace.c:75: error: `idx' undeclared (first use in this function) pci-userspace.c: At top level: pci-userspace.c:83: error: parse error before "pciReadLong" pci-userspace.c:83: error: parse error before "u32" pci-userspace.c:84: warning: return type defaults to `int' pci-userspace.c: In function `pciReadLong': pci-userspace.c:86: error: `tag' undeclared (first use in this function) pci-userspace.c:86: warning: assignment makes pointer from integer without a cast pci-userspace.c:87: warning: implicit declaration of function `pci_read_long' pci-userspace.c:87: error: `idx' undeclared (first use in this function) pci-userspace.c: At top level: pci-userspace.c:96: error: parse error before "u32" pci-userspace.c: In function `pciWriteLong': pci-userspace.c:99: error: `tag' undeclared (first use in this function) pci-userspace.c:99: warning: assignment makes pointer from integer without a cast pci-userspace.c:100: warning: implicit declaration of function `pci_write_long' pci-userspace.c:100: error: `idx' undeclared (first use in this function) pci-userspace.c:100: error: `data' undeclared (first use in this function) pci-userspace.c: At top level: pci-userspace.c:108: error: parse error before "u32" pci-userspace.c: In function `pciWriteWord': pci-userspace.c:111: error: `tag' undeclared (first use in this function) pci-userspace.c:111: warning: assignment makes pointer from integer without a cast pci-userspace.c:112: warning: implicit declaration of function `pci_write_word' pci-userspace.c:112: error: `idx' undeclared (first use in this function) pci-userspace.c:112: error: `data' undeclared (first use in this function) pci-userspace.c: At top level: pci-userspace.c:121: error: parse error before "u32" pci-userspace.c: In function `pciWriteByte': pci-userspace.c:124: error: `tag' undeclared (first use in this function) pci-userspace.c:124: warning: assignment makes pointer from integer without a cast pci-userspace.c:125: error: `idx' undeclared (first use in this function) pci-userspace.c:125: error: `data' undeclared (first use in this function) /usr/include/bits/stdio.h: At top level: pci-userspace.c:13: error: storage size of `ltag' isn't known make: *** [pci-userspace.o] Error 1
Can someone please tell me where I can find the correct pci files? I have a Suse 9.0 x64 distribution.
Thanks, Dave