Trouble in building module SpeedTouch (for ADSL modem)
nathan r. hruby
yellowdog-general@lists.terrasoftsolutions.com
Mon Dec 16 10:52:01 2002
On Mon, 16 Dec 2002, René Bourion wrote:
>
> [root@localhost SpeedTouch]# cd /opt/SpeedTouch
> [root@localhost SpeedTouch]# make
> gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe
> -fno-strength-reduce -DCPU=686 -march=i686 -Wall -DMODULE -D__KERNEL__
> -DLINUX
> -I/usr/src/linux/include/ -I../sarlib// -c
> speedtouch.c -o speedtouch.o
> cc1: Invalid option `arch=i686'
> In file included from speedtouch.c:13:
> /usr/src/linux/include/linux/malloc.h:4: warning: #warning linux/malloc.h is
> deprecated, use linux/slab.h instead.
> make: *** [speedtouch.o] Error 1
> [root@localhost SpeedTouch]#
>
> One would think that the references to "686" are not correct for the
> PowerPC; I therefore tried to replace them with "ppc" or something like that
> in the makefile, but I did not succeed.
>
You need to change both the -DCPU and -march flags to be ppc. There might
be other stuff as well, I dunno, though the malloc.h -> slab.h thing has
caused people trouble with other things, you may want to go ahead and
edit speedtouch.c to reflect this, or at least be prepared to go back and
change it it the driver doesn't work.
Note that there's no promise that it will work once compiled - clearly
it's designed on x86 so there may be some specific assumptions made in the
driver based the arch being x86 which just won't work on PPC
HTH,
-n
--
----------------------------------------
nathan hruby <nathan@drama.uga.edu>
computer services specialist
uga drama
http://www.drama.uga.edu/support/
----------------------------------------