[realtek] problem compiling v1.10 on alpha

Rudy Zijlstra rudy@edsons.demon.nl
Fri, 01 Sep 2000 08:42:18 +0200


Hi,

replyin to my own mail:

compiling as followed does work:

bash-2.02# gcc -D__KERNEL__ -I/usr/src/linux/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe
-mno-fp-regs -ffixed-8 -mcpu=ev4 -DMODULE -c -o rtl8139.o rtl8139.c
bash-2.02# ls -l
total 335
-rw-r--r--   1 root     root         6219 Aug 30 00:00 kern_compat.h
-rw-r--r--   1 root     root        13791 Aug 29 23:59 pci-scan.c
-rw-r--r--   1 root     root         2979 Aug 29 23:59 pci-scan.h
-rwxr-xr-x   1 root     root       179878 Aug 30 00:22 rtl8139-diag
-rw-r--r--   1 root     root        29507 Aug 30 00:21 rtl8139-diag.c
-rw-r--r--   1 root     root        50822 Aug 29 23:56 rtl8139.c
-rw-r--r--   1 root     root        51992 Sep  1 08:41 rtl8139.o

Had no time yet to test the resultant module.

Cheers,

Rudy

Rudy Zijlstra wrote:

> Dear all,
>
> when compiling i get the following on kernel 2.2.16 on Alpha XL:
>
> bash-2.02# cd /usr/src/modules/
> bash-2.02# ls
> kern_compat.h   pci-scan.c      pci-scan.h      rtl8139-diag
> rtl8139-diag.c  rtl8139.c
> bash-2.02# gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c rtl8139.c
> In file included from /usr/include/asm/semaphore.h:11,
>                  from /usr/include/linux/sched.h:17,
>                  from /usr/include/linux/mm.h:4,
>                  from /usr/include/linux/slab.h:14,
>                  from /usr/include/linux/malloc.h:4,
>                  from rtl8139.c:103:
> /usr/include/asm/current.h:4: global register variable follows a
> function definition
> /usr/include/asm/current.h:4: warning: call-clobbered register used for
> global register variable
>
> And no module is generated. Any suggestions?
>
> Rudy Zijlstra
>
> _______________________________________________
> realtek mailing list
> realtek@scyld.com
> http://www.scyld.com/mailman/listinfo/realtek