Summary:ASTERISK-16594: Can't compile
Reporter:Sébastien Cramatte (scramatte)Labels:
Date Opened:2010-08-19 14:22:51Date Closed:2011-06-07 14:04:58
Versions:Frequency of
Description:I can't compile asterisk-addons. Compilation stop on res_config_mysql with errors bellow :

[CC] res_config_mysql.c -> res_config_mysql.o
res_config_mysql.c:1368: error: unknown field ‘update2_func’ specified in initializer
res_config_mysql.c: In function ‘parse_config’:
res_config_mysql.c:1433: error: ‘CONFIG_STATUS_FILEMISSING’ undeclared (first use in this function)
res_config_mysql.c:1433: error: (Each undeclared identifier is reported only once
res_config_mysql.c:1433: error: for each function it appears in.)
res_config_mysql.c:1437: error: ‘CONFIG_STATUS_FILEINVALID’ undeclared (first use in this function)
make[1]: *** [res_config_mysql.o] Error 1
make[1]: se sale del directorio `/usr/src/asterisk-addons-'
make: *** [res] Error 2


Platform: x86_64
OS: Linux Debian Squeeze
Kernel: 2.6.26
Comments:By: Jason Parker (jparker) 2010-08-19 14:27:17

What version of Asterisk do you have installed?

By: Sébastien Cramatte (scramatte) 2010-08-19 14:29:20

I'm running and I'm want to upgrade to
I've just compile without issues.

By: Jason Parker (jparker) 2010-08-19 14:40:10

You need to use the same major version (1.6.2.X) of asterisk and asterisk-addons.

By: Sébastien Cramatte (scramatte) 2010-08-19 14:43:58

Do you mean that I must install and run the new version before compile the addons ?

My Asterisk install requires Mysql module and would like to minimize downtime !

I've just compiled without issues.
My plan was to build both Asterisk+Addons and install them.

I've upgraded my Asterisk many times and I've never got this issue ...

By: Jason Parker (jparker) 2010-08-19 14:49:29

You need to first install the correct version of Asterisk.