Issue with Netdriver wil not compile

About BasiliskII, a 68k Mac emulator for Windows, MacOSX, and Linux that can run System 7.x through MacOS 8.1.

Moderators: Cat_7, Ronald P. Regensburg

Post Reply
petes
Space Cadet
Posts: 7
Joined: Wed Jun 06, 2012 7:11 pm

Issue with Netdriver wil not compile

Post by petes »

Hi I am having a issue compiling the Sheep Net driver on Ubuntu 12.5
This is the error code. Any ideas regarding possible fix would be very much appreciated!

puma@puma-Presario-2500:~$ cd BasiliskII/src/Unix/Linux/Netdriver
puma@puma-Presario-2500:~/BasiliskII/src/Unix/Linux/Netdriver$ make
make -C /lib/modules/3.2.0-25-generic-pae/build M=$PWD modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-25-generic-pae'
CC [M] /home/puma/BasiliskII/src/Unix/Linux/Netdriver/sheep_net.o
/home/puma/BasiliskII/src/Unix/Linux/Netdriver/sheep_net.c:155:2: error: unknown field ‘ioctl’ specified in initializer
/home/puma/BasiliskII/src/Unix/Linux/Netdriver/sheep_net.c:155:2: warning: initialization from incompatible pointer type [enabled by default]
/home/puma/BasiliskII/src/Unix/Linux/Netdriver/sheep_net.c:155:2: warning: (near initialization for ‘sheep_net_fops.unlocked_ioctl’) [enabled by default]
/home/puma/BasiliskII/src/Unix/Linux/Netdriver/sheep_net.c: In function ‘sheep_net_write’:
/home/puma/BasiliskII/src/Unix/Linux/Netdriver/sheep_net.c:409:3: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘size_t’ [-Wformat]
/home/puma/BasiliskII/src/Unix/Linux/Netdriver/sheep_net.c: In function ‘sheep_net_ioctl’:
/home/puma/BasiliskII/src/Unix/Linux/Netdriver/sheep_net.c:603:4: error: too many arguments to function ‘dev_mc_add’
include/linux/netdevice.h:2491:12: note: declared here
/home/puma/BasiliskII/src/Unix/Linux/Netdriver/sheep_net.c:614:4: error: implicit declaration of function ‘dev_mc_delete’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[2]: *** [/home/puma/BasiliskII/src/Unix/Linux/Netdriver/sheep_net.o] Error 1
make[1]: *** [_module_/home/puma/BasiliskII/src/Unix/Linux/Netdriver] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-25-generic-pae'
make: *** [sheep_net.ko] Error 2
Post Reply