[solved] 1.8 addons compile error: asterisk/rtp.h: No such

This happens when you try to install separate addons with 1.8


Update: It wasn’t in any README, it wasn’t in any documentation online. By myself I found that asterisk addons appears to have been discontinued.

The mysql package is loading via a menuselect choice, but now there is a new problem. ODBC appears to be impossible to enable. Issue continued in a new ticket for specificity.

Goal: Combine asterisk 1.8 with the asterisk_addons package

Has anyone confirmed to have 1.8 working with asterisk addons?

If so what combination of versions?

I’m down in the trial and error bunker now trying to find a working combo, but my fingers are feeling the ache of arthritis.

failed combinations of packages:

asterisk-1.8.6.0
asterisk-1.8.7.1
asterisk-1.8.8.0
asterisk-1.8.8.1

asterisk-addons-1.6.2.2
asterisk-addons-1.6.2.3
asterisk-addons-1.6.2.4

working 1.6 baseline test

asterisk-1.6.2.22
asterisk-addons-1.6.2.4

1.8 always seems to spit back an error:

[root@localhost asterisk-addons-1.6.2.4]# make
CC=“gcc” CXX=“g++” LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect CONFIGURE_SILENT="–silent" makeopts
make[1]: Entering directory /usr/src/asterisk-addons-1.6.2.4/menuselect' make[1]:makeopts’ is up to date.
make[1]: Leaving directory /usr/src/asterisk-addons-1.6.2.4/menuselect' make[1]: Entering directory/usr/src/asterisk-addons-1.6.2.4/channels’
[CC] chan_ooh323.c -> chan_ooh323.o
In file included from chan_ooh323.c:18:
chan_ooh323.h:53:26: error: asterisk/rtp.h: No such file or directory
chan_ooh323.c:55: warning: \u2018struct ast_rtp\u2019 declared inside parameter list
chan_ooh323.c:55: warning: its scope is only this definition or declaration, which is probably not what you want
chan_ooh323.c:56: warning: \u2018struct ast_rtp\u2019 declared inside parameter list
chan_ooh323.c:58: warning: \u2018struct ast_rtp\u2019 declared inside parameter list
chan_ooh323.c:70: warning: initialization from incompatible pointer type
chan_ooh323.c:82: error: \u2018ast_rtp_bridge\u2019 undeclared here (not in a function)
chan_ooh323.c:85: error: variable \u2018ooh323_rtp\u2019 has initializer but incomplete type
chan_ooh323.c:86: error: unknown field \u2018type\u2019 specified in initializer
chan_ooh323.c:86: warning: excess elements in struct initializer
chan_ooh323.c:86: warning: (near initialization for \u2018ooh323_rtp\u2019)
chan_ooh323.c:87: error: unknown field \u2018get_rtp_info\u2019 specified in initializer
chan_ooh323.c:87: warning: excess elements in struct initializer
chan_ooh323.c:87: warning: (near initialization for \u2018ooh323_rtp\u2019)
chan_ooh323.c:88: error: unknown field \u2018get_vrtp_info\u2019 specified in initializer
chan_ooh323.c:88: warning: excess elements in struct initializer
chan_ooh323.c:88: warning: (near initialization for \u2018ooh323_rtp\u2019)
chan_ooh323.c:89: error: unknown field \u2018set_rtp_peer\u2019 specified in initializer
chan_ooh323.c:90: warning: excess elements in struct initializer
chan_ooh323.c:90: warning: (near initialization for \u2018ooh323_rtp\u2019)
chan_ooh323.c: In function \u2018ooh323_new\u2019:
chan_ooh323.c:257: warning: passing argument 8 of \u2018__ast_channel_alloc\u2019 makes pointer from integer without a cast
/usr/include/asterisk/channel.h:1112: note: expected \u2018const char *\u2019 but argument is of type \u2018int\u2019
chan_ooh323.c:257: warning: passing argument 9 of \u2018__ast_channel_alloc\u2019 makes integer from pointer without a cast
/usr/include/asterisk/channel.h:1112: note: expected \u2018int\u2019 but argument is of type \u2018char *\u2019
chan_ooh323.c:300: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c:304: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c: In function \u2018ooh323_alloc\u2019:
chan_ooh323.c:379: warning: assignment makes pointer from integer without a cast
chan_ooh323.c: In function \u2018ooh323_call\u2019:
chan_ooh323.c:736: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c:740: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c:740: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c:740: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c:740: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c:740: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c:740: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c:740: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c:743: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c:747: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c:747: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c:747: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c:747: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c:747: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c:747: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c:747: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c:750: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c:754: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c:754: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c:754: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c:754: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c:754: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c:754: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c:754: error: \u2018struct ast_channel\u2019 has no member named \u2018cid\u2019
chan_ooh323.c: In function \u2018ooh323_write\u2019:
chan_ooh323.c:909: error: invalid operands to binary & (have \u2018union ast_frame_subclass\u2019 and \u2018format_t\u2019)
chan_ooh323.c: In function \u2018ooh323_onReceivedDigit\u2019:
chan_ooh323.c:1149: error: incompatible types when assigning to type \u2018union ast_frame_subclass\u2019 from type \u2018char\u2019
chan_ooh323.c: In function \u2018build_user\u2019:
chan_ooh323.c:1554: warning: passing argument 2 of \u2018ast_parse_allow_disallow\u2019 from incompatible pointer type
/usr/include/asterisk/frame.h:725: note: expected \u2018format_t *\u2019 but argument is of type \u2018int *\u2019
chan_ooh323.c:1561: warning: passing argument 2 of \u2018ast_parse_allow_disallow\u2019 from incompatible pointer type
/usr/include/asterisk/frame.h:725: note: expected \u2018format_t *\u2019 but argument is of type \u2018int *\u2019
chan_ooh323.c: In function \u2018build_peer\u2019:
chan_ooh323.c:1654: warning: passing argument 2 of \u2018ast_parse_allow_disallow\u2019 from incompatible pointer type
/usr/include/asterisk/frame.h:725: note: expected \u2018format_t *\u2019 but argument is of type \u2018int *\u2019
chan_ooh323.c:1661: warning: passing argument 2 of \u2018ast_parse_allow_disallow\u2019 from incompatible pointer type
/usr/include/asterisk/frame.h:725: note: expected \u2018format_t *\u2019 but argument is of type \u2018int *\u2019
chan_ooh323.c: In function \u2018reload_config\u2019:
chan_ooh323.c:1905: warning: passing argument 2 of \u2018ast_parse_allow_disallow\u2019 from incompatible pointer type
/usr/include/asterisk/frame.h:725: note: expected \u2018format_t *\u2019 but argument is of type \u2018int *\u2019
chan_ooh323.c:1911: warning: passing argument 2 of \u2018ast_parse_allow_disallow\u2019 from incompatible pointer type
/usr/include/asterisk/frame.h:725: note: expected \u2018format_t *\u2019 but argument is of type \u2018int *\u2019
chan_ooh323.c: At top level:
chan_ooh323.c:2824: error: return type is an incomplete type
chan_ooh323.c:2823: error: conflicting types for \u2018ooh323_get_rtp_peer\u2019
chan_ooh323.c:55: note: previous declaration of \u2018ooh323_get_rtp_peer\u2019 was here
chan_ooh323.c: In function \u2018ooh323_get_rtp_peer\u2019:
chan_ooh323.c:2826: error: variable \u2018res\u2019 has initializer but incomplete type
chan_ooh323.c:2826: error: \u2018AST_RTP_TRY_PARTIAL\u2019 undeclared (first use in this function)
chan_ooh323.c:2826: error: (Each undeclared identifier is reported only once
chan_ooh323.c:2826: error: for each function it appears in.)
chan_ooh323.c:2826: error: storage size of \u2018res\u2019 isn\u2019t known
chan_ooh323.c:2829: error: \u2018AST_RTP_GET_FAILED\u2019 undeclared (first use in this function)
chan_ooh323.c:2829: warning: \u2018return\u2019 with a value, in function returning void
chan_ooh323.c:2834: warning: \u2018return\u2019 with a value, in function returning void
chan_ooh323.c:2836: error: \u2018AST_RTP_TRY_NATIVE\u2019 undeclared (first use in this function)
chan_ooh323.c:2838: warning: \u2018return\u2019 with a value, in function returning void
chan_ooh323.c: At top level:
chan_ooh323.c:2842: error: return type is an incomplete type
chan_ooh323.c:2841: error: conflicting types for \u2018ooh323_get_vrtp_peer\u2019
chan_ooh323.c:56: note: previous declaration of \u2018ooh323_get_vrtp_peer\u2019 was here
chan_ooh323.c: In function \u2018ooh323_get_vrtp_peer\u2019:
chan_ooh323.c:2844: error: variable \u2018res\u2019 has initializer but incomplete type
chan_ooh323.c:2844: error: \u2018AST_RTP_TRY_PARTIAL\u2019 undeclared (first use in this function)
chan_ooh323.c:2844: error: storage size of \u2018res\u2019 isn\u2019t known
chan_ooh323.c:2847: error: \u2018AST_RTP_GET_FAILED\u2019 undeclared (first use in this function)
chan_ooh323.c:2847: warning: \u2018return\u2019 with a value, in function returning void
chan_ooh323.c:2852: warning: \u2018return\u2019 with a value, in function returning void
chan_ooh323.c:2854: error: \u2018AST_RTP_TRY_NATIVE\u2019 undeclared (first use in this function)
chan_ooh323.c:2856: warning: \u2018return\u2019 with a value, in function returning void
chan_ooh323.c: At top level:
chan_ooh323.c:2899: error: conflicting types for \u2018ooh323_set_rtp_peer\u2019
chan_ooh323.c:57: note: previous declaration of \u2018ooh323_set_rtp_peer\u2019 was here
chan_ooh323.c: In function \u2018ooh323_rtp_read\u2019:
chan_ooh323.c:3060: warning: assignment makes pointer from integer without a cast
chan_ooh323.c:3063: warning: assignment makes pointer from integer without a cast
chan_ooh323.c:3066: warning: assignment makes pointer from integer without a cast
chan_ooh323.c:3069: warning: assignment makes pointer from integer without a cast
chan_ooh323.c:3081: error: invalid operands to binary != (have \u2018union ast_frame_subclass\u2019 and \u2018format_t\u2019)
chan_ooh323.c:3083: error: incompatible types when assigning to type \u2018format_t\u2019 from type \u2018union ast_frame_subclass\u2019
make[1]: *** [chan_ooh323.o] Error 1
make[1]: Leaving directory `/usr/src/asterisk-addons-1.6.2.4/channels’
make: *** [channels] Error 2
[root@localhost asterisk-addons-1.6.2.4]#