1.2.15 compile error

Sorry to post the long error message, but this is what I get when trying to compile 1.2.15. Can someone point me in the right direction here? Thanks in advance.

codec_zap.c: In function `zap_framein':
codec_zap.c:147: error: dereferencing pointer to incomplete type
codec_zap.c:149: error: dereferencing pointer to incomplete type
codec_zap.c:151: error: dereferencing pointer to incomplete type
codec_zap.c:151: error: dereferencing pointer to incomplete type
codec_zap.c:156: error: dereferencing pointer to incomplete type
codec_zap.c:156: error: dereferencing pointer to incomplete type
codec_zap.c:156: error: dereferencing pointer to incomplete type
codec_zap.c:158: error: dereferencing pointer to incomplete type
codec_zap.c:158: error: dereferencing pointer to incomplete type
codec_zap.c:158: error: dereferencing pointer to incomplete type
codec_zap.c:158: error: dereferencing pointer to incomplete type
codec_zap.c:159: error: dereferencing pointer to incomplete type
codec_zap.c:162: error: dereferencing pointer to incomplete type
codec_zap.c:162: error: dereferencing pointer to incomplete type
codec_zap.c:162: error: dereferencing pointer to incomplete type
codec_zap.c:163: error: dereferencing pointer to incomplete type
codec_zap.c: In function `zap_frameout':
codec_zap.c:187: error: dereferencing pointer to incomplete type
codec_zap.c:196: error: dereferencing pointer to incomplete type
codec_zap.c:197: error: dereferencing pointer to incomplete type
codec_zap.c:198: error: dereferencing pointer to incomplete type
codec_zap.c:198: error: dereferencing pointer to incomplete type
codec_zap.c:199: error: dereferencing pointer to incomplete type
codec_zap.c:200: error: dereferencing pointer to incomplete type
codec_zap.c:203: error: dereferencing pointer to incomplete type
codec_zap.c:206: error: dereferencing pointer to incomplete type
codec_zap.c:207: error: dereferencing pointer to incomplete type
codec_zap.c:208: error: `ZT_TCOP_TRANSCODE' undeclared (first use in this function)
codec_zap.c:208: error: (Each undeclared identifier is reported only once
codec_zap.c:208: error: for each function it appears in.)
codec_zap.c:209: error: `ZT_TRANSCODE_OP' undeclared (first use in this function)
codec_zap.c: In function `zap_destroy':
codec_zap.c:223: error: `ZT_TCOP_RELEASE' undeclared (first use in this function)
codec_zap.c:224: error: `ZT_TRANSCODE_OP' undeclared (first use in this function)
codec_zap.c:227: error: dereferencing pointer to incomplete type
codec_zap.c: In function `zap_new_alawtog723':
codec_zap.c:244: error: `ZT_TCOP_ALLOCATE' undeclared (first use in this function)
codec_zap.c:266: error: dereferencing pointer to incomplete type
codec_zap.c:273: error: dereferencing pointer to incomplete type
codec_zap.c:273: error: `ZT_TRANSCODE_MAGIC' undeclared (first use in this function)
codec_zap.c:274: error: dereferencing pointer to incomplete type
codec_zap.c:275: error: dereferencing pointer to incomplete type
codec_zap.c:281: error: dereferencing pointer to incomplete type
codec_zap.c:282: error: dereferencing pointer to incomplete type
codec_zap.c:283: error: `ZT_TRANSCODE_OP' undeclared (first use in this function)
codec_zap.c:285: error: dereferencing pointer to incomplete type
codec_zap.c: In function `zap_new_ulawtog723':
codec_zap.c:301: error: `ZT_TCOP_ALLOCATE' undeclared (first use in this function)
codec_zap.c:323: error: dereferencing pointer to incomplete type
codec_zap.c:330: error: dereferencing pointer to incomplete type
codec_zap.c:330: error: `ZT_TRANSCODE_MAGIC' undeclared (first use in this function)
codec_zap.c:331: error: dereferencing pointer to incomplete type
codec_zap.c:332: error: dereferencing pointer to incomplete type
codec_zap.c:338: error: dereferencing pointer to incomplete type
codec_zap.c:339: error: dereferencing pointer to incomplete type
codec_zap.c:340: error: `ZT_TRANSCODE_OP' undeclared (first use in this function)
codec_zap.c:342: error: dereferencing pointer to incomplete type
codec_zap.c: In function `zap_new_g723toalaw':
codec_zap.c:358: error: `ZT_TCOP_ALLOCATE' undeclared (first use in this function)
codec_zap.c:380: error: dereferencing pointer to incomplete type
codec_zap.c:387: error: dereferencing pointer to incomplete type
codec_zap.c:387: error: `ZT_TRANSCODE_MAGIC' undeclared (first use in this function)
codec_zap.c:388: error: dereferencing pointer to incomplete type
codec_zap.c:389: error: dereferencing pointer to incomplete type
codec_zap.c:395: error: dereferencing pointer to incomplete type
codec_zap.c:396: error: dereferencing pointer to incomplete type
codec_zap.c:397: error: `ZT_TRANSCODE_OP' undeclared (first use in this function)
codec_zap.c:399: error: dereferencing pointer to incomplete type
codec_zap.c: In function `zap_new_g723toulaw':
codec_zap.c:415: error: `ZT_TCOP_ALLOCATE' undeclared (first use in this function)
codec_zap.c:437: error: dereferencing pointer to incomplete type
codec_zap.c:444: error: dereferencing pointer to incomplete type
codec_zap.c:444: error: `ZT_TRANSCODE_MAGIC' undeclared (first use in this function)
codec_zap.c:445: error: dereferencing pointer to incomplete type
codec_zap.c:446: error: dereferencing pointer to incomplete type
codec_zap.c:452: error: dereferencing pointer to incomplete type
codec_zap.c:453: error: dereferencing pointer to incomplete type
codec_zap.c:454: error: `ZT_TRANSCODE_OP' undeclared (first use in this function)
codec_zap.c:456: error: dereferencing pointer to incomplete type
codec_zap.c: In function `zap_new_alawtog729':
codec_zap.c:472: error: `ZT_TCOP_ALLOCATE' undeclared (first use in this function)
codec_zap.c:494: error: dereferencing pointer to incomplete type
codec_zap.c:501: error: dereferencing pointer to incomplete type
codec_zap.c:501: error: `ZT_TRANSCODE_MAGIC' undeclared (first use in this function)
codec_zap.c:502: error: dereferencing pointer to incomplete type
codec_zap.c:503: error: dereferencing pointer to incomplete type
codec_zap.c:509: error: dereferencing pointer to incomplete type
codec_zap.c:510: error: dereferencing pointer to incomplete type
codec_zap.c:511: error: `ZT_TRANSCODE_OP' undeclared (first use in this function)
codec_zap.c:513: error: dereferencing pointer to incomplete type
codec_zap.c: In function `zap_new_ulawtog729':
codec_zap.c:529: error: `ZT_TCOP_ALLOCATE' undeclared (first use in this function)
codec_zap.c:551: error: dereferencing pointer to incomplete type
codec_zap.c:558: error: dereferencing pointer to incomplete type
codec_zap.c:558: error: `ZT_TRANSCODE_MAGIC' undeclared (first use in this function)
codec_zap.c:559: error: dereferencing pointer to incomplete type
codec_zap.c:560: error: dereferencing pointer to incomplete type
codec_zap.c:566: error: dereferencing pointer to incomplete type
codec_zap.c:567: error: dereferencing pointer to incomplete type
codec_zap.c:568: error: `ZT_TRANSCODE_OP' undeclared (first use in this function)
codec_zap.c:570: error: dereferencing pointer to incomplete type
codec_zap.c: In function `zap_new_g729toalaw':
codec_zap.c:586: error: `ZT_TCOP_ALLOCATE' undeclared (first use in this function)
codec_zap.c:608: error: dereferencing pointer to incomplete type
codec_zap.c:615: error: dereferencing pointer to incomplete type
codec_zap.c:615: error: `ZT_TRANSCODE_MAGIC' undeclared (first use in this function)
codec_zap.c:616: error: dereferencing pointer to incomplete type
codec_zap.c:617: error: dereferencing pointer to incomplete type
codec_zap.c:623: error: dereferencing pointer to incomplete type
codec_zap.c:624: error: dereferencing pointer to incomplete type
codec_zap.c:625: error: `ZT_TRANSCODE_OP' undeclared (first use in this function)
codec_zap.c:627: error: dereferencing pointer to incomplete type
codec_zap.c: In function `zap_new_g729toulaw':
codec_zap.c:643: error: `ZT_TCOP_ALLOCATE' undeclared (first use in this function)
codec_zap.c:665: error: dereferencing pointer to incomplete type
codec_zap.c:672: error: dereferencing pointer to incomplete type
codec_zap.c:672: error: `ZT_TRANSCODE_MAGIC' undeclared (first use in this function)
codec_zap.c:673: error: dereferencing pointer to incomplete type
codec_zap.c:674: error: dereferencing pointer to incomplete type
codec_zap.c:680: error: dereferencing pointer to incomplete type
codec_zap.c:681: error: dereferencing pointer to incomplete type
codec_zap.c:682: error: `ZT_TRANSCODE_OP' undeclared (first use in this function)
codec_zap.c:684: error: dereferencing pointer to incomplete type
codec_zap.c: In function `find_transcoders':
codec_zap.c:849: error: variable `info' has initializer but incomplete type
codec_zap.c:849: warning: excess elements in struct initializer
codec_zap.c:849: warning: (near initialization for `info')
codec_zap.c:849: error: storage size of 'info' isn't known
codec_zap.c:854: error: `ZT_TCOP_GETINFO' undeclared (first use in this function)
codec_zap.c:864: error: `ZT_TRANSCODE_OP' undeclared (first use in this function)
codec_zap.c:849: warning: unused variable `info'
make[1]: *** [codec_zap.o] Error 1
make[1]: Leaving directory `/usr/src/asterisk-1.2.15/codecs'
make: *** [subdirs] Error 1

what version of zaptel do you have installed ?

zaptel-1.2.14, however, i compiled but did not install it yet. i wanted to make sure everything compiled first. must i do a make and make install on zaptel before compiling asterisk?

that would be the first thing i would try. if the Asterisk modules depend on a particular version of Zaptel, that would sort it out.

it would be good to get some sort of “depends on” list going, as not all versions co-exist.