Yes this is still a bug in Jaunty and Hardy. Here is the the output of the compile on Jaunty (i386):
je...@jesse-desktop:~/Build/BasiliskII-0.9/src/Unix/Linux/NetDriver$ make cc -c -I. -I/usr/src/linux/include -O2 -Wall -D__KERNEL__ -DMODULE -DLINUX sheep_net.c sheep_net.c:21:26: error: linux/module.h: No such file or directory sheep_net.c:33:30: error: linux/miscdevice.h: No such file or directory In file included from /usr/include/linux/socket.h:23, from /usr/include/linux/if.h:23, from /usr/include/linux/netdevice.h:28, from sheep_net.c:34: /usr/include/linux/uio.h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘iov_length’ /usr/include/linux/uio.h:47: error: expected declaration specifiers or ‘...’ before ‘size_t’ sheep_net.c:35:31: error: linux/etherdevice.h: No such file or directory sheep_net.c:40:24: error: linux/init.h: No such file or directory sheep_net.c:43:22: error: net/sock.h: No such file or directory sheep_net.c:44:21: error: net/arp.h: No such file or directory sheep_net.c:45:20: error: net/ip.h: No such file or directory sheep_net.c:46:25: error: asm/uaccess.h: No such file or directory sheep_net.c:48: error: expected declaration specifiers or ‘...’ before string constant sheep_net.c:48: warning: data definition has no type or storage class sheep_net.c:48: warning: type defaults to ‘int’ in declaration of ‘MODULE_AUTHOR’ sheep_net.c:49: error: expected declaration specifiers or ‘...’ before string constant sheep_net.c:49: warning: data definition has no type or storage class sheep_net.c:49: warning: type defaults to ‘int’ in declaration of ‘MODULE_DESCRIPTION’ sheep_net.c:81: warning: ‘struct file’ declared inside parameter list sheep_net.c:81: warning: its scope is only this definition or declaration, which is probably not what you want sheep_net.c:81: warning: ‘struct inode’ declared inside parameter list sheep_net.c:82: warning: ‘struct file’ declared inside parameter list sheep_net.c:82: warning: ‘struct inode’ declared inside parameter list sheep_net.c:83: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sheep_net_read’ sheep_net.c:84: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sheep_net_write’ sheep_net.c:85: warning: ‘struct poll_table_struct’ declared inside parameter list sheep_net.c:85: warning: ‘struct file’ declared inside parameter list sheep_net.c:86: warning: ‘struct file’ declared inside parameter list sheep_net.c:86: warning: ‘struct inode’ declared inside parameter list sheep_net.c:87: warning: ‘struct packet_type’ declared inside parameter list sheep_net.c:87: warning: ‘struct net_device’ declared inside parameter list sheep_net.c:87: warning: ‘struct sk_buff’ declared inside parameter list sheep_net.c:97: error: field ‘queue’ has incomplete type sheep_net.c:98: error: field ‘pt’ has incomplete type sheep_net.c:99: error: expected specifier-qualifier-list before ‘wait_queue_head_t’ sheep_net.c:111: error: variable ‘sheep_net_fops’ has initializer but incomplete type sheep_net.c:112: error: unknown field ‘read’ specified in initializer sheep_net.c:112: error: ‘sheep_net_read’ undeclared here (not in a function) sheep_net.c:112: warning: excess elements in struct initializer sheep_net.c:112: warning: (near initialization for ‘sheep_net_fops’) sheep_net.c:113: error: unknown field ‘write’ specified in initializer sheep_net.c:113: error: ‘sheep_net_write’ undeclared here (not in a function) sheep_net.c:113: warning: excess elements in struct initializer sheep_net.c:113: warning: (near initialization for ‘sheep_net_fops’) sheep_net.c:114: error: unknown field ‘poll’ specified in initializer sheep_net.c:114: warning: excess elements in struct initializer sheep_net.c:114: warning: (near initialization for ‘sheep_net_fops’) sheep_net.c:115: error: unknown field ‘ioctl’ specified in initializer sheep_net.c:115: warning: excess elements in struct initializer sheep_net.c:115: warning: (near initialization for ‘sheep_net_fops’) sheep_net.c:116: error: unknown field ‘open’ specified in initializer sheep_net.c:116: warning: excess elements in struct initializer sheep_net.c:116: warning: (near initialization for ‘sheep_net_fops’) sheep_net.c:117: error: unknown field ‘release’ specified in initializer sheep_net.c:117: warning: excess elements in struct initializer sheep_net.c:117: warning: (near initialization for ‘sheep_net_fops’) sheep_net.c:125: error: variable ‘sheep_net_device’ has initializer but incomplete type sheep_net.c:126: warning: excess elements in struct initializer sheep_net.c:126: warning: (near initialization for ‘sheep_net_device’) sheep_net.c:127: warning: excess elements in struct initializer sheep_net.c:127: warning: (near initialization for ‘sheep_net_device’) sheep_net.c:128: warning: excess elements in struct initializer sheep_net.c:128: warning: (near initialization for ‘sheep_net_device’) sheep_net.c:129: warning: excess elements in struct initializer sheep_net.c:129: warning: (near initialization for ‘sheep_net_device’) sheep_net.c:131: warning: excess elements in struct initializer sheep_net.c:131: warning: (near initialization for ‘sheep_net_device’) sheep_net.c: In function ‘init_module’: sheep_net.c:143: warning: implicit declaration of function ‘misc_register’ sheep_net.c: In function ‘cleanup_module’: sheep_net.c:156: warning: implicit declaration of function ‘misc_deregister’ sheep_net.c: At top level: sheep_net.c:165: warning: ‘struct file’ declared inside parameter list sheep_net.c:165: warning: ‘struct inode’ declared inside parameter list sheep_net.c:165: error: conflicting types for ‘sheep_net_open’ sheep_net.c:81: error: previous declaration of ‘sheep_net_open’ was here sheep_net.c: In function ‘sheep_net_open’: sheep_net.c:171: error: dereferencing pointer to incomplete type sheep_net.c:171: error: ‘O_ACCMODE’ undeclared (first use in this function) sheep_net.c:171: error: (Each undeclared identifier is reported only once sheep_net.c:171: error: for each function it appears in.) sheep_net.c:171: error: ‘O_WRONLY’ undeclared (first use in this function) sheep_net.c:172: error: ‘EPERM’ undeclared (first use in this function) sheep_net.c:175: error: dereferencing pointer to incomplete type sheep_net.c:175: warning: implicit declaration of function ‘kmalloc’ sheep_net.c:175: error: ‘GFP_USER’ undeclared (first use in this function) sheep_net.c:177: error: ‘ENOMEM’ undeclared (first use in this function) sheep_net.c:178: warning: implicit declaration of function ‘memset’ sheep_net.c:178: warning: incompatible implicit declaration of built-in function ‘memset’ sheep_net.c:179: warning: implicit declaration of function ‘skb_queue_head_init’ sheep_net.c:180: warning: implicit declaration of function ‘init_waitqueue_head’ sheep_net.c:180: error: ‘struct SheepVars’ has no member named ‘wait’ sheep_net.c:181: error: ‘struct SheepVars’ has no member named ‘fake_addr’ sheep_net.c:182: error: ‘struct SheepVars’ has no member named ‘fake_addr’ sheep_net.c:183: error: ‘struct SheepVars’ has no member named ‘fake_addr’ sheep_net.c:184: error: ‘struct SheepVars’ has no member named ‘fake_addr’ sheep_net.c:185: error: ‘struct SheepVars’ has no member named ‘fake_addr’ sheep_net.c:186: error: ‘struct SheepVars’ has no member named ‘fake_addr’ sheep_net.c:189: error: ‘MOD_INC_USE_COUNT’ undeclared (first use in this function) sheep_net.c: At top level: sheep_net.c:198: warning: ‘struct file’ declared inside parameter list sheep_net.c:198: warning: ‘struct inode’ declared inside parameter list sheep_net.c:198: error: conflicting types for ‘sheep_net_release’ sheep_net.c:82: error: previous declaration of ‘sheep_net_release’ was here sheep_net.c: In function ‘sheep_net_release’: sheep_net.c:200: error: dereferencing pointer to incomplete type sheep_net.c:206: warning: implicit declaration of function ‘dev_remove_pack’ sheep_net.c:207: warning: implicit declaration of function ‘sk_free’ sheep_net.c:210: warning: implicit declaration of function ‘dev_put’ sheep_net.c:216: warning: implicit declaration of function ‘skb_dequeue’ sheep_net.c:216: warning: assignment makes pointer from integer without a cast sheep_net.c:217: warning: implicit declaration of function ‘dev_kfree_skb’ sheep_net.c:220: warning: implicit declaration of function ‘kfree’ sheep_net.c:223: error: ‘MOD_DEC_USE_COUNT’ undeclared (first use in this function) sheep_net.c: In function ‘is_local_addr’: sheep_net.c:235: warning: implicit declaration of function ‘memcmp’ sheep_net.c:235: error: ‘struct SheepVars’ has no member named ‘eth_addr’ sheep_net.c: In function ‘is_fake_addr’: sheep_net.c:240: error: ‘struct SheepVars’ has no member named ‘fake_addr’ sheep_net.c: At top level: sheep_net.c:248: error: expected declaration specifiers or ‘...’ before ‘u8’ sheep_net.c: In function ‘do_demasq’: sheep_net.c:250: warning: implicit declaration of function ‘memcpy’ sheep_net.c:250: warning: incompatible implicit declaration of built-in function ‘memcpy’ sheep_net.c:250: error: ‘p’ undeclared (first use in this function) sheep_net.c:250: error: ‘struct SheepVars’ has no member named ‘eth_addr’ sheep_net.c: At top level: sheep_net.c:253: warning: ‘struct sk_buff’ declared inside parameter list sheep_net.c: In function ‘demasquerade’: sheep_net.c:255: error: ‘u8’ undeclared (first use in this function) sheep_net.c:255: error: ‘p’ undeclared (first use in this function) sheep_net.c:255: error: dereferencing pointer to incomplete type sheep_net.c:258: error: too many arguments to function ‘do_demasq’ sheep_net.c:263: error: too many arguments to function ‘do_demasq’ sheep_net.c:270: error: too many arguments to function ‘do_demasq’ sheep_net.c: At top level: sheep_net.c:279: error: expected declaration specifiers or ‘...’ before ‘u8’ sheep_net.c: In function ‘do_masq’: sheep_net.c:281: warning: incompatible implicit declaration of built-in function ‘memcpy’ sheep_net.c:281: error: ‘p’ undeclared (first use in this function) sheep_net.c:281: error: ‘struct SheepVars’ has no member named ‘fake_addr’ sheep_net.c: At top level: sheep_net.c:284: warning: ‘struct sk_buff’ declared inside parameter list sheep_net.c: In function ‘masquerade’: sheep_net.c:286: error: ‘u8’ undeclared (first use in this function) sheep_net.c:286: error: ‘p’ undeclared (first use in this function) sheep_net.c:286: error: dereferencing pointer to incomplete type sheep_net.c:288: error: too many arguments to function ‘do_masq’ sheep_net.c: At top level: sheep_net.c:298: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sheep_net_read’ sheep_net.c:336: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sheep_net_write’ sheep_net.c:411: warning: ‘struct poll_table_struct’ declared inside parameter list sheep_net.c:411: warning: ‘struct file’ declared inside parameter list sheep_net.c:411: error: conflicting types for ‘sheep_net_poll’ sheep_net.c:85: error: previous declaration of ‘sheep_net_poll’ was here sheep_net.c: In function ‘sheep_net_poll’: sheep_net.c:413: error: dereferencing pointer to incomplete type sheep_net.c:417: warning: implicit declaration of function ‘skb_queue_empty’ sheep_net.c:421: warning: implicit declaration of function ‘poll_wait’ sheep_net.c:421: error: ‘struct SheepVars’ has no member named ‘wait’ sheep_net.c: At top level: sheep_net.c:433: warning: ‘struct file’ declared inside parameter list sheep_net.c:433: warning: ‘struct inode’ declared inside parameter list sheep_net.c:433: error: conflicting types for ‘sheep_net_ioctl’ sheep_net.c:86: error: previous declaration of ‘sheep_net_ioctl’ was here sheep_net.c: In function ‘sheep_net_ioctl’: sheep_net.c:435: error: dereferencing pointer to incomplete type sheep_net.c:448: error: ‘EBUSY’ undeclared (first use in this function) sheep_net.c:451: warning: implicit declaration of function ‘copy_from_user’ sheep_net.c:452: error: ‘EFAULT’ undeclared (first use in this function) sheep_net.c:457: warning: implicit declaration of function ‘dev_get_by_name’ sheep_net.c:457: warning: assignment makes pointer from integer without a cast sheep_net.c:463: error: ‘ENODEV’ undeclared (first use in this function) sheep_net.c:468: error: dereferencing pointer to incomplete type sheep_net.c:469: error: ‘EINVAL’ undeclared (first use in this function) sheep_net.c:474: warning: incompatible implicit declaration of built-in function ‘memcpy’ sheep_net.c:474: error: ‘struct SheepVars’ has no member named ‘eth_addr’ sheep_net.c:474: error: dereferencing pointer to incomplete type sheep_net.c:477: warning: implicit declaration of function ‘sk_alloc’ sheep_net.c:477: error: ‘GFP_USER’ undeclared (first use in this function) sheep_net.c:477: warning: assignment makes pointer from integer without a cast sheep_net.c:479: error: ‘ENOMEM’ undeclared (first use in this function) sheep_net.c:482: error: dereferencing pointer to incomplete type sheep_net.c:485: warning: implicit declaration of function ‘htons’ sheep_net.c:489: warning: implicit declaration of function ‘dev_add_pack’ sheep_net.c:509: warning: implicit declaration of function ‘copy_to_user’ sheep_net.c:509: error: ‘struct SheepVars’ has no member named ‘fake_addr’ sheep_net.c:516: error: ‘struct SheepVars’ has no member named ‘fake_addr’ sheep_net.c:528: warning: implicit declaration of function ‘dev_mc_add’ sheep_net.c:539: warning: implicit declaration of function ‘dev_mc_delete’ sheep_net.c:543: error: ‘FIONREAD’ undeclared (first use in this function) sheep_net.c:548: warning: implicit declaration of function ‘spin_lock_irqsave’ sheep_net.c:552: warning: implicit declaration of function ‘skb_peek’ sheep_net.c:552: warning: assignment makes pointer from integer without a cast sheep_net.c:554: error: dereferencing pointer to incomplete type sheep_net.c:556: warning: implicit declaration of function ‘spin_unlock_irqrestore’ sheep_net.c:560: warning: implicit declaration of function ‘put_user’ sheep_net.c:564: error: ‘struct SheepVars’ has no member named ‘ipfilter’ sheep_net.c:567: error: ‘struct SheepVars’ has no member named ‘ipfilter’ sheep_net.c:571: error: ‘ENOIOCTLCMD’ undeclared (first use in this function) sheep_net.c: At top level: sheep_net.c:580: warning: ‘struct sk_buff’ declared inside parameter list sheep_net.c:580: error: conflicting types for ‘sheep_net_receiver’ sheep_net.c:87: error: previous declaration of ‘sheep_net_receiver’ was here sheep_net.c: In function ‘sheep_net_receiver’: sheep_net.c:582: error: dereferencing pointer to incomplete type sheep_net.c:588: error: dereferencing pointer to incomplete type sheep_net.c:589: error: dereferencing pointer to incomplete type sheep_net.c:592: error: dereferencing pointer to incomplete type sheep_net.c:592: error: dereferencing pointer to incomplete type sheep_net.c:596: error: dereferencing pointer to incomplete type sheep_net.c:600: warning: implicit declaration of function ‘skb_queue_len’ sheep_net.c:605: error: dereferencing pointer to incomplete type sheep_net.c:606: error: ‘struct SheepVars’ has no member named ‘ipfilter’ sheep_net.c:606: warning: implicit declaration of function ‘ntohl’ sheep_net.c:606: error: dereferencing pointer to incomplete type sheep_net.c:606: error: ‘struct SheepVars’ has no member named ‘ipfilter’ sheep_net.c:611: warning: implicit declaration of function ‘skb_copy’ sheep_net.c:611: error: ‘GFP_ATOMIC’ undeclared (first use in this function) sheep_net.c:611: warning: assignment makes pointer from integer without a cast sheep_net.c:614: warning: implicit declaration of function ‘kfree_skb’ sheep_net.c:616: warning: passing argument 2 of ‘masquerade’ from incompatible pointer type sheep_net.c:619: warning: implicit declaration of function ‘skb_push’ sheep_net.c:619: error: dereferencing pointer to incomplete type sheep_net.c:619: error: dereferencing pointer to incomplete type sheep_net.c:622: warning: implicit declaration of function ‘skb_queue_tail’ sheep_net.c:625: warning: implicit declaration of function ‘wake_up’ sheep_net.c:625: error: ‘struct SheepVars’ has no member named ‘wait’ make: *** [sheep_net.o] Error 1 -- BasiliskII has no networking because NetDriver 'sheet_net.c' doesn't compile on Gutsy/kernel 2.6.22 https://bugs.launchpad.net/bugs/210876 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs