Hello I am trying to get asterisk-addons installed so that I can use the mysql cdr feature. OK, I have the MySQL server (mysqld) installed, but I noticed that mysql-devel is also required. I tried to compile asterisk-addons and got a: --CUT--- res_config_mysql.c:422: error: unknown field `realtime_multi_func' specified in initializer res_config_mysql.c:422: warning: excess elements in struct initializer res_config_mysql.c:422: warning: (near initialization for `mysql_engine') res_config_mysql.c:423: error: unknown field `update_func' specified in initializer res_config_mysql.c:424: warning: excess elements in struct initializer res_config_mysql.c:424: warning: (near initialization for `mysql_engine') res_config_mysql.c: In function `parse_config': res_config_mysql.c:491: warning: assignment makes pointer from integer without a cast /usr/include/asterisk/utils.h: At top level: res_config_mysql.c:418: error: storage size of `mysql_engine' isn't known make: *** [res_config_mysql.o] Error 1 root@allman:/usr/src/asterisk-addons# So I'm assuming that I need mysql-devel? I went to download the package from mysql.com, but the only format I saw was .rpm. I am using Slackware 10.0 so rpm doesnt want to work well. I get the following: rpm -Uvh MySQL-devel-4.1.9-0.i386.rpm warning: MySQL-devel-4.1.9-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5 error: Failed dependencies: /bin/sh is needed by MySQL-devel-4.1.9-0 Does anyone have any suggestions or help they could offer? Thanks in advance.. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050130/2c7df9e4/attachment.htm
Mike Machado
2005-Jan-30 21:24 UTC
[Asterisk-Users] Slackware + Asterisk + asterisk-addons
There were some changes recently to the internal structure of the realtime config. Make sure you have the latest CVS copy of both asterisk and asterisk-addons and it should fix the compile error with res_config_mysql. On Sun, 2005-01-30 at 23:16 -0500, Bobby Lacey wrote:> Hello > > I am trying to get asterisk-addons installed so that I can use the > mysql cdr feature. OK, I have the MySQL server (mysqld) installed, but > I noticed that mysql-devel is also required. I tried to compile > asterisk-addons and got a: > > --CUT--- > res_config_mysql.c:422: error: unknown field `realtime_multi_func' > specified in initializer > res_config_mysql.c:422: warning: excess elements in struct initializer > res_config_mysql.c:422: warning: (near initialization for > `mysql_engine') > res_config_mysql.c:423: error: unknown field `update_func' specified > in initializer > res_config_mysql.c:424: warning: excess elements in struct initializer > res_config_mysql.c:424: warning: (near initialization for > `mysql_engine') > res_config_mysql.c: In function `parse_config': > res_config_mysql.c:491: warning: assignment makes pointer from integer > without a cast > /usr/include/asterisk/utils.h: At top level: > res_config_mysql.c:418: error: storage size of `mysql_engine' isn't > known > make: *** [res_config_mysql.o] Error 1 > root@allman:/usr/src/asterisk-addons# > > > So I'm assuming that I need mysql-devel? I went to download the > package from mysql.com, but the only format I saw was .rpm. I am using > Slackware 10.0 so rpm doesnt want to work well. I get the following: > > rpm -Uvh MySQL-devel-4.1.9-0.i386.rpm > warning: MySQL-devel-4.1.9-0.i386.rpm: V3 DSA signature: NOKEY, key ID > 5072e1f5 > error: Failed dependencies: > /bin/sh is needed by MySQL-devel-4.1.9-0 > > > Does anyone have any suggestions or help they could offer? > > Thanks in advance.. > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users