make res_config_mysql.so
cc -fPIC -I../asterisk -D_GNU_SOURCE -c -o res_config_mysql.o res_config_mysql.c
res_config_mysql.c:41:30: error: asterisk/channel.h: No such file or directory
res_config_mysql.c:42:29: error: asterisk/logger.h: No such file or directory
res_config_mysql.c:43:29: error: asterisk/config.h: No such file or directory
res_config_mysql.c:44:29: error: asterisk/module.h: No such file or directory
res_config_mysql.c:45:27: error: asterisk/lock.h: No such file or directory
res_config_mysql.c:46:30: error: asterisk/options.h: No such file or directory
res_config_mysql.c:47:26: error: asterisk/cli.h: No such file or directory
res_config_mysql.c:48:28: error: asterisk/utils.h: No such file or directory
res_config_mysql.c:49:20: error: stdlib.h: No such file or directory
res_config_mysql.c:50:20: error: string.h: No such file or directory
res_config_mysql.c:51:19: error: mysql.h: No such file or directory
res_config_mysql.c:52:27: error: mysql_version.h: No such file or directory
res_config_mysql.c:53:20: error: errmsg.h: No such file or directory
res_config_mysql.c:57: warning: data definition has no type or storage class
res_config_mysql.c:57: warning: parameter names (without types) in function declaration
res_config_mysql.c:59: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'mysql'
res_config_mysql.c:67: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'connect_time'
res_config_mysql.c:73: warning: data definition has no type or storage class
res_config_mysql.c:75: warning: data definition has no type or storage class
res_config_mysql.c:81: error: variable 'cli_realtime_mysql_status' has initializer but incomplete type
res_config_mysql.c:82: error: extra brace group at end of initializer
res_config_mysql.c:82: error: (near initialization for 'cli_realtime_mysql_status')
res_config_mysql.c:82: error: 'NULL' undeclared here (not in a function)
res_config_mysql.c:82: warning: excess elements in struct initializer
res_config_mysql.c:82: warning: (near initialization for 'cli_realtime_mysql_status')
res_config_mysql.c:82: warning: excess elements in struct initializer
res_config_mysql.c:82: warning: (near initialization for 'cli_realtime_mysql_status')
res_config_mysql.c:83: warning: excess elements in struct initializer
res_config_mysql.c:83: warning: (near initialization for 'cli_realtime_mysql_status')
res_config_mysql.c:83: warning: excess elements in struct initializer
res_config_mysql.c:83: warning: (near initialization for 'cli_realtime_mysql_status')
res_config_mysql.c:83: warning: excess elements in struct initializer
res_config_mysql.c:83: warning: (near initialization for 'cli_realtime_mysql_status')
res_config_mysql.c:85: error: expected declaration specifiers or '...' before 'va_list'
res_config_mysql.c: In function 'realtime_mysql':
res_config_mysql.c:87: error: 'MYSQL_RES' undeclared (first use in this function)
res_config_mysql.c:87: error: (Each undeclared identifier is reported only once
res_config_mysql.c:87: error: for each function it appears in.)
res_config_mysql.c:87: error: 'result' undeclared (first use in this function)
res_config_mysql.c:88: error: 'MYSQL_ROW' undeclared (first use in this function)
res_config_mysql.c:88: error: expected ';' before 'row'
res_config_mysql.c:89: error: 'MYSQL_FIELD' undeclared (first use in this function)
res_config_mysql.c:89: error: 'fields' undeclared (first use in this function)
res_config_mysql.c:99: error: 'LOG_WARNING' undeclared (first use in this function)
res_config_mysql.c:104: error: 'ap' undeclared (first use in this function)
res_config_mysql.c:104: error: expected expression before 'const'
res_config_mysql.c:104: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:105: error: expected expression before 'const'
res_config_mysql.c:105: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:108: error: 'mysql' undeclared (first use in this function)
res_config_mysql.c:115: warning: incompatible implicit declaration of built-in function 'strchr'
res_config_mysql.c:117: warning: incompatible implicit declaration of built-in function 'snprintf'
res_config_mysql.c:118: error: expected expression before 'const'
res_config_mysql.c:118: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:119: error: expected expression before 'const'
res_config_mysql.c:119: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:121: warning: incompatible implicit declaration of built-in function 'strlen'
res_config_mysql.c:125: error: 'LOG_DEBUG' undeclared (first use in this function)
res_config_mysql.c:128: error: 'mysql_lock' undeclared (first use in this function)
res_config_mysql.c:134: warning: incompatible implicit declaration of built-in function 'strlen'
res_config_mysql.c:146: error: 'row' undeclared (first use in this function)
res_config_mysql.c:150: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:153: error: dereferencing pointer to incomplete type
res_config_mysql.c:154: error: dereferencing pointer to incomplete type
res_config_mysql.c:155: error: dereferencing pointer to incomplete type
res_config_mysql.c:158: warning: assignment makes pointer from integer without a cast
res_config_mysql.c: At top level:
res_config_mysql.c:174: error: expected declaration specifiers or '...' before 'va_list'
res_config_mysql.c: In function 'realtime_multi_mysql':
res_config_mysql.c:176: error: 'MYSQL_RES' undeclared (first use in this function)
res_config_mysql.c:176: error: 'result' undeclared (first use in this function)
res_config_mysql.c:177: error: 'MYSQL_ROW' undeclared (first use in this function)
res_config_mysql.c:177: error: expected ';' before 'row'
res_config_mysql.c:178: error: 'MYSQL_FIELD' undeclared (first use in this function)
res_config_mysql.c:178: error: 'fields' undeclared (first use in this function)
res_config_mysql.c:186: error: storage size of 'ra' isn't known
res_config_mysql.c:192: error: 'LOG_WARNING' undeclared (first use in this function)
res_config_mysql.c:196: warning: incompatible implicit declaration of built-in function 'memset'
res_config_mysql.c:198: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:206: error: 'ap' undeclared (first use in this function)
res_config_mysql.c:206: error: expected expression before 'const'
res_config_mysql.c:206: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:207: error: expected expression before 'const'
res_config_mysql.c:207: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:210: error: 'mysql' undeclared (first use in this function)
res_config_mysql.c:214: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:215: warning: incompatible implicit declaration of built-in function 'strchr'
res_config_mysql.c:224: warning: incompatible implicit declaration of built-in function 'snprintf'
res_config_mysql.c:225: error: expected expression before 'const'
res_config_mysql.c:225: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:226: error: expected expression before 'const'
res_config_mysql.c:226: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:228: warning: incompatible implicit declaration of built-in function 'strlen'
res_config_mysql.c:232: warning: incompatible implicit declaration of built-in function 'strlen'
res_config_mysql.c:237: error: 'LOG_DEBUG' undeclared (first use in this function)
res_config_mysql.c:240: error: 'mysql_lock' undeclared (first use in this function)
res_config_mysql.c:246: warning: incompatible implicit declaration of built-in function 'strlen'
res_config_mysql.c:258: error: 'row' undeclared (first use in this function)
res_config_mysql.c:260: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:268: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:273: warning: assignment makes pointer from integer without a cast
res_config_mysql.c: At top level:
res_config_mysql.c:290: error: expected declaration specifiers or '...' before 'va_list'
res_config_mysql.c: In function 'update_mysql':
res_config_mysql.c:292: error: 'my_ulonglong' undeclared (first use in this function)
res_config_mysql.c:292: error: expected ';' before 'numrows'
res_config_mysql.c:297: error: 'LOG_WARNING' undeclared (first use in this function)
res_config_mysql.c:302: error: 'ap' undeclared (first use in this function)
res_config_mysql.c:302: error: expected expression before 'const'
res_config_mysql.c:302: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:303: error: expected expression before 'const'
res_config_mysql.c:303: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:306: error: 'mysql' undeclared (first use in this function)
res_config_mysql.c:313: warning: incompatible implicit declaration of built-in function 'snprintf'
res_config_mysql.c:314: error: expected expression before 'const'
res_config_mysql.c:314: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:315: error: expected expression before 'const'
res_config_mysql.c:315: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:316: warning: incompatible implicit declaration of built-in function 'strlen'
res_config_mysql.c:319: warning: incompatible implicit declaration of built-in function 'strlen'
res_config_mysql.c:321: error: 'LOG_DEBUG' undeclared (first use in this function)
res_config_mysql.c:324: error: 'mysql_lock' undeclared (first use in this function)
res_config_mysql.c:338: error: 'numrows' undeclared (first use in this function)
res_config_mysql.c: In function 'config_mysql':
res_config_mysql.c:357: error: 'MYSQL_RES' undeclared (first use in this function)
res_config_mysql.c:357: error: 'result' undeclared (first use in this function)
res_config_mysql.c:358: error: 'MYSQL_ROW' undeclared (first use in this function)
res_config_mysql.c:358: error: expected ';' before 'row'
res_config_mysql.c:359: error: 'my_ulonglong' undeclared (first use in this function)
res_config_mysql.c:359: error: expected ';' before 'num_rows'
res_config_mysql.c:372: error: 'LOG_WARNING' undeclared (first use in this function)
res_config_mysql.c:376: warning: incompatible implicit declaration of built-in function 'snprintf'
res_config_mysql.c:378: error: 'LOG_DEBUG' undeclared (first use in this function)
res_config_mysql.c:381: error: 'mysql_lock' undeclared (first use in this function)
res_config_mysql.c:387: error: 'mysql' undeclared (first use in this function)
res_config_mysql.c:387: warning: incompatible implicit declaration of built-in function 'strlen'
res_config_mysql.c:396: error: 'num_rows' undeclared (first use in this function)
res_config_mysql.c:402: error: 'row' undeclared (first use in this function)
res_config_mysql.c:413: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:418: warning: incompatible implicit declaration of built-in function 'strcpy'
res_config_mysql.c:422: warning: assignment makes pointer from integer without a cast
res_config_mysql.c: At top level:
res_config_mysql.c:435: error: variable 'mysql_engine' has initializer but incomplete type
res_config_mysql.c:436: error: unknown field 'name' specified in initializer
res_config_mysql.c:436: warning: excess elements in struct initializer
res_config_mysql.c:436: warning: (near initialization for 'mysql_engine')
res_config_mysql.c:437: error: unknown field 'load_func' specified in initializer
res_config_mysql.c:437: warning: excess elements in struct initializer
res_config_mysql.c:437: warning: (near initialization for 'mysql_engine')
res_config_mysql.c:438: error: unknown field 'realtime_func' specified in initializer
res_config_mysql.c:438: warning: excess elements in struct initializer
res_config_mysql.c:438: warning: (near initialization for 'mysql_engine')
res_config_mysql.c:439: error: unknown field 'realtime_multi_func' specified in initializer
res_config_mysql.c:439: warning: excess elements in struct initializer
res_config_mysql.c:439: warning: (near initialization for 'mysql_engine')
res_config_mysql.c:440: error: unknown field 'update_func' specified in initializer
res_config_mysql.c:441: warning: excess elements in struct initializer
res_config_mysql.c:441: warning: (near initialization for 'mysql_engine')
res_config_mysql.c: In function 'load_module':
res_config_mysql.c:447: error: 'mysql_lock' undeclared (first use in this function)
res_config_mysql.c:450: error: 'LOG_WARNING' undeclared (first use in this function)
res_config_mysql.c:451: error: 'LOG_DEBUG' undeclared (first use in this function)
res_config_mysql.c:451: error: 'mysql' undeclared (first use in this function)
res_config_mysql.c:455: error: 'option_verbose' undeclared (first use in this function)
res_config_mysql.c: In function 'unload_module':
res_config_mysql.c:468: error: 'mysql_lock' undeclared (first use in this function)
res_config_mysql.c:470: error: 'mysql' undeclared (first use in this function)
res_config_mysql.c:473: error: 'option_verbose' undeclared (first use in this function)
res_config_mysql.c:477: error: 'STANDARD_HANGUP_LOCALUSERS' undeclared (first use in this function)
res_config_mysql.c: In function 'reload':
res_config_mysql.c:488: error: 'mysql_lock' undeclared (first use in this function)
res_config_mysql.c:490: error: 'mysql' undeclared (first use in this function)
res_config_mysql.c:495: error: 'LOG_WARNING' undeclared (first use in this function)
res_config_mysql.c:496: error: 'LOG_DEBUG' undeclared (first use in this function)
res_config_mysql.c:499: error: 'VERBOSE_PREFIX_2' undeclared (first use in this function)
res_config_mysql.c:499: error: expected ')' before string constant
res_config_mysql.c: In function 'parse_config':
res_config_mysql.c:512: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:515: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:516: error: 'LOG_WARNING' undeclared (first use in this function)
res_config_mysql.c:517: warning: incompatible implicit declaration of built-in function 'strncpy'
res_config_mysql.c:519: warning: incompatible implicit declaration of built-in function 'strncpy'
res_config_mysql.c:522: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:524: warning: incompatible implicit declaration of built-in function 'strncpy'
res_config_mysql.c:526: warning: incompatible implicit declaration of built-in function 'strncpy'
res_config_mysql.c:529: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:533: warning: incompatible implicit declaration of built-in function 'strncpy'
res_config_mysql.c:536: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:538: warning: incompatible implicit declaration of built-in function 'strncpy'
res_config_mysql.c:540: warning: incompatible implicit declaration of built-in function 'strncpy'
res_config_mysql.c:543: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:550: warning: assignment makes pointer from integer without a cast
res_config_mysql.c:552: warning: incompatible implicit declaration of built-in function 'strncpy'
res_config_mysql.c:554: warning: incompatible implicit declaration of built-in function 'strncpy'
res_config_mysql.c:560: error: 'LOG_DEBUG' undeclared (first use in this function)
res_config_mysql.c: In function 'usecount':
res_config_mysql.c:579: error: 'mysql_lock' undeclared (first use in this function)
res_config_mysql.c:580: error: 'LOG_DEBUG' undeclared (first use in this function)
res_config_mysql.c: In function 'key':
res_config_mysql.c:589: error: 'ASTERISK_GPL_KEY' undeclared (first use in this function)
res_config_mysql.c: In function 'mysql_reconnect':
res_config_mysql.c:604: error: 'mysql' undeclared (first use in this function)
res_config_mysql.c:605: error: 'LOG_WARNING' undeclared (first use in this function)
res_config_mysql.c:610: error: 'LOG_DEBUG' undeclared (first use in this function)
res_config_mysql.c:612: error: 'connect_time' undeclared (first use in this function)
res_config_mysql.c:615: error: 'LOG_ERROR' undeclared (first use in this function)
res_config_mysql.c: In function 'realtime_mysql_status':
res_config_mysql.c:644: error: 'connect_time' undeclared (first use in this function)
res_config_mysql.c:648: warning: incompatible implicit declaration of built-in function 'snprintf'
res_config_mysql.c:650: warning: incompatible implicit declaration of built-in function 'snprintf'
res_config_mysql.c:652: warning: incompatible implicit declaration of built-in function 'snprintf'
res_config_mysql.c:656: warning: incompatible implicit declaration of built-in function 'snprintf'
res_config_mysql.c:671: error: 'RESULT_SUCCESS' undeclared (first use in this function)
res_config_mysql.c:673: error: 'RESULT_FAILURE' undeclared (first use in this function)
make: *** [res_config_mysql.o] Error 1