[asterisk-users] Zaptel compile problems

Traue, Paul ptraue at neospire.net
Sun Nov 12 18:26:02 MST 2006


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


More information about the asterisk-users mailing list