[vortex] kgcc vs gcc
paul beard
paul@fizzylab.com
Wed, 04 Oct 2000 16:31:09 -0700
Doesn't seem to work any better.
[root@think src]# kgcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c
3c
59x-new.c -I/usr/src/linux/include `[ -f
/usr/linux-2.2.16/include/linux/modvers
ions.h ] && echo -DMODVERSIONS` -o 3c59x-new.o
/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 3c59x-new.c:132:
/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: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 3c59x-new.c:132:
/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)
3c59x-new.c: In function `vortex_open':
3c59x-new.c:1280: `PAGE_OFFSET_RAW' undeclared (first use in this function)
3c59x-new.c: In function `boomerang_interrupt':
3c59x-new.c:1897: `PAGE_OFFSET_RAW' undeclared (first use in this function)
clude/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
endof 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 3c59x-new.c:132:
/usr/i386-glibc21-linux/include/asm/io.h:116: `PAGE_OFFSET_RAW' undeclared
(firs
t use in this function)
/usr/i386-glibc21-linux/include/asm/io.h:118: warning: control reaches end of
no
n-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
(firs
t use in this function)
/usr/i386-glibc21-linux/include/asm/io.h:127: warning: control reaches end of
no
n-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
(firs
t use in this function)
3c59x-new.c: In function `vortex_open':
3c59x-new.c:1280: `PAGE_OFFSET_RAW' undeclared (first use in this function)
3c59x-new.c: In function `boomerang_interrupt':
3c59x-new.c:1897: `PAGE_OFFSET_RAW' undeclared (first use in this function)
[root@think src]# kgcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c
3c
59x-new.c -I/usr/src/linux/include `[ -f
/usr/linux-2.2.16/include/linux/modvers
ions.h ] && echo -DMODVERSIONS` -o 3c59x-new.o
/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 3c59x-new.c:132:
/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: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 3c59x-new.c:132:
/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)
3c59x-new.c: In function `vortex_open':
3c59x-new.c:1280: `PAGE_OFFSET_RAW' undeclared (first use in this function)
3c59x-new.c: In function `boomerang_interrupt':
3c59x-new.c:1897: `PAGE_OFFSET_RAW' undeclared (first use in this function)
Winged Wolf wrote:
> Try using '-I/usr/src/linux/include' in the kgcc command.
>
> -Mat
>
> ----- Original Message -----
> From: "paul beard" <paul@fizzylab.com>
> To: <vortex@scyld.com>
> Sent: Wednesday, October 04, 2000 11:00 AM
> Subject: [vortex] kgcc vs gcc
>
> > Well, I'm still stuck on this. The kernel builds fine (2.2.16) but I don't
> > seem to have the right tree.
> >
> > kgcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c
> > 3c59x.c `[ -f /usr/include/linux/modversions.h ] && echo -DMODVERSIONS`
> >
> > I edited the line to point to the modversions.h that matches the kernel.
> >
> > It looks like I'm seeing glibc 2.1 errors . . . . but it's not clear to
> > my less than skilled eyes.
> >
> > --
> > Paul Beard / 206 728 4282 x138
> > Fizzylab / 2025 First Ave, Suite 1150
> > Seattle WA 98121
> >
> >
> >
> > _______________________________________________
> > vortex mailing list
> > vortex@scyld.com
> > http://www.scyld.com/mailman/listinfo/vortex