Hello pluggers,

I'm trying to build CIFS kernel module to access shares on WIN2K3 server. I got the cifs source from linux-cifs.samba.org and as per the instructions, patched the kernel config file with the patch that I got and selected cifs to be built as a module in the menuconfig. After saving the config file, I did

make dep
and
make modules.

make modules exited with the following errors.

make[3]: *** [module.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.22-1.2115.nptl/drivers/addon/cipe'
make[2]: *** [_modsubdir_cipe] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.22-1.2115.nptl/drivers/addon'
make[1]: *** [_modsubdir_addon] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.22-1.2115.nptl/drivers'
make: *** [_mod_drivers] Error 2

I have attached the output of make modules for reference. I don't even know if I need these addon modules. Any idea what is happening here? Is it possible to build just the cifs module instead of building all these modules and run into errors. Is there a pre-built binary cifs module for fedora Core 1 available that I can download or does anyone already have  a cifs module built for this kernel (2.4.22-1.2115.nptl). Or any ideas how to build the module without these errors. Then I've disabled this cipe module and it exited with the next driver in the line. Further, I've disabled which ever make modules complain about and it still exits similar errors. Apparently all these errors are the result of include files in module.c Is there anything that could do to prevent these errors? Or does anyone have a cifs module built for Fedora Core 1??

Sanjay.

PS: Fedora Core 1 with default kernel (2.4.22-1.2115.nptl) and cifs-1.0.2b





Part of the make modules output

In file included from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/highmem.h:11,
                 from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/skbuff.h:27,
                 from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:152,
                 from cipe.h:62,
                 from module.c:15:
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/highmem.h: In function `__kmap':
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/highmem.h:68: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/highmem.h:68: called object is not a function
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/highmem.h: In function `kunmap':
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/highmem.h:77: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/highmem.h:77: called object is not a function
In file included from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/skbuff.h:27,
                 from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:152,
                 from cipe.h:62,
                 from module.c:15:
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/highmem.h: In function `memclear_highpage_flush':
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/highmem.h:105: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/highmem.h:105: called object is not a function
In file included from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/skbuff.h:231,
                 from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:152,
                 from cipe.h:62,
                 from module.c:15:
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h: At top level:
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:52: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:52: syntax error before numeric constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:52: `kmem_find_general_cachep_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:52: warning: function declaration isn't a prototype
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:55: `kmem_cache_create_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:55: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:56: `kmem_cache_destroy_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:56: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:57: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:57: syntax error before numeric constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:57: `kmem_cache_shrink_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:57: warning: function declaration isn't a prototype
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:58: syntax error before numeric constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:58: `kmem_cache_alloc_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:58: warning: function declaration isn't a prototype
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:59: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:59: syntax error before numeric constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:59: `kmem_cache_free_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:59: warning: function declaration isn't a prototype
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:60: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:60: syntax error before numeric constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:60: `kmem_cache_size_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:60: warning: function declaration isn't a prototype
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:62: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:62: syntax error before numeric constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:62: `kmalloc_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:62: warning: function declaration isn't a prototype
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:63: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:63: syntax error before numeric constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:63: `kfree_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:63: warning: function declaration isn't a prototype
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:70: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/slab.h:74: warning: parameter names (without types) in function declaration
In file included from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:152,
                 from cipe.h:62,
                 from module.c:15:
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/skbuff.h: In function `__skb_put':
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/skbuff.h:775: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/skbuff.h:775: called object is not a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/skbuff.h: In function `skb_put':
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/skbuff.h:794: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/skbuff.h:794: called object is not a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/skbuff.h: In function `__skb_pull':
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/skbuff.h:834: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/skbuff.h:834: called object is not a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/skbuff.h: In function `kmap_skb_frag':
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/skbuff.h:1122: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/skbuff.h:1122: called object is not a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/skbuff.h: In function `kunmap_skb_frag':
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/skbuff.h:1133: `f0a529b7' undeclared (first use in this function)
In file included from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:472,
                 from cipe.h:62,
                 from module.c:15:
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/notifier.h: At top level:
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/notifier.h:24: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/notifier.h:24: syntax error before numeric constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/notifier.h:24: `notifier_chain_register_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/notifier.h:24: warning: function declaration isn't a prototype
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/notifier.h:25: `notifier_chain_unregister_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/notifier.h:25: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/notifier.h:26: syntax error before numeric constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/notifier.h:26: `notifier_call_chain_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/notifier.h:26: warning: function declaration isn't a prototype
In file included from cipe.h:62,
                 from module.c:15:
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:483: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:483: syntax error before numeric constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:483: `dev_get_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:483: warning: function declaration isn't a prototype
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:497: floating constant exponent has no digits
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:497: syntax error before numeric constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:497: `register_netdevice_notifier_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:497: warning: function declaration isn't a prototype
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:498: `unregister_netdevice_notifier_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:498: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:499: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:499: syntax error before numeric constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:499: `dev_new_index_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:499: warning: function declaration isn't a prototype
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h: In function `__netif_schedule':
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:543: `d01f3ee8' undeclared (first use in this function)
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:543: called object is not a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h: In function `dev_kfree_skb_irq':
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:593: `d01f3ee8' undeclared (first use in this function)
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:593: called object is not a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h: At top level:
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:613: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:613: syntax error before numeric constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:613: `dev_ioctl_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:613: warning: function declaration isn't a prototype
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h: In function `netif_rx_ni':
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:629: `f0a529b7' undeclared (first use in this function)
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:629: called object is not a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h: In function `netif_poll_disable':
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:812: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:812: called object is not a function
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h: In function `netif_tx_disable':
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:836: `f0a529b7' undeclared (first use in this function)
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h: In function `free_netdev':
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:878: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:878: called object is not a function
In file included from /usr/src/linux-2.4.22-1.2115.nptl/include/net/dst.h:12,
                 from /usr/src/linux-2.4.22-1.2115.nptl/include/net/sock.h:107,
                 from cipe.h:69,
                 from module.c:15:
/usr/src/linux-2.4.22-1.2115.nptl/include/net/neighbour.h: In function `neigh_confirm':
/usr/src/linux-2.4.22-1.2115.nptl/include/net/neighbour.h:234: `jiffies_R0da02d67' undeclared (first use in this function)
/usr/src/linux-2.4.22-1.2115.nptl/include/net/neighbour.h: In function `neigh_event_send':
/usr/src/linux-2.4.22-1.2115.nptl/include/net/neighbour.h:249: `jiffies_R0da02d67' undeclared (first use in this function)
In file included from /usr/src/linux-2.4.22-1.2115.nptl/include/net/sock.h:107,
                 from cipe.h:69,
                 from module.c:15:
/usr/src/linux-2.4.22-1.2115.nptl/include/net/dst.h: In function `dst_set_expires':
/usr/src/linux-2.4.22-1.2115.nptl/include/net/dst.h:149: `jiffies_R0da02d67' undeclared (first use in this function)
In file included from cipe.h:69,
                 from module.c:15:
/usr/src/linux-2.4.22-1.2115.nptl/include/net/sock.h: In function `sk_filter_release':
/usr/src/linux-2.4.22-1.2115.nptl/include/net/sock.h:958: warning: implicit declaration of function `kfree_R037a0cba'
/usr/src/linux-2.4.22-1.2115.nptl/include/net/sock.h: In function `sock_orphan':
/usr/src/linux-2.4.22-1.2115.nptl/include/net/sock.h:1040: `do_softirq_Rf0a529b7' undeclared (first use in this function)
/usr/src/linux-2.4.22-1.2115.nptl/include/net/sock.h: In function `sock_graft':
/usr/src/linux-2.4.22-1.2115.nptl/include/net/sock.h:1049: `do_softirq_Rf0a529b7' undeclared (first use in this function)
/usr/src/linux-2.4.22-1.2115.nptl/include/net/sock.h: In function `sock_recv_timestamp':
/usr/src/linux-2.4.22-1.2115.nptl/include/net/sock.h:1292: warning: implicit declaration of function `put_cmsg_Rf39bf4d9'
module.c: In function `cipe_check_kernel':
module.c:73: warning: implicit declaration of function `printk_R1b7d4074'
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/skbuff.h: In function `kunmap_skb_frag':
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/skbuff.h:1133: warning: asm operand 1 probably doesn't match constraints
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h: In function `netif_tx_disable':
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/netdevice.h:836: warning: asm operand 1 probably doesn't match constraints
make[3]: *** [module.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.22-1.2115.nptl/drivers/addon/cipe'
make[2]: *** [_modsubdir_cipe] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.22-1.2115.nptl/drivers/addon'
make[1]: *** [_modsubdir_addon] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.22-1.2115.nptl/drivers'
make: *** [_mod_drivers] Error 2