[asterisk-users] Problems compiling res_config_mysql (asterisk
addons)
Bill Sandiford
bill at telnetcommunications.com
Wed May 23 12:34:38 MST 2007
Hello All:
I'm having some difficutly getting res_config_mysql from the 1.4.1 addons
package to compile ( I need it for Realtime)
First of all, when I make everything appears to compile ok with no errors
however the res_config_mysql doesn't get compiled. So I tried "make
res_config_mysql" and a whackload of errors starting with the following:
# make res_config_mysql
gcc -g -c -fPIC -o res_config_mysql.o res_config_mysql.c
res_config_mysql.c:55:25: mysql/mysql.h: No such file or directory
res_config_mysql.c:56:33: mysql/mysql_version.h: No such file or directory
res_config_mysql.c:57:26: mysql/errmsg.h: No such file or directory
ok .... so it can't find the mysql includes (MySQL 5.0.41 BTW). So I edited
the includes at the top of res_config_mysql.c so that the proper directory
of the includes was there
#include </usr/local/mysql/include/mysql/mysql.h>
#include </usr/local/mysql/include/mysql/mysql_version.h>
#include </usr/local/mysql/include/mysql/errmsg.h>
and now I get the result below....HELP please.
# make res_config_mysql
gcc -g -c -fPIC -o res_config_mysql.o res_config_mysql.c
gcc res_config_mysql.o -o res_config_mysql
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crt1.o(.text+0x18): In
function `_start':
: undefined reference to `main'
res_config_mysql.o(.text+0x4e): In function `realtime_mysql':
/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:100: undefined
reference to `ast_log'
res_config_mysql.o(.text+0xb5):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:108:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x181):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:126:
undefined reference to `mysql_real_escape_string'
res_config_mysql.o(.text+0x257):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:133:
undefined reference to `mysql_real_escape_string'
res_config_mysql.o(.text+0x2e4):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:138:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x310):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:141:
undefined reference to `mysql_real_query'
res_config_mysql.o(.text+0x33f):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:142:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x36d):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:143:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x382):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:144:
undefined reference to `mysql_error'
res_config_mysql.o(.text+0x3a7):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:144:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x3da):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:149:
undefined reference to `mysql_store_result'
res_config_mysql.o(.text+0x3f5):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:150:
undefined reference to `mysql_num_fields'
res_config_mysql.o(.text+0x406):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:151:
undefined reference to `mysql_fetch_fields'
res_config_mysql.o(.text+0x417):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:153:
undefined reference to `mysql_fetch_row'
res_config_mysql.o(.text+0x48f): In function `realtime_mysql':
/usr/include/asterisk/strings.h:34: undefined reference to `ast_strip'
res_config_mysql.o(.text+0x50c): In function `realtime_mysql':
/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:160: undefined
reference to `ast_variable_new'
res_config_mysql.o(.text+0x559):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:165:
undefined reference to `ast_variable_new'
res_config_mysql.o(.text+0x5a4):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:172:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x5c4):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:176:
undefined reference to `mysql_free_result'
res_config_mysql.o(.text+0x695): In function `realtime_multi_mysql':
/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:200: undefined
reference to `ast_log'
res_config_mysql.o(.text+0x6c2):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:206:
undefined reference to `ast_config_new'
res_config_mysql.o(.text+0x6f5):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:209:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x75f):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:217:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x770):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:218:
undefined reference to `ast_config_destroy'
res_config_mysql.o(.text+0x8e2):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:241:
undefined reference to `mysql_real_escape_string'
res_config_mysql.o(.text+0x9b8):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:248:
undefined reference to `mysql_real_escape_string'
res_config_mysql.o(.text+0xa98):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:258:
undefined reference to `ast_log'
res_config_mysql.o(.text+0xac4):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:261:
undefined reference to `mysql_real_query'
res_config_mysql.o(.text+0xaf3):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:262:
undefined reference to `ast_log'
res_config_mysql.o(.text+0xb21):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:263:
undefined reference to `ast_log'
res_config_mysql.o(.text+0xb36):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:264:
undefined reference to `mysql_error'
res_config_mysql.o(.text+0xb5b):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:264:
undefined reference to `ast_log'
res_config_mysql.o(.text+0xb7e):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:266:
undefined reference to `ast_config_destroy'
res_config_mysql.o(.text+0xb9f):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:270:
undefined reference to `mysql_store_result'
res_config_mysql.o(.text+0xbba):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:271:
undefined reference to `mysql_num_fields'
res_config_mysql.o(.text+0xbcb):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:272:
undefined reference to `mysql_fetch_fields'
res_config_mysql.o(.text+0xbdc):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:274:
undefined reference to `mysql_fetch_row'
res_config_mysql.o(.text+0xc05):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:276:
undefined reference to `ast_category_new'
res_config_mysql.o(.text+0xc3b):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:278:
undefined reference to `ast_log'
res_config_mysql.o(.text+0xcac): In function `realtime_multi_mysql':
/usr/include/asterisk/strings.h:34: undefined reference to `ast_strip'
res_config_mysql.o(.text+0xd3e): In function `realtime_multi_mysql':
/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:287: undefined
reference to `ast_category_rename'
res_config_mysql.o(.text+0xd64):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:289:
undefined reference to `ast_variable_new'
res_config_mysql.o(.text+0xd81):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:290:
undefined reference to `ast_variable_append'
res_config_mysql.o(.text+0xda7):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:294:
undefined reference to `ast_category_append'
res_config_mysql.o(.text+0xdd6):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:297:
undefined reference to `ast_log'
res_config_mysql.o(.text+0xdf6):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:301:
undefined reference to `mysql_free_result'
res_config_mysql.o(.text+0xe53): In function `update_mysql':
/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:315: undefined
reference to `ast_log'
res_config_mysql.o(.text+0xebd):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:323:
undefined reference to `ast_log'
res_config_mysql.o(.text+0xf62):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:339:
undefined reference to `mysql_real_escape_string'
res_config_mysql.o(.text+0x100d):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:345:
undefined reference to `mysql_real_escape_string'
res_config_mysql.o(.text+0x10b1):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:351:
undefined reference to `mysql_real_escape_string'
res_config_mysql.o(.text+0x1130):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:354:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x115c):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:357:
undefined reference to `mysql_real_query'
res_config_mysql.o(.text+0x118b):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:358:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x11b9):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:359:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x11ce):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:360:
undefined reference to `mysql_error'
res_config_mysql.o(.text+0x11f3):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:360:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x1223):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:365:
undefined reference to `mysql_affected_rows'
res_config_mysql.o(.text+0x1268):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:368:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x1337): In function `config_mysql':
/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:396: undefined
reference to `ast_log'
res_config_mysql.o(.text+0x1398):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:402:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x1409):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:411:
undefined reference to `mysql_real_query'
res_config_mysql.o(.text+0x1438):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:412:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x1466):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:413:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x147b):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:414:
undefined reference to `mysql_error'
res_config_mysql.o(.text+0x14a0):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:414:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x14d3):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:419:
undefined reference to `mysql_store_result'
res_config_mysql.o(.text+0x14ee):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:420:
undefined reference to `mysql_num_rows'
res_config_mysql.o(.text+0x1521):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:421:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x152f):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:426:
undefined reference to `mysql_fetch_row'
res_config_mysql.o(.text+0x1572):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:428:
undefined reference to `ast_config_internal_load'
res_config_mysql.o(.text+0x1584):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:429:
undefined reference to `mysql_free_result'
res_config_mysql.o(.text+0x15f0):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:437:
undefined reference to `ast_category_new'
res_config_mysql.o(.text+0x1620):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:439:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x1666):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:444:
undefined reference to `ast_category_append'
res_config_mysql.o(.text+0x1681):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:446:
undefined reference to `ast_variable_new'
res_config_mysql.o(.text+0x1695):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:447:
undefined reference to `ast_variable_append'
res_config_mysql.o(.text+0x16c4):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:450:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x16d2):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:453:
undefined reference to `mysql_free_result'
res_config_mysql.o(.text+0x175a): In function `load_module':
/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:474: undefined
reference to `ast_log'
res_config_mysql.o(.text+0x176f):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:475:
undefined reference to `mysql_error'
res_config_mysql.o(.text+0x1794):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:475:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x17a6):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:478:
undefined reference to `ast_config_engine_register'
res_config_mysql.o(.text+0x17af):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:479:
undefined reference to `option_verbose'
res_config_mysql.o(.text+0x17c3):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:480:
undefined reference to `ast_verbose'
res_config_mysql.o(.text+0x17d5):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:482:
undefined reference to `ast_cli_register'
res_config_mysql.o(.text+0x1828): In function `unload_module':
/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:494: undefined
reference to `mysql_close'
res_config_mysql.o(.text+0x183a):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:495:
undefined reference to `ast_cli_unregister'
res_config_mysql.o(.text+0x184c):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:496:
undefined reference to `ast_config_engine_deregister'
res_config_mysql.o(.text+0x1855):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:497:
undefined reference to `option_verbose'
res_config_mysql.o(.text+0x1869):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:498:
undefined reference to `ast_verbose'
res_config_mysql.o(.text+0x187c):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:501:
undefined reference to `__ast_module_user_hangup_all'
res_config_mysql.o(.text+0x18cf): In function `reload':
/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:514: undefined
reference to `mysql_close'
res_config_mysql.o(.text+0x1916):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:519:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x192b):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:520:
undefined reference to `mysql_error'
res_config_mysql.o(.text+0x1950):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:520:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x1962):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:523:
undefined reference to `ast_verbose'
res_config_mysql.o(.text+0x19a3): In function `parse_config':
/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:536: undefined
reference to `ast_config_load'
res_config_mysql.o(.text+0x19cc):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:539:
undefined reference to `ast_variable_retrieve'
res_config_mysql.o(.text+0x19fc):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:540:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x1a4c):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:546:
undefined reference to `ast_variable_retrieve'
res_config_mysql.o(.text+0x1a7c):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:547:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x1acc):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:553:
undefined reference to `ast_variable_retrieve'
res_config_mysql.o(.text+0x1afc):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:554:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x1b38):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:560:
undefined reference to `ast_variable_retrieve'
res_config_mysql.o(.text+0x1b68):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:561:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x1bb8):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:567:
undefined reference to `ast_variable_retrieve'
res_config_mysql.o(.text+0x1be8):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:568:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x1c24):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:574:
undefined reference to `ast_variable_retrieve'
res_config_mysql.o(.text+0x1c54):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:575:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x1c96):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:581:
undefined reference to `ast_config_destroy'
res_config_mysql.o(.text+0x1cc4):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:584:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x1cf1):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:585:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x1d1f):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:589:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x1d4d):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:590:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x1db9): In function `mysql_reconnect':
/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:603: undefined
reference to `ast_copy_string'
res_config_mysql.o(.text+0x1dcf):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:605:
undefined reference to `ast_copy_string'
res_config_mysql.o(.text+0x1dee):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:611:
undefined reference to `mysql_init'
res_config_mysql.o(.text+0x1e19):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:612:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x1e66):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:616:
undefined reference to `mysql_real_connect'
res_config_mysql.o(.text+0x1e91):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:622:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x1ecc):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:627:
undefined reference to `mysql_errno'
res_config_mysql.o(.text+0x1eff):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:627:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x1f14):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:628:
undefined reference to `mysql_error'
res_config_mysql.o(.text+0x1f27):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:628:
undefined reference to `mysql_errno'
res_config_mysql.o(.text+0x1f4c):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:628:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x1f74):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:635:
undefined reference to `mysql_ping'
res_config_mysql.o(.text+0x1f8e):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:635:
undefined reference to `mysql_ping'
res_config_mysql.o(.text+0x1fb5):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:637:
undefined reference to `mysql_errno'
res_config_mysql.o(.text+0x1fda):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:637:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x1fef):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:638:
undefined reference to `mysql_error'
res_config_mysql.o(.text+0x2002):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:638:
undefined reference to `mysql_errno'
res_config_mysql.o(.text+0x2027):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:638:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x204c):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:644:
undefined reference to `mysql_select_db'
res_config_mysql.o(.text+0x2069):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:645:
undefined reference to `mysql_errno'
res_config_mysql.o(.text+0x2092):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:645:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x20a7):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:646:
undefined reference to `mysql_errno'
res_config_mysql.o(.text+0x20ba):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:646:
undefined reference to `mysql_error'
res_config_mysql.o(.text+0x20df):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:646:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x210f):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:650:
undefined reference to `ast_log'
res_config_mysql.o(.text+0x22f1): In function `realtime_mysql_status':
/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:674: undefined
reference to `ast_cli'
res_config_mysql.o(.text+0x23d5):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:676:
undefined reference to `ast_cli'
res_config_mysql.o(.text+0x2484):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:678:
undefined reference to `ast_cli'
res_config_mysql.o(.text+0x24f4):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:680:
undefined reference to `ast_cli'
res_config_mysql.o(.text+0x251f):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:682:
undefined reference to `ast_cli'
res_config_mysql.o(.text+0x2565): In function `__reg_module':
/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:691: undefined
reference to `ast_module_register'
res_config_mysql.o(.text+0x258f): In function `__unreg_module':
/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:691: undefined
reference to `ast_module_unregister'
collect2: ld returned 1 exit status
make: *** [res_config_mysql] Error 1
Bill
More information about the asterisk-users
mailing list