Author Topic: compiling on asterisk 1.6.2.11  (Read 6541 times)

mwelch

  • Newbie
  • *
  • Offline Offline
  • Posts: 2
    • View Profile
    • Email
compiling on asterisk 1.6.2.11
« on: August 26, 2010, 06:34:12 AM »
Running through the instructions to install on our asterisk box to feed Call Accounting Mate, we get errors on the gmake.  This asterisk server is a yum install of asterisk on a Centos 5.4 OS.

Here's the errors we get:
[root@dtw-pbxprod01 Asterisk]# gmake
cdr_camate.c:27:30: error: asterisk/channel.h: No such file or directory
cdr_camate.c:28:26: error: asterisk/cdr.h: No such file or directory
cdr_camate.c:29:29: error: asterisk/module.h: No such file or directory
cdr_camate.c:30:29: error: asterisk/config.h: No such file or directory
cdr_camate.c:31:30: error: asterisk/options.h: No such file or directory
cdr_camate.c:32:29: error: asterisk/logger.h: No such file or directory
cdr_camate.c:33:26: error: asterisk/cli.h: No such file or directory
cdr_camate.c:34:27: error: asterisk/lock.h: No such file or directory
cdr_camate.c:35:28: error: asterisk/utils.h: No such file or directory
cdr_camate.c:95: warning: data definition has no type or storage class
cdr_camate.c:95: warning: type defaults to ‘int’ in declaration of ‘AST_MUTEX_DEFINE_STATIC’
cdr_camate.c:95: warning: parameter names (without types) in function declaration
cdr_camate.c: In function ‘cache_add’:
cdr_camate.c:121: warning: implicit declaration of function ‘ast_mutex_lock’
cdr_camate.c:121: error: ‘cache_lock’ undeclared (first use in this function)
cdr_camate.c:121: error: (Each undeclared identifier is reported only once
cdr_camate.c:121: error: for each function it appears in.)
cdr_camate.c:124: warning: implicit declaration of function ‘ast_mutex_unlock’
cdr_camate.c: In function ‘cli_cdr_status’:
cdr_camate.c:135: error: ‘RESULT_SUCCESS’ undeclared (first use in this function)
cdr_camate.c:138: warning: implicit declaration of function ‘ast_cli’
cdr_camate.c:146: error: ‘cache_lock’ undeclared (first use in this function)
cdr_camate.c: At top level:
cdr_camate.c:165: error: variable ‘cdr_status_cli’ has initializer but incomplete type
cdr_camate.c:166: error: extra brace group at end of initializer
cdr_camate.c:166: error: (near initialization for ‘cdr_status_cli’)
cdr_camate.c:166: warning: excess elements in struct initializer
cdr_camate.c:166: warning: (near initialization for ‘cdr_status_cli’)
cdr_camate.c:167: warning: excess elements in struct initializer
cdr_camate.c:167: warning: (near initialization for ‘cdr_status_cli’)
cdr_camate.c:168: warning: excess elements in struct initializer
cdr_camate.c:168: warning: (near initialization for ‘cdr_status_cli’)
cdr_camate.c:171: warning: excess elements in struct initializer
cdr_camate.c:171: warning: (near initialization for ‘cdr_status_cli’)
cdr_camate.c: In function ‘load_config’:
cdr_camate.c:181: warning: implicit declaration of function ‘ast_load’
cdr_camate.c:181: warning: assignment makes pointer from integer without a cast
cdr_camate.c:185: warning: implicit declaration of function ‘ast_variable_browse’
cdr_camate.c:185: warning: assignment makes pointer from integer without a cast
cdr_camate.c:187: warning: implicit declaration of function ‘ast_log’
cdr_camate.c:187: error: ‘LOG_WARNING’ undeclared (first use in this function)
cdr_camate.c:190: warning: implicit declaration of function ‘ast_variable_retrieve’
cdr_camate.c:190: warning: assignment makes pointer from integer without a cast
cdr_camate.c:192: warning: implicit declaration of function ‘ast_true’
cdr_camate.c:198: warning: assignment makes pointer from integer without a cast
cdr_camate.c:202: warning: assignment makes pointer from integer without a cast
cdr_camate.c:206: warning: assignment makes pointer from integer without a cast
cdr_camate.c:211: warning: assignment makes pointer from integer without a cast
cdr_camate.c:215: warning: assignment makes pointer from integer without a cast
cdr_camate.c:221: warning: assignment makes pointer from integer without a cast
cdr_camate.c:226: warning: implicit declaration of function ‘ast_destroy’
cdr_camate.c:228: error: ‘LOG_DEBUG’ undeclared (first use in this function)
cdr_camate.c: In function ‘open_log’:
cdr_camate.c:240: error: storage size of ‘ahp’ isn’t known
cdr_camate.c:242: warning: implicit declaration of function ‘ast_gethostbyname’
cdr_camate.c:242: warning: assignment makes pointer from integer without a cast
cdr_camate.c:244: error: ‘LOG_ERROR’ undeclared (first use in this function)
cdr_camate.c:247: error: invalid use of undefined type ‘struct sockaddr_in’
cdr_camate.c:247: error: dereferencing pointer to incomplete type
cdr_camate.c:247: error: invalid use of undefined type ‘struct sockaddr_in’
cdr_camate.c:248: error: invalid use of undefined type ‘struct sockaddr_in’
cdr_camate.c:248: warning: implicit declaration of function ‘htons’
cdr_camate.c:249: error: invalid use of undefined type ‘struct sockaddr_in’
cdr_camate.c:257: error: invalid application of ‘sizeof’ to incomplete type ‘struct sockaddr_in’
cdr_camate.c:240: warning: unused variable ‘ahp’
cdr_camate.c: In function ‘ack_log’:
cdr_camate.c:284: error: array type has incomplete element type
cdr_camate.c:286: error: ‘POLLIN’ undeclared (first use in this function)
cdr_camate.c:289: warning: implicit declaration of function ‘poll’
cdr_camate.c:291: error: ‘LOG_ERROR’ undeclared (first use in this function)
cdr_camate.c:293: error: ‘LOG_WARNING’ undeclared (first use in this function)
cdr_camate.c:298: error: ‘option_verbose’ undeclared (first use in this function)
cdr_camate.c:299: warning: implicit declaration of function ‘ast_verbose’
cdr_camate.c:306: error: ‘LOG_DEBUG’ undeclared (first use in this function)
cdr_camate.c:284: warning: unused variable ‘s’
cdr_camate.c: In function ‘send_log’:
cdr_camate.c:327: error: ‘option_verbose’ undeclared (first use in this function)
cdr_camate.c:331: error: ‘LOG_ERROR’ undeclared (first use in this function)
cdr_camate.c: At top level:
cdr_camate.c:346: warning: ‘struct ast_cdr’ declared inside parameter list
cdr_camate.c:346: warning: its scope is only this definition or declaration, which is probably not what you want
cdr_camate.c: In function ‘cdr_post’:
cdr_camate.c:370: error: invalid application of ‘sizeof’ to incomplete type ‘struct ast_cdr’
cdr_camate.c:377: error: dereferencing pointer to incomplete type
cdr_camate.c:378: error: dereferencing pointer to incomplete type
cdr_camate.c:379: error: dereferencing pointer to incomplete type
cdr_camate.c:380: error: dereferencing pointer to incomplete type
cdr_camate.c:381: error: dereferencing pointer to incomplete type
cdr_camate.c:382: error: dereferencing pointer to incomplete type
cdr_camate.c:383: error: dereferencing pointer to incomplete type
cdr_camate.c:384: error: dereferencing pointer to incomplete type
cdr_camate.c:385: error: dereferencing pointer to incomplete type
cdr_camate.c:386: error: dereferencing pointer to incomplete type
cdr_camate.c:387: error: dereferencing pointer to incomplete type
cdr_camate.c:388: error: dereferencing pointer to incomplete type
cdr_camate.c:389: error: dereferencing pointer to incomplete type
cdr_camate.c:390: error: dereferencing pointer to incomplete type
cdr_camate.c:391: warning: implicit declaration of function ‘ast_cdr_disp2str’
cdr_camate.c:391: error: dereferencing pointer to incomplete type
cdr_camate.c:392: warning: implicit declaration of function ‘ast_cdr_flags2str’
cdr_camate.c:392: error: dereferencing pointer to incomplete type
cdr_camate.c:393: error: dereferencing pointer to incomplete type
cdr_camate.c:394: error: dereferencing pointer to incomplete type
cdr_camate.c:396: warning: format ‘%s’ expects type ‘char *’, but argument 18 has type ‘int’
cdr_camate.c:396: warning: format ‘%s’ expects type ‘char *’, but argument 19 has type ‘int’
cdr_camate.c:396: warning: format ‘%s’ expects type ‘char *’, but argument 18 has type ‘int’
cdr_camate.c:396: warning: format ‘%s’ expects type ‘char *’, but argument 19 has type ‘int’
cdr_camate.c:398: error: ‘LOG_WARNING’ undeclared (first use in this function)
cdr_camate.c:409: error: ‘LOG_ERROR’ undeclared (first use in this function)
cdr_camate.c:421: error: ‘cache_lock’ undeclared (first use in this function)
cdr_camate.c: In function ‘load_module’:
cdr_camate.c:453: error: ‘LOG_DEBUG’ undeclared (first use in this function)
cdr_camate.c:459: warning: implicit declaration of function ‘ast_cdr_register’
cdr_camate.c:461: error: ‘LOG_ERROR’ undeclared (first use in this function)
cdr_camate.c:463: warning: implicit declaration of function ‘ast_cli_register’
cdr_camate.c:464: warning: implicit declaration of function ‘ast_mutex_init’
cdr_camate.c:464: error: ‘cache_lock’ undeclared (first use in this function)
cdr_camate.c: In function ‘unload_module’:
cdr_camate.c:471: warning: implicit declaration of function ‘ast_cli_unregister’
cdr_camate.c:472: warning: implicit declaration of function ‘ast_cdr_unregister’
cdr_camate.c:473: warning: implicit declaration of function ‘ast_mutex_destroy’
cdr_camate.c:473: error: ‘cache_lock’ undeclared (first use in this function)
cdr_camate.c: In function ‘key’:
cdr_camate.c:495: error: ‘ASTERISK_GPL_KEY’ undeclared (first use in this function)
gmake: *** [cdr_camate.o] Error 1
[root@dtw-pbxprod01 Asterisk]#

Tared the files in c:\bill\asterisk then moved to /usr/src/asterisk (this folder was created for this these files)

I have attempted this on two comparable asterisk servers with the same result for both.

Appreciate any help getting this compiled.  Thanks
« Last Edit: August 26, 2010, 06:36:46 AM by mwelch »

mwelch

  • Newbie
  • *
  • Offline Offline
  • Posts: 2
    • View Profile
    • Email
Re: compiling on asterisk 1.6.2.11
« Reply #1 on: September 07, 2010, 10:28:48 AM »
Can someone help me with this?  TIA