[Asterisk-Users] OpenSwitch12 install problems
Brian West
brian at bkw.org
Wed Oct 13 12:35:53 MST 2004
Don't know if it works on the 2.6 yet. I did get the 6 working on 2.4
without a problem. I helped them trouble shoot the driver for it a bit.
bkw
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
> bounces at lists.digium.com] On Behalf Of Nichols, Andrew
> Sent: Wednesday, October 13, 2004 2:38 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: [Asterisk-Users] OpenSwitch12 install problems
>
> I recently purchased an OpenSwitch12. I am having some trouble with the
> install. I am running Fedora 2 with the 2.6.8-1.521 kernel. The
> OpenSwitch12 is the only device using PCI slots.
>
> When I unzip the 2.3.2 driver files that I got from www.voicetronix.com
> and do a make, I get the following error (I have pasted the full text that
> is output at the end of this email):
>
> vpb.c:162: error: storage size of `vpb_fops' isn't known
> make[1]: *** [vpb.o] Error 1
> make[1]: Leaving directory `/usr/local/vpb-driver-2.3.2/src'
> make: *** [all] Error 2
>
> I read the FAQ that is included with the drivers and made a symbolic link
> called "linux" in /usr/src, tested and received the same error. I then
> edited src/Makefile to point cc -O6 -m486 -c vpb.c -
> I/usr/src/linux/include -Wall to my kernel source, tested and received the
> same error. I then edited src/vpb.c to:
>
> /*#ifdef MODVERSIONS*/
> #include <linux/modversions.h>
> #include <linux/module.h>
> /*#endif*/
>
> I then tested and received the same error. I do have a file called
> "modversions.h" in linux, but I do not have one called "module.h".
> Instead, I have "modules.h". I tried using "modules.h" and this failed. I
> then found module.h in a subdirectory of linux and pointed to that file. I
> tested again and the make failed.
>
> I have tried all of this with the 2.3.1 drivers and with kernel 2.6.5-
> 1.358 with the same results. Has anyone else run into these errors? Do you
> know if this card is compatible with Asterisk 1.0 and this Kernel?
>
> Thanks,
>
> Andrew
>
>
>
>
>
>
>
> [root at asterisk root]# cd /usr/local/vpb-driver-2.3.2
> [root at asterisk vpb-driver-2.3.2]# make
> echo LINUX
> LINUX
> cd src; echo "#define VERSION \"2.3.2\" " > version.h ;make
> make[1]: Entering directory `/usr/local/vpb-driver-2.3.2/src'
> cc -O6 -mcpu=i486 -c vpb.c -o vpb-tmp.o -I/lib/modules/2.6.8-1.521/build -
> Wall
> In file included from vpb.c:95:
> /usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included
> in userspace
> In file included from vpb.c:102:
> /usr/src/linux/include/asm/module.h:54:2: #error unknown processor family
> vpb.c:108:22: linux/mm.h: No such file or directory
> In file included from /usr/include/linux/fs.h:9,
> from vpb.c:109:
> /usr/include/linux/config.h:5:2: #error Incorrectly using glibc headers
> for a kernel module
> vpb.c:114:25: asm/uaccess.h: No such file or directory
> In file included from vpb.c:117:
> /usr/include/asm/io.h:4:2: warning: #warning <asm/io.h> is deprecated, use
> <sys/io.h> instead
> vpb.c:119:27: linux/vmalloc.h: No such file or directory
> vpb.c:121:25: linux/delay.h: No such file or directory
> vpb.c:122:25: asm/uaccess.h: No such file or directory
> vpb.c:143: warning: `struct file' declared inside parameter list
> vpb.c:143: warning: its scope is only this definition or declaration,
> which is probably not what you want
> vpb.c:143: warning: `struct inode' declared inside parameter list
> vpb.c:162: error: variable `vpb_fops' has initializer but incomplete type
> vpb.c:164: error: unknown field `owner' specified in initializer
> vpb.c:164: error: `__this_module' undeclared here (not in a function)
> vpb.c:164: warning: excess elements in struct initializer
> vpb.c:164: warning: (near initialization for `vpb_fops')
> vpb.c:165: error: unknown field `llseek' specified in initializer
> vpb.c:165: warning: excess elements in struct initializer
> vpb.c:165: warning: (near initialization for `vpb_fops')
> vpb.c:166: error: unknown field `read' specified in initializer
> vpb.c:166: warning: excess elements in struct initializer
> vpb.c:166: warning: (near initialization for `vpb_fops')
> vpb.c:167: error: unknown field `write' specified in initializer
> vpb.c:167: warning: excess elements in struct initializer
> vpb.c:167: warning: (near initialization for `vpb_fops')
> vpb.c:168: error: unknown field `poll' specified in initializer
> vpb.c:168: warning: excess elements in struct initializer
> vpb.c:168: warning: (near initialization for `vpb_fops')
> vpb.c:169: error: unknown field `ioctl' specified in initializer
> vpb.c:169: warning: excess elements in struct initializer
> vpb.c:169: warning: (near initialization for `vpb_fops')
> vpb.c:170: error: unknown field `open' specified in initializer
> vpb.c:170: warning: excess elements in struct initializer
> vpb.c:170: warning: (near initialization for `vpb_fops')
> vpb.c:171: error: unknown field `release' specified in initializer
> vpb.c:171: warning: excess elements in struct initializer
> vpb.c:171: warning: (near initialization for `vpb_fops')
> vpb.c:172: error: unknown field `fasync' specified in initializer
> vpb.c:173: warning: excess elements in struct initializer
> vpb.c:173: warning: (near initialization for `vpb_fops')
> vpb.c:181: error: syntax error before "base1"
> vpb.c:181: warning: type defaults to `int' in declaration of `base1'
> vpb.c:181: warning: data definition has no type or storage class
> vpb.c: In function `init_module':
> vpb.c:208: error: `u32' undeclared (first use in this function)
> vpb.c:208: error: (Each undeclared identifier is reported only once
> vpb.c:208: error: for each function it appears in.)
> vpb.c:208: error: syntax error before "ret"
> vpb.c:211: warning: implicit declaration of function `register_chrdev'
> vpb.c:212: warning: implicit declaration of function `printk'
> vpb.c:217: warning: implicit declaration of function `pci_find_device'
> vpb.c:218: warning: assignment makes pointer from integer without a cast
> vpb.c:221: warning: implicit declaration of function
> `pci_read_config_dword'
> vpb.c:221: error: syntax error before ')' token
> vpb.c:257: error: dereferencing pointer to incomplete type
> vpb.c:257: error: dereferencing pointer to incomplete type
> vpb.c:258: warning: implicit declaration of function
> `pci_write_config_dword'
> vpb.c:259: error: dereferencing pointer to incomplete type
> vpb.c:261: warning: implicit declaration of function `ioremap'
> vpb.c:261: error: dereferencing pointer to incomplete type
> vpb.c:263: warning: assignment makes pointer from integer without a cast
> vpb.c:264: error: dereferencing pointer to incomplete type
> vpb.c:266: warning: assignment makes pointer from integer without a cast
> vpb.c:269: error: dereferencing pointer to incomplete type
> vpb.c:271: error: `ret' undeclared (first use in this function)
> vpb.c:271: warning: implicit declaration of function `check_region'
> vpb.c:273: warning: implicit declaration of function `request_region'
> vpb.c:298: error: `reg28' undeclared (first use in this function)
> vpb.c:300: warning: implicit declaration of function `writel'
> vpb.c:311: warning: implicit declaration of function `readl'
> vpb.c: In function `cleanup_module':
> vpb.c:343: warning: implicit declaration of function `iounmap'
> vpb.c:344: warning: implicit declaration of function `release_region'
> vpb.c:349: warning: implicit declaration of function `unregister_chrdev'
> vpb.c:351: error: `KERN_WARNING' undeclared (first use in this function)
> vpb.c:351: error: syntax error before string constant
> vpb.c: At top level:
> vpb.c:368: warning: `struct file' declared inside parameter list
> vpb.c:368: warning: `struct inode' declared inside parameter list
> vpb.c:369: error: conflicting types for `vpb_ioctl'
> vpb.c:143: error: previous declaration of `vpb_ioctl'
> vpb.c: In function `vpb_ioctl':
> vpb.c:384: warning: implicit declaration of function `copy_from_user'
> vpb.c:386: error: `KERN_CRIT' undeclared (first use in this function)
> vpb.c:386: error: syntax error before string constant
> vpb.c:414: warning: implicit declaration of function `access_ok'
> vpb.c:414: error: `VERIFY_READ' undeclared (first use in this function)
> vpb.c:422: warning: implicit declaration of function `__get_user'
> vpb.c:436: error: `VERIFY_WRITE' undeclared (first use in this function)
> vpb.c:441: warning: implicit declaration of function `__put_user'
> vpb.c:447: warning: implicit declaration of function `copy_to_user'
> vpb.c:461: warning: implicit declaration of function `memcpy_toio'
> vpb.c:467: warning: implicit declaration of function `udelay'
> vpb.c:480: warning: implicit declaration of function `memcpy_fromio'
> vpb.c:498: warning: implicit declaration of function `writew'
> vpb.c: At top level:
> vpb.c:162: error: storage size of `vpb_fops' isn't known
> make[1]: *** [vpb.o] Error 1
> make[1]: Leaving directory `/usr/local/vpb-driver-2.3.2/src'
> make: *** [all] Error 2
More information about the asterisk-users
mailing list