[3c509] 3c509.c driver won't compile
John Terry
johnandkatyterry@home.com
Sat, 3 Mar 2001 22:12:15 -0800
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Hi.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>I have a problem with the latest version of the =
3c509.c=20
driver source code. It will not compile for me. I found it=20
in:</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2> /usr/src/linux-2.2.16/drivers/net</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>and tried to compile it using the compile =
instructions at the=20
bottom of the file. Since I am using Red Hat 7.0 I substituted =
kgcc in=20
place of gcc, and used the command:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>kgcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes =
-O6 -c=20
3c509.c</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>I then got a large bunch of error messages, as =
follows, with=20
no compile:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2>
<P>/usr/i386-glibc21-linux/include/asm/pgtable.h: In function=20
`get_pgd_slow':</P>
<P>In file included from =
/usr/i386-glibc21-linux/include/linux/vmalloc.h:7,</P>
<P>from /usr/i386-glibc21-linux/include/asm/io.h:102,</P>
<P>from 3c509.c:70:</P>
<P>/usr/i386-glibc21-linux/include/asm/pgtable.h:409: `PAGE_OFFSET_RAW'=20
undeclared (first use in this function)</P>
<P>/usr/i386-glibc21-linux/include/asm/pgtable.h:409: (Each undeclared=20
identifier is reported only once</P>
<P>/usr/i386-glibc21-linux/include/asm/pgtable.h:409: for each function =
it=20
appears in.)</P>
<P>/usr/i386-glibc21-linux/include/asm/pgtable.h: In function=20
`pte_alloc_kernel':</P>
<P>/usr/i386-glibc21-linux/include/asm/pgtable.h:498: `PAGE_OFFSET_RAW'=20
undeclared (first use in this function)</P>
<P>/usr/i386-glibc21-linux/include/asm/pgtable.h:506: warning: control =
reaches=20
end of non-void function</P>
<P>/usr/i386-glibc21-linux/include/asm/pgtable.h: In function =
`pte_alloc':</P>
<P>/usr/i386-glibc21-linux/include/asm/pgtable.h:516: `PAGE_OFFSET_RAW'=20
undeclared (first use in this function)</P>
<P>/usr/i386-glibc21-linux/include/asm/io.h: In function =
`virt_to_phys':</P>
<P>In file included from 3c509.c:70:</P>
<P>/usr/i386-glibc21-linux/include/asm/io.h:116: `PAGE_OFFSET_RAW' =
undeclared=20
(first use in this function)</P>
<P>/usr/i386-glibc21-linux/include/asm/io.h:118: warning: control =
reaches end of=20
non-void function</P>
<P>/usr/i386-glibc21-linux/include/asm/io.h: In function =
`phys_to_virt':</P>
<P>/usr/i386-glibc21-linux/include/asm/io.h:125: `PAGE_OFFSET_RAW' =
undeclared=20
(first use in this function)</P>
<P>/usr/i386-glibc21-linux/include/asm/io.h:127: warning: control =
reaches end of=20
non-void function</P>
<P>/usr/i386-glibc21-linux/include/asm/io.h: In function =
`check_signature':</P>
<P>/usr/i386-glibc21-linux/include/asm/io.h:184: `PAGE_OFFSET_RAW' =
undeclared=20
(first use in this function)</P>
<P>3c509.c: In function `set_multicast_list':</P>
<P>3c509.c:834: warning: unused variable `lp'</P>
<P> </P>
<P> </P>
<P>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.</P>
<P>John Terry.</P></FONT></DIV></BODY></HTML>
------=_NextPart_000_0005_01C0A42F.01239060--