<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV>
<DIV>
<DIV><SPAN class=818260719-13102004><FONT face=Arial size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=818260719-13102004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=818260719-13102004><FONT face=Arial size=2>When I unzip the
2.3.2 driver files that I got from <SPAN class=537342519-13102004><A
href="http://www.voicetronix.com">www.voicetronix.com</A> </SPAN>and do a make,
I get the following error (I have pasted the full text that is output at the end
of this email):</FONT></SPAN></DIV>
<DIV><SPAN class=818260719-13102004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=818260719-13102004><FONT face=Arial size=2>vpb.c:162: error:
storage size of `vpb_fops' isn't known<BR>make[1]: *** [vpb.o] Error
1<BR>make[1]: Leaving directory `/usr/local/vpb-driver-2.3.2/src'<BR>make: ***
[all] Error 2<BR></FONT></SPAN></DIV>
<DIV><SPAN class=818260719-13102004><FONT face=Arial size=2>I read <SPAN
class=537342519-13102004>the</SPAN> FAQ <SPAN class=537342519-13102004>that
is included with the drivers </SPAN>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:</FONT></SPAN></DIV>
<DIV><SPAN class=818260719-13102004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=818260719-13102004><FONT face=Arial
size=2> /*#ifdef
MODVERSIONS*/<BR> #include
<linux/modversions.h><BR>
#include <linux/module.h><BR>
/*#endif*/</FONT></SPAN></DIV>
<DIV><SPAN class=818260719-13102004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=818260719-13102004><FONT face=Arial size=2>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.</FONT></SPAN><SPAN
class=818260719-13102004></DIV>
<DIV><BR><FONT face=Arial size=2></FONT></DIV></SPAN>
<DIV><FONT face=Arial><FONT size=2><SPAN class=818260719-13102004>I have tried
all of this with <SPAN class=537342519-13102004>the</SPAN> 2.3.1 drivers
and with kernel 2.6.5-1.358 with the same results. <SPAN
class=537342519-13102004>Has anyone else run into these errors? Do you know if
this card is compatible with Asterisk 1.0 and this
Kernel?</SPAN></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=818260719-13102004><SPAN
class=537342519-13102004></SPAN></SPAN></FONT></FONT> </DIV>
<DIV><SPAN class=818260719-13102004><FONT face=Arial
size=2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=818260719-13102004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=818260719-13102004><FONT face=Arial size=2>Andrew
</FONT></SPAN></DIV>
<DIV><SPAN class=818260719-13102004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=818260719-13102004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=818260719-13102004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=818260719-13102004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=818260719-13102004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=818260719-13102004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=818260719-13102004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=818260719-13102004><FONT face=Arial size=2>[root@asterisk
root]# cd /usr/local/vpb-driver-2.3.2<BR>[root@asterisk vpb-driver-2.3.2]#
make<BR>echo LINUX<BR>LINUX<BR>cd src; echo "#define VERSION \"2.3.2\" " >
version.h ;make<BR>make[1]: Entering directory
`/usr/local/vpb-driver-2.3.2/src'<BR>cc -O6 -mcpu=i486 -c vpb.c -o vpb-tmp.o
-I/lib/modules/2.6.8-1.521/build -Wall<BR>In file included from
vpb.c:95:<BR>/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header
included in userspace<BR>In file included from
vpb.c:102:<BR>/usr/src/linux/include/asm/module.h:54:2: #error unknown processor
family<BR>vpb.c:108:22: linux/mm.h: No such file or directory<BR>In file
included from
/usr/include/linux/fs.h:9,<BR>
from vpb.c:109:<BR>/usr/include/linux/config.h:5:2: #error Incorrectly using
glibc headers for a kernel module<BR>vpb.c:114:25: asm/uaccess.h: No such file
or directory<BR>In file included from vpb.c:117:<BR>/usr/include/asm/io.h:4:2:
warning: #warning <asm/io.h> is deprecated, use <sys/io.h>
instead<BR>vpb.c:119:27: linux/vmalloc.h: No such file or
directory<BR>vpb.c:121:25: linux/delay.h: No such file or
directory<BR>vpb.c:122:25: asm/uaccess.h: No such file or
directory<BR>vpb.c:143: warning: `struct file' declared inside parameter
list<BR>vpb.c:143: warning: its scope is only this definition or declaration,
which is probably not what you want<BR>vpb.c:143: warning: `struct inode'
declared inside parameter list<BR>vpb.c:162: error: variable `vpb_fops' has
initializer but incomplete type<BR>vpb.c:164: error: unknown field `owner'
specified in initializer<BR>vpb.c:164: error: `__this_module' undeclared here
(not in a function)<BR>vpb.c:164: warning: excess elements in struct
initializer<BR>vpb.c:164: warning: (near initialization for
`vpb_fops')<BR>vpb.c:165: error: unknown field `llseek' specified in
initializer<BR>vpb.c:165: warning: excess elements in struct
initializer<BR>vpb.c:165: warning: (near initialization for
`vpb_fops')<BR>vpb.c:166: error: unknown field `read' specified in
initializer<BR>vpb.c:166: warning: excess elements in struct
initializer<BR>vpb.c:166: warning: (near initialization for
`vpb_fops')<BR>vpb.c:167: error: unknown field `write' specified in
initializer<BR>vpb.c:167: warning: excess elements in struct
initializer<BR>vpb.c:167: warning: (near initialization for
`vpb_fops')<BR>vpb.c:168: error: unknown field `poll' specified in
initializer<BR>vpb.c:168: warning: excess elements in struct
initializer<BR>vpb.c:168: warning: (near initialization for
`vpb_fops')<BR>vpb.c:169: error: unknown field `ioctl' specified in
initializer<BR>vpb.c:169: warning: excess elements in struct
initializer<BR>vpb.c:169: warning: (near initialization for
`vpb_fops')<BR>vpb.c:170: error: unknown field `open' specified in
initializer<BR>vpb.c:170: warning: excess elements in struct
initializer<BR>vpb.c:170: warning: (near initialization for
`vpb_fops')<BR>vpb.c:171: error: unknown field `release' specified in
initializer<BR>vpb.c:171: warning: excess elements in struct
initializer<BR>vpb.c:171: warning: (near initialization for
`vpb_fops')<BR>vpb.c:172: error: unknown field `fasync' specified in
initializer<BR>vpb.c:173: warning: excess elements in struct
initializer<BR>vpb.c:173: warning: (near initialization for
`vpb_fops')<BR>vpb.c:181: error: syntax error before "base1"<BR>vpb.c:181:
warning: type defaults to `int' in declaration of `base1'<BR>vpb.c:181: warning:
data definition has no type or storage class<BR>vpb.c: In function
`init_module':<BR>vpb.c:208: error: `u32' undeclared (first use in this
function)<BR>vpb.c:208: error: (Each undeclared identifier is reported only
once<BR>vpb.c:208: error: for each function it appears in.)<BR>vpb.c:208: error:
syntax error before "ret"<BR>vpb.c:211: warning: implicit declaration of
function `register_chrdev'<BR>vpb.c:212: warning: implicit declaration of
function `printk'<BR>vpb.c:217: warning: implicit declaration of function
`pci_find_device'<BR>vpb.c:218: warning: assignment makes pointer from integer
without a cast<BR>vpb.c:221: warning: implicit declaration of function
`pci_read_config_dword'<BR>vpb.c:221: error: syntax error before ')'
token<BR>vpb.c:257: error: dereferencing pointer to incomplete
type<BR>vpb.c:257: error: dereferencing pointer to incomplete type<BR>vpb.c:258:
warning: implicit declaration of function `pci_write_config_dword'<BR>vpb.c:259:
error: dereferencing pointer to incomplete type<BR>vpb.c:261: warning: implicit
declaration of function `ioremap'<BR>vpb.c:261: error: dereferencing pointer to
incomplete type<BR>vpb.c:263: warning: assignment makes pointer from integer
without a cast<BR>vpb.c:264: error: dereferencing pointer to incomplete
type<BR>vpb.c:266: warning: assignment makes pointer from integer without a
cast<BR>vpb.c:269: error: dereferencing pointer to incomplete type<BR>vpb.c:271:
error: `ret' undeclared (first use in this function)<BR>vpb.c:271: warning:
implicit declaration of function `check_region'<BR>vpb.c:273: warning: implicit
declaration of function `request_region'<BR>vpb.c:298: error: `reg28' undeclared
(first use in this function)<BR>vpb.c:300: warning: implicit declaration of
function `writel'<BR>vpb.c:311: warning: implicit declaration of function
`readl'<BR>vpb.c: In function `cleanup_module':<BR>vpb.c:343: warning: implicit
declaration of function `iounmap'<BR>vpb.c:344: warning: implicit declaration of
function `release_region'<BR>vpb.c:349: warning: implicit declaration of
function `unregister_chrdev'<BR>vpb.c:351: error: `KERN_WARNING' undeclared
(first use in this function)<BR>vpb.c:351: error: syntax error before string
constant<BR>vpb.c: At top level:<BR>vpb.c:368: warning: `struct file' declared
inside parameter list<BR>vpb.c:368: warning: `struct inode' declared inside
parameter list<BR>vpb.c:369: error: conflicting types for
`vpb_ioctl'<BR>vpb.c:143: error: previous declaration of `vpb_ioctl'<BR>vpb.c:
In function `vpb_ioctl':<BR>vpb.c:384: warning: implicit declaration of function
`copy_from_user'<BR>vpb.c:386: error: `KERN_CRIT' undeclared (first use in this
function)<BR>vpb.c:386: error: syntax error before string constant<BR>vpb.c:414:
warning: implicit declaration of function `access_ok'<BR>vpb.c:414: error:
`VERIFY_READ' undeclared (first use in this function)<BR>vpb.c:422: warning:
implicit declaration of function `__get_user'<BR>vpb.c:436: error:
`VERIFY_WRITE' undeclared (first use in this function)<BR>vpb.c:441: warning:
implicit declaration of function `__put_user'<BR>vpb.c:447: warning: implicit
declaration of function `copy_to_user'<BR>vpb.c:461: warning: implicit
declaration of function `memcpy_toio'<BR>vpb.c:467: warning: implicit
declaration of function `udelay'<BR>vpb.c:480: warning: implicit declaration of
function `memcpy_fromio'<BR>vpb.c:498: warning: implicit declaration of function
`writew'<BR>vpb.c: At top level:<BR>vpb.c:162: error: storage size of `vpb_fops'
isn't known<BR>make[1]: *** [vpb.o] Error 1<BR>make[1]: Leaving directory
`/usr/local/vpb-driver-2.3.2/src'<BR>make: *** [all] Error
2<BR></FONT></DIV></SPAN></DIV></DIV></BODY></HTML>