Acceleport XEM and CentOS v 4

The Digiboard Acceleport XEM is recognized by the hardware (Foxconn motherboard w 3Ghz Pentium IV) but the software refuses to compile. I’ve opened a support request with Digi but in the mean time I figure I’d see if anyone here had already dealt with and solved this issue.

I first tried the ./setup from the CD presenting me with the graphical install but that failed. I next tried the source code from the CD but that failed as well. I then went to Digi’s FTP site downloading v 1.57-1 hoping that would compile but it fails also.

Here’s the failed “make install” from epca-1.57-1 which is the latest available from their web site. I’m not a C programmer so even though it’s reporting errors on line 716 (next block followed by failed compile. I don’t know if it’s actually the cause of the compile failure.

/* This holds the status of the KME buffer */
static int kmebusy = 0;

static struct board_info boards[MAXBOARDS];

#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,0,0)
static int pc_timeron = 0;

if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)

define ALLOW_ALT_FAIL_OPEN 1

define ALT_FAIL_OPEN_DEFAULT 0

line 716 is next line:

static struct timer_list pc_timer = { {NULL, NULL}, 0, 0, 0};

else

#define ALLOW_ALT_FAIL_OPEN 0
static struct timer_list pc_timer = {NULL, NULL, 0, 0, 0};

endif

#endif

/* Local storage for epca_mess printk messages */
#define MESBUFSIZE 1024
static char epca_mesbuf[MESBUFSIZE];
static char *epca_mesbufpt=epca_mesbuf;

[root@mini epca]# pwd
/usr/src/dg/epca
[root@mini epca]# make install
gcc -O2 -march=i486 -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing -DCPU=586 -O2 -D__KERNEL__ -DMODULE -DLINUX -DDG_NAME="epca-1.57-1" -DDG_PART="40001450_T" -I/lib/modules/2.6.9-22.0.1.EL/build/include -I./includes -Wall -Wstrict-prototypes -pipe -fno-strength-reduce -DNO_DISTRO -D__SMP__ -DCONFIG_X86_LOCAL_APIC -c epca.c
In file included from epca.c:552:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from the appropriate kernel package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.
In file included from /lib/modules/2.6.9-22.0.1.EL/build/include/linux/irq.h:20,
from /lib/modules/2.6.9-22.0.1.EL/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.9-22.0.1.EL/build/include/linux/hardirq.h:6,
from /lib/modules/2.6.9-22.0.1.EL/build/include/linux/delay.h:13,
from epca.c:563:
/lib/modules/2.6.9-22.0.1.EL/build/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /lib/modules/2.6.9-22.0.1.EL/build/include/asm/hardirq.h:6,
from /lib/modules/2.6.9-22.0.1.EL/build/include/linux/hardirq.h:6,
from /lib/modules/2.6.9-22.0.1.EL/build/include/linux/delay.h:13,
from epca.c:563:
/lib/modules/2.6.9-22.0.1.EL/build/include/linux/irq.h:70: error: NR_IRQS' undeclared here (not in a function) In file included from /lib/modules/2.6.9-22.0.1.EL/build/include/linux/irq.h:72, from /lib/modules/2.6.9-22.0.1.EL/build/include/asm/hardirq.h:6, from /lib/modules/2.6.9-22.0.1.EL/build/include/linux/hardirq.h:6, from /lib/modules/2.6.9-22.0.1.EL/build/include/linux/delay.h:13, from epca.c:563: /lib/modules/2.6.9-22.0.1.EL/build/include/asm/hw_irq.h:28: error: NR_IRQ_VECTORS’ undeclared here (not in a function)
epca.c:716: warning: missing braces around initializer
epca.c:716: warning: (near initialization for pc_timer.lock') epca.c:744: warning: MODULE_PARM_’ is deprecated (declared at /lib/modules/2.6.9-22.0.1.EL/build/include/linux/module.h:552)
epca.c:745: warning: MODULE_PARM_' is deprecated (declared at /lib/modules/2.6.9-22.0.1.EL/build/include/linux/module.h:552) epca.c:746: warning: MODULE_PARM_’ is deprecated (declared at /lib/modules/2.6.9-22.0.1.EL/build/include/linux/module.h:552)
epca.c:747: warning: MODULE_PARM_' is deprecated (declared at /lib/modules/2.6.9-22.0.1.EL/build/include/linux/module.h:552) epca.c:748: warning: MODULE_PARM_’ is deprecated (declared at /lib/modules/2.6.9-22.0.1.EL/build/include/linux/module.h:552)
epca.c:750: warning: MODULE_PARM_' is deprecated (declared at /lib/modules/2.6.9-22.0.1.EL/build/include/linux/module.h:552) epca.c:1182: error: syntax error before "dev" epca.c:1183: warning: function declaration isn't a prototype epca.c: In function istpr’:
epca.c:1186: error: dev' undeclared (first use in this function) epca.c:1186: error: (Each undeclared identifier is reported only once epca.c:1186: error: for each function it appears in.) epca.c: In function pc_close’:
epca.c:1311: error: request for member subtype' in something not a structure or union epca.c:1312: error: MOD_DEC_USE_COUNT’ undeclared (first use in this function)
epca.c:1333: error: structure has no member named device' epca.c:1396: error: ASYNC_CALLOUT_ACTIVE’ undeclared (first use in this function)
epca.c:1420: error: request for member flush_buffer' in something not a structure or union epca.c:1422: error: request for member flush_buffer’ in something not a structure or union
epca.c: In function pc_hangup': epca.c:1558: error: structure has no member named device’
epca.c:1567: error: ASYNC_CALLOUT_ACTIVE' undeclared (first use in this function) epca.c: In function pc_write’:
epca.c:1672: error: request for member subtype' in something not a structure or union epca.c:1687: error: structure has no member named device’
epca.c:1809: error: structure has no member named device' epca.c:1892: error: structure has no member named device’
epca.c: In function pc_write_room': epca.c:1969: error: structure has no member named device’
epca.c: In function block_til_ready': epca.c:2202: warning: interruptible_sleep_on’ is deprecated (declared at /lib/modules/2.6.9-22.0.1.EL/build/include/linux/wait.h:290)
epca.c:2215: error: request for member subtype' in something not a structure or union epca.c:2219: error: ASYNC_CALLOUT_ACTIVE’ undeclared (first use in this function)
epca.c:2221: error: structure has no member named session' epca.c:2226: error: structure has no member named pgrp’
epca.c:2265: error: structure has no member named device' epca.c:2319: error: structure has no member named device’
epca.c: In function pc_open': epca.c:2403: error: request for member subtype’ in something not a structure or union
epca.c:2404: error: MOD_INC_USE_COUNT' undeclared (first use in this function) epca.c:2409: error: request for member name’ in something not a structure or union
epca.c:2410: error: structure has no member named device' epca.c:2410: error: request for member minor_start’ in something not a structure or union
epca.c:2490: error: structure has no member named device' epca.c:2513: error: request for member subtype’ in something not a structure or union
epca.c:2518: error: structure has no member named session' epca.c:2519: error: structure has no member named pgrp’
epca.c:2538: error: structure has no member named device' epca.c:2575: error: structure has no member named device’
epca.c:2593: error: structure has no member named device' epca.c: In function cleanup_module’:
epca.c:2738: error: structure has no member named table' epca.c: In function pc_init’:
epca.c:3072: warning: implicit declaration of function pci_present' epca.c:3116: warning: assignment makes integer from pointer without a cast epca.c:3169: error: structure has no member named table’
epca.c:3298: error: structure has no member named table' epca.c:3306: error: structure has no member named table’
epca.c:3306: error: structure has no member named table' epca.c:3306: error: structure has no member named table’
epca.c:3306: error: structure has no member named table' epca.c:3312: error: structure has no member named table’
epca.c:3320: error: structure has no member named table' epca.c:3320: error: structure has no member named table’
epca.c:3320: error: structure has no member named table' epca.c:3320: error: structure has no member named table’
epca.c:3415: warning: integer overflow in expression
epca.c:3676: error: structure has no member named table' epca.c:3677: error: structure has no member named table’
epca.c: In function doevent': epca.c:4438: error: ASYNC_CALLOUT_ACTIVE’ undeclared (first use in this function)
epca.c: In function termios2digi_misc': epca.c:4832: error: MOD_INC_USE_COUNT’ undeclared (first use in this function)
epca.c:4844: error: MOD_DEC_USE_COUNT' undeclared (first use in this function) epca.c: In function epcaparam’:
epca.c:4937: error: request for member subtype' in something not a structure or union epca.c: In function receive_data’:
epca.c:5109: error: structure has no member named device' epca.c:5109: error: structure has no member named device’
epca.c: In function pc_ioctl': epca.c:5218: error: request for member subtype’ in something not a structure or union
epca.c:5244: error: MOD_DEC_USE_COUNT' undeclared (first use in this function) epca.c:5382: warning: interruptible_sleep_on’ is deprecated (declared at /lib/modules/2.6.9-22.0.1.EL/build/include/linux/wait.h:290)
epca.c: In function maxcps_room': epca.c:6593: error: structure has no member named device’
epca.c: In function get_PCI_configuration': epca.c:6975: warning: implicit declaration of function pcibios_read_config_dword’
epca.c: In function init_one_PCI': epca.c:7092: warning: implicit declaration of function pcibios_write_config_byte’
epca.c: In function init_PCI': epca.c:7189: warning: implicit declaration of function pcibios_find_device’
make: *** [epca.o] Error 1
[root@mini epca]#

If this is a PCI adapter, you will need to use the newer “DGAP” driver with 2.6.x kernels (epca only works in 2.4.x kernels):

http://www.digi.com/support/productdetl.jsp?pid=1504&osvid=93&tp=1&s=0

ISA adapters will not work in 2.6.x kernels.

Thanks you for your prompt response to this problem. Your link to the newer software solved the issue. I wish I had been able to find the later software using your site and knowledge base earlier in the weekend.