[chan-capi-users] divas4linux compile errors with kernel-2.6.24
Armin Schindler
armin at melware.de
Thu Apr 24 12:47:01 CEST 2008
It seems that the new kernel 2.6.24 changes the use of proc_net. So the
drivers must be adapted which is not done yet.
The next version of the driver (I cannot tell when) will include this fix.
But all kernel versions older than 2.6.24 should work.
Armin
On Wed, 23 Apr 2008, William Fahrenkrug wrote:
> I'm getting the following error when trying to compile:
>
> divas4linux-melware-3.0.10-107.884-1
> gentoo kernel: linux-2.6.24-gentoo-r4
>
> ===========make output============================
>
> make[1]: Entering directory `/usr/src/linux-2.6.24-gentoo-r4'
> CC [M] /usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26/divahsi.o
> CC [M] /usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26/divasi.o
> CC [M] /usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26/idifunc.o
> CC [M] /usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26/um_idi.o
> CC [M] /usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26/dqueue.o
> CC [M] /usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26/divamnt.o
> CC [M] /usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26/mntfunc.o
> CC [M] /usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26/debug.o
> CC [M] /usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26/maintidi.o
> CC [M] /usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26/capimain.o
> CC [M] /usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26/capifunc.o
> CC [M] /usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26/message.o
> CC [M] /usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26/capidtmf.o
> CC [M] /usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26/manage.o
> CC [M] /usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26/drv_man.o
> CC [M] /usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26/capi_man.o
> CC [M] /usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26/diva_didd.o
> /usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26/diva_didd.c: In
> function 'create_proc':
> /usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26/diva_didd.c:136:
> error: 'proc_net' undeclared (first use in this function)
> /usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26/diva_didd.c:136:
> error: (Each undeclared identifier is reported only once
> /usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26/diva_didd.c:136:
> error: for each function it appears in.)
> /usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26/diva_didd.c: In
> function 'remove_proc':
> /usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26/diva_didd.c:476:
> error: 'proc_net' undeclared (first use in this function)
> make[2]: ***
> [/usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26/diva_didd.o] Error 1
> make[1]: ***
> [_module_/usr/src/divas4linux-melware-3.0.10-107.884-1/kernel26] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.24-gentoo-r4'
> make: *** [kernel] Error 1
> ================================================
>
>
> proc_net seems to be missing in the includes for 2.6.24.
>
> =================================================
> cd /usr/src/linux-2.6.24-gentoo-r4/include/linux/
>
> grep proc_net *
> netfilter.h:extern struct proc_dir_entry *proc_net_netfilter;
> proc_fs.h:extern struct proc_dir_entry *proc_net_fops_create(struct net
> *net,
> proc_fs.h:extern void proc_net_remove(struct net *net, const char *name);
> proc_fs.h:#define proc_net_fops_create(net, name, mode, fops) ({
> (void)(mode), NULL; })
> proc_fs.h:static inline void proc_net_remove(struct net *net, const char
> *name) {}
> proc_fs.h:struct net *get_proc_net(const struct inode *inode);
>
> =================================================
>
> What is the lastest kernel I should use? Is there patch for this? I found
> with Google search "init_net.proc_net" should be substituted for proc_net.
> But had didn't work nor is it in the kernal includes
>
More information about the Chan-capi-users
mailing list