From johnandkatyterry@home.com Sat, 3 Mar 2001 22:12:15 -0800 Date: Sat, 3 Mar 2001 22:12:15 -0800 From: John Terry johnandkatyterry@home.com Subject: [3c509] 3c509.c driver won't compile This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C0A42F.01239060 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi. I have a problem with the latest version of the 3c509.c driver source = code. It will not compile for me. I found it in: /usr/src/linux-2.2.16/drivers/net and tried to compile it using the compile instructions at the bottom of = the file. Since I am using Red Hat 7.0 I substituted kgcc in place of = gcc, and used the command: kgcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c 3c509.c I then got a large bunch of error messages, as follows, with no compile: /usr/i386-glibc21-linux/include/asm/pgtable.h: In function = `get_pgd_slow': In file included from /usr/i386-glibc21-linux/include/linux/vmalloc.h:7, from /usr/i386-glibc21-linux/include/asm/io.h:102, from 3c509.c:70: /usr/i386-glibc21-linux/include/asm/pgtable.h:409: `PAGE_OFFSET_RAW' = undeclared (first use in this function) /usr/i386-glibc21-linux/include/asm/pgtable.h:409: (Each undeclared = identifier is reported only once /usr/i386-glibc21-linux/include/asm/pgtable.h:409: for each function it = appears in.) /usr/i386-glibc21-linux/include/asm/pgtable.h: In function = `pte_alloc_kernel': /usr/i386-glibc21-linux/include/asm/pgtable.h:498: `PAGE_OFFSET_RAW' = undeclared (first use in this function) /usr/i386-glibc21-linux/include/asm/pgtable.h:506: warning: control = reaches end of non-void function /usr/i386-glibc21-linux/include/asm/pgtable.h: In function `pte_alloc': /usr/i386-glibc21-linux/include/asm/pgtable.h:516: `PAGE_OFFSET_RAW' = undeclared (first use in this function) /usr/i386-glibc21-linux/include/asm/io.h: In function `virt_to_phys': In file included from 3c509.c:70: /usr/i386-glibc21-linux/include/asm/io.h:116: `PAGE_OFFSET_RAW' = undeclared (first use in this function) /usr/i386-glibc21-linux/include/asm/io.h:118: warning: control reaches = end of non-void function /usr/i386-glibc21-linux/include/asm/io.h: In function `phys_to_virt': /usr/i386-glibc21-linux/include/asm/io.h:125: `PAGE_OFFSET_RAW' = undeclared (first use in this function) /usr/i386-glibc21-linux/include/asm/io.h:127: warning: control reaches = end of non-void function /usr/i386-glibc21-linux/include/asm/io.h: In function `check_signature': /usr/i386-glibc21-linux/include/asm/io.h:184: `PAGE_OFFSET_RAW' = undeclared (first use in this function) 3c509.c: In function `set_multicast_list': 3c509.c:834: warning: unused variable `lp' Since I am just now starting to learn c programming and don't yet know = what all that stuff means, and don't know the meaning of the compile = command line parameters either, I am pretty much stuck. I did try to = compile with the Red Hat 7.0 gcc compiler also, but with no better = results. On my other Linux machine, also running Red Hat 7.0, I = successfully compiled pci-scan.c and tulip.c and pci-scan.h with no = problems, so I don't see what is stopping me here. Can someone help? = Thanks. John Terry. ------=_NextPart_000_0005_01C0A42F.01239060 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
/usr/i386-glibc21-linux/include/asm/pgtable.h: In function=20 `get_pgd_slow':
In file included from = /usr/i386-glibc21-linux/include/linux/vmalloc.h:7,
from /usr/i386-glibc21-linux/include/asm/io.h:102,
from 3c509.c:70:
/usr/i386-glibc21-linux/include/asm/pgtable.h:409: `PAGE_OFFSET_RAW'=20 undeclared (first use in this function)
/usr/i386-glibc21-linux/include/asm/pgtable.h:409: (Each undeclared=20 identifier is reported only once
/usr/i386-glibc21-linux/include/asm/pgtable.h:409: for each function = it=20 appears in.)
/usr/i386-glibc21-linux/include/asm/pgtable.h: In function=20 `pte_alloc_kernel':
/usr/i386-glibc21-linux/include/asm/pgtable.h:498: `PAGE_OFFSET_RAW'=20 undeclared (first use in this function)
/usr/i386-glibc21-linux/include/asm/pgtable.h:506: warning: control = reaches=20 end of non-void function
/usr/i386-glibc21-linux/include/asm/pgtable.h: In function = `pte_alloc':
/usr/i386-glibc21-linux/include/asm/pgtable.h:516: `PAGE_OFFSET_RAW'=20 undeclared (first use in this function)
/usr/i386-glibc21-linux/include/asm/io.h: In function = `virt_to_phys':
In file included from 3c509.c:70:
/usr/i386-glibc21-linux/include/asm/io.h:116: `PAGE_OFFSET_RAW' = undeclared=20 (first use in this function)
/usr/i386-glibc21-linux/include/asm/io.h:118: warning: control = reaches end of=20 non-void function
/usr/i386-glibc21-linux/include/asm/io.h: In function = `phys_to_virt':
/usr/i386-glibc21-linux/include/asm/io.h:125: `PAGE_OFFSET_RAW' = undeclared=20 (first use in this function)
/usr/i386-glibc21-linux/include/asm/io.h:127: warning: control = reaches end of=20 non-void function
/usr/i386-glibc21-linux/include/asm/io.h: In function = `check_signature':
/usr/i386-glibc21-linux/include/asm/io.h:184: `PAGE_OFFSET_RAW' = undeclared=20 (first use in this function)
3c509.c: In function `set_multicast_list':
3c509.c:834: warning: unused variable `lp'
Since I am just now starting to learn c programming and don't yet = know what=20 all that stuff means, and don't know the meaning of the compile command = line=20 parameters either, I am pretty much stuck. I did try to compile = with the=20 Red Hat 7.0 gcc compiler also, but with no better results. On my = other=20 Linux machine, also running Red Hat 7.0, I successfully compiled = pci-scan.c and=20 tulip.c and pci-scan.h with no problems, so I don't see what is stopping = me=20 here. Can someone help? Thanks.
John Terry.