I'm having difficulties getting zaptel to compile. I've compiled it in the past and never had any difficulties to speak of, but on this particular machine I have problems. The OS configuration is the same as I've used in the past and the hardware is identical. Obviously there's some subtle difference (probably with the packages installed, but I haven't been able to locate anything). Everything works fine until I get to the xpp stuff: CC [M] /usr/src/zaptel-1.2.6/ztdummy.o CC [M] /usr/src/zaptel-1.2.6/xpp/card_fxs.o /usr/src/zaptel-1.2.6/xpp/card_fxs.c: In function `FXS_card_new': /usr/src/zaptel-1.2.6/xpp/card_fxs.c:98: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c: In function `FXS_card_init': /usr/src/zaptel-1.2.6/xpp/card_fxs.c:114: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c:117: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c: In function `FXS_card_remove': /usr/src/zaptel-1.2.6/xpp/card_fxs.c:134: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c:137: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c: In function `FXS_CHAN_ENABLE_send': /usr/src/zaptel-1.2.6/xpp/card_fxs.c:190: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c: In function `FXS_CHAN_POWER_send': /usr/src/zaptel-1.2.6/xpp/card_fxs.c:213: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c: In function `FXS_CHAN_CID_send': /usr/src/zaptel-1.2.6/xpp/card_fxs.c:241: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c: In function `FXS_RING_send': /usr/src/zaptel-1.2.6/xpp/card_fxs.c:264: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c: In function `FXS_SETHOOK_send': /usr/src/zaptel-1.2.6/xpp/card_fxs.c:276: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c: In function `FXS_LED_send': /usr/src/zaptel-1.2.6/xpp/card_fxs.c:318: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c:330: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c: In function `FXS_RELAY_OUT_send': /usr/src/zaptel-1.2.6/xpp/card_fxs.c:350: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c:361: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c: In function `FXS_SLIC_INIT_send': /usr/src/zaptel-1.2.6/xpp/card_fxs.c:377: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c: In function `FXS_SLIC_QUERY_send': /usr/src/zaptel-1.2.6/xpp/card_fxs.c:403: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c: In function `FXS_SIG_CHANGED_handler': /usr/src/zaptel-1.2.6/xpp/card_fxs.c:421: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c:426: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c:432: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c: In function `FXS_SLIC_REPLY_handler': /usr/src/zaptel-1.2.6/xpp/card_fxs.c:456: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c:463: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c: In function `fxs_packet_is_valid': /usr/src/zaptel-1.2.6/xpp/card_fxs.c:522: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c: In function `fxs_packet_dump': /usr/src/zaptel-1.2.6/xpp/card_fxs.c:529: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c: In function `parse_slic_cmd': /usr/src/zaptel-1.2.6/xpp/card_fxs.c:595: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c:607: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c:612: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c: In function `process_slic_cmdline': /usr/src/zaptel-1.2.6/xpp/card_fxs.c:643: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c: In function `card_fxs_startup': /usr/src/zaptel-1.2.6/xpp/card_fxs.c:687: error: invalid use of undefined type `struct module' /usr/src/zaptel-1.2.6/xpp/card_fxs.c:687: error: invalid use of undefined type `struct module' make[3]: *** [/usr/src/zaptel-1.2.6/xpp/card_fxs.o] Error 1 make[2]: *** [/usr/src/zaptel-1.2.6/xpp] Error 2 make[1]: *** [_module_/usr/src/zaptel-1.2.6] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.17.11-fai-p4' make: *** [linux26] Error 2 I've got all the documented prerequisites installed: bison bison-dev newt newt-dev Linux headers Linux kernel source Gcc 3.3.5 This is all on a Debian Sarge machine. Anyone have any ideas or tips? Paul
On Sun, Nov 12, 2006 at 07:26:02PM -0600, Traue, Paul wrote:> I'm having difficulties getting zaptel to compile. I've compiled it in > the past and never had any difficulties to speak of, but on this > particular machine I have problems. The OS configuration is the same as > I've used in the past and the hardware is identical. Obviously there's > some subtle difference (probably with the packages installed, but I > haven't been able to locate anything). > > Everything works fine until I get to the xpp stuff: > > CC [M] /usr/src/zaptel-1.2.6/ztdummy.o > CC [M] /usr/src/zaptel-1.2.6/xpp/card_fxs.o > /usr/src/zaptel-1.2.6/xpp/card_fxs.c: In function `FXS_card_new': > /usr/src/zaptel-1.2.6/xpp/card_fxs.c:98: error: invalid use of undefined > type `struct module'Fixed in later version. Get the latest 1.2 version (should be safe on Zaptel, as it does not change much). Or use latest debs (currently still 1.2.10, I know) Else, disable the building of that directory. There's a 'obj-m += xpp' in the Makefile. If you do have xpp (Astribank) hardware you definetly need a newer version as anything before 1.2.7 is a very old version of our driver. -- Tzafrir Cohen icq#16849755 jabber:tzafrir@jabber.org +972-50-7952406 mailto:tzafrir.cohen@xorcom.com http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir
Apparently Analagous Threads
- odd error compiling zaptel-1.4.10
- DAHDI-Linux and DAHDI-Tools 2.8.0-rc5 Now Available
- DAHDI-Linux and DAHDI-Tools 2.8.0-rc5 Now Available
- DAHDI-Linux 2.6.1, 2.5.1 and DAHDI-Tools 2.6.1, 2.5.1 Now Available
- DAHDI-Linux 2.6.1, 2.5.1 and DAHDI-Tools 2.6.1, 2.5.1 Now Available