LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-13-2011, 06:23 AM   #1
digitaldude
LQ Newbie
 
Registered: Sep 2010
Posts: 20

Rep: Reputation: 0
Error when compiling app_cbmysql.so on asterisk 1.6


My asterisk version is 1.6 and Web-MeetMe is 4.0.2
I get the following upon issuing "make" in web-meetme/cbmysql/ :
Quote:
cc -pipe -I/usr/include/mysql -L/usr/lib/mysql -fPIC -I/usr/src/asterisk -D_GNU_SOURCE -I/usr/include/mysql -c -o app_cbmysql.o app_cbmysql.c
app_cbmysql.c:14:22: error: asterisk.h: No such file or directory
app_cbmysql.c:25:33: error: asterisk/autoconfig.h: No such file or directory
app_cbmysql.c:26:27: error: asterisk/lock.h: No such file or directory
app_cbmysql.c:27:27: error: asterisk/file.h: No such file or directory
app_cbmysql.c:28:26: error: asterisk/cli.h: No such file or directory
app_cbmysql.c:29:29: error: asterisk/config.h: No such file or directory
app_cbmysql.c:30:29: error: asterisk/logger.h: No such file or directory
app_cbmysql.c:31:30: error: asterisk/channel.h: No such file or directory
app_cbmysql.c:32:26: error: asterisk/pbx.h: No such file or directory
app_cbmysql.c:33:29: error: asterisk/module.h: No such file or directory
app_cbmysql.c:34:26: error: asterisk/app.h: No such file or directory
app_cbmysql.c:35:30: error: asterisk/options.h: No such file or directory
app_cbmysql.c:58: error: expected specifier-qualifier-list before âast_mutex_tâ
app_cbmysql.c:83: warning: âstruct ast_channelâ declared inside parameter list
app_cbmysql.c:83: warning: its scope is only this definition or declaration, which is probably not what you want
app_cbmysql.c:84: warning: âstruct ast_channelâ declared inside parameter list
app_cbmysql.c:86: warning: âstruct ast_channelâ declared inside parameter list
app_cbmysql.c: In function âcheckMaxâ:
app_cbmysql.c:103: warning: assignment makes pointer from integer without a cast
app_cbmysql.c:104: error: âLOG_WARNINGâ undeclared (first use in this function)
app_cbmysql.c:104: error: (Each undeclared identifier is reported only once
app_cbmysql.c:104: error: for each function it appears in.)
app_cbmysql.c:108: warning: passing argument 2 of âstrcpyâ makes pointer from integer without a cast
app_cbmysql.c:110: error: âLOG_NOTICEâ undeclared (first use in this function)
app_cbmysql.c:113: error: dereferencing pointer to incomplete type
app_cbmysql.c:117: error: âAST_DIGIT_ANYâ undeclared (first use in this function)
app_cbmysql.c:117: error: dereferencing pointer to incomplete type
app_cbmysql.c:121: error: dereferencing pointer to incomplete type
app_cbmysql.c:132: error: dereferencing pointer to incomplete type
app_cbmysql.c: In function âpassQueryâ:
app_cbmysql.c:150: error: âLOG_NOTICEâ undeclared (first use in this function)
app_cbmysql.c: In function âroomQueryâ:
app_cbmysql.c:193: error: âstruct handleâ has no member named âlockâ
app_cbmysql.c:194: error: âstruct handleâ has no member named âmysqlâ
app_cbmysql.c:195: error: âstruct handleâ has no member named âmysqlâ
app_cbmysql.c:200: error: âLOG_ERRORâ undeclared (first use in this function)
app_cbmysql.c:202: error: âstruct handleâ has no member named âlockâ
app_cbmysql.c:205: error: âstruct handleâ has no member named âmysqlâ
app_cbmysql.c:236: error: âstruct handleâ has no member named âlockâ
app_cbmysql.c:237: error: âstruct handleâ has no member named âmysqlâ
app_cbmysql.c:238: error: âstruct handleâ has no member named âmysqlâ
app_cbmysql.c:239: error: âstruct handleâ has no member named âlockâ
app_cbmysql.c:278: error: âstruct handleâ has no member named âlockâ
app_cbmysql.c:279: error: âstruct handleâ has no member named âmysqlâ
app_cbmysql.c:280: error: âstruct handleâ has no member named âmysqlâ
app_cbmysql.c:281: error: âstruct handleâ has no member named âlockâ
app_cbmysql.c:319: error: âstruct handleâ has no member named âlockâ
app_cbmysql.c:320: error: âstruct handleâ has no member named âmysqlâ
app_cbmysql.c:321: error: âstruct handleâ has no member named âmysqlâ
app_cbmysql.c:322: error: âstruct handleâ has no member named âlockâ
app_cbmysql.c:327: error: âLOG_NOTICEâ undeclared (first use in this function)
app_cbmysql.c: At top level:
app_cbmysql.c:340: warning: âstruct ast_channelâ declared inside parameter list
app_cbmysql.c: In function âenterConfâ:
app_cbmysql.c:363: error: âLOG_NOTICEâ undeclared (first use in this function)
app_cbmysql.c:369: error: dereferencing pointer to incomplete type
app_cbmysql.c:374: warning: assignment makes pointer from integer without a cast
app_cbmysql.c:375: error: âLOG_WARNINGâ undeclared (first use in this function)
app_cbmysql.c: At top level:
app_cbmysql.c:383: warning: âstruct ast_channelâ declared inside parameter list
app_cbmysql.c:384: error: conflicting types for âgetConfâ
app_cbmysql.c:83: error: previous declaration of âgetConfâ was here
app_cbmysql.c: In function âgetConfâ:
app_cbmysql.c:409: error: dereferencing pointer to incomplete type
app_cbmysql.c:417: error: dereferencing pointer to incomplete type
app_cbmysql.c:425: error: dereferencing pointer to incomplete type
app_cbmysql.c: At top level:
app_cbmysql.c:436: warning: âstruct ast_channelâ declared inside parameter list
app_cbmysql.c:437: error: conflicting types for âgetPassâ
app_cbmysql.c:84: error: previous declaration of âgetPassâ was here
app_cbmysql.c: In function âgetPassâ:
app_cbmysql.c:460: error: dereferencing pointer to incomplete type
app_cbmysql.c: At top level:
app_cbmysql.c:469: warning: âstruct ast_channelâ declared inside parameter list
app_cbmysql.c: In function âcb_execâ:
app_cbmysql.c:474: error: âAST_MAX_EXTENSIONâ undeclared (first use in this function)
app_cbmysql.c:483: warning: assignment makes pointer from integer without a cast
app_cbmysql.c:506: warning: passing argument 1 of âgetConfâ from incompatible pointer type
app_cbmysql.c:507: error: âLOG_NOTICEâ undeclared (first use in this function)
app_cbmysql.c:512: warning: passing argument 1 of âgetPassâ from incompatible pointer type
app_cbmysql.c:534: warning: passing argument 1 of âcheckMaxâ from incompatible pointer type
app_cbmysql.c:537: warning: passing argument 1 of âenterConfâ from incompatible pointer type
app_cbmysql.c: In function âcomplete_cmbysql_statusâ:
app_cbmysql.c:548: warning: return makes pointer from integer without a cast
app_cbmysql.c: At top level:
app_cbmysql.c:551: warning: âstruct ast_cli_argsâ declared inside parameter list
app_cbmysql.c:551: warning: âstruct ast_cli_entryâ declared inside parameter list
app_cbmysql.c: In function âhandle_cb_mysql_statusâ:
app_cbmysql.c:554: error: âCLI_INITâ undeclared (first use in this function)
app_cbmysql.c:555: error: dereferencing pointer to incomplete type
app_cbmysql.c:556: error: dereferencing pointer to incomplete type
app_cbmysql.c:559: error: âCLI_GENERATEâ undeclared (first use in this function)
app_cbmysql.c:560: error: dereferencing pointer to incomplete type
app_cbmysql.c:560: error: dereferencing pointer to incomplete type
app_cbmysql.c:560: error: dereferencing pointer to incomplete type
app_cbmysql.c:560: error: dereferencing pointer to incomplete type
app_cbmysql.c:576: error: dereferencing pointer to incomplete type
app_cbmysql.c:578: error: dereferencing pointer to incomplete type
app_cbmysql.c:580: error: dereferencing pointer to incomplete type
app_cbmysql.c:582: error: dereferencing pointer to incomplete type
app_cbmysql.c:584: error: dereferencing pointer to incomplete type
app_cbmysql.c:587: error: dereferencing pointer to incomplete type
app_cbmysql.c:589: error: dereferencing pointer to incomplete type
app_cbmysql.c:590: error: âCLI_SUCCESSâ undeclared (first use in this function)
app_cbmysql.c:592: error: dereferencing pointer to incomplete type
app_cbmysql.c:593: error: âCLI_FAILUREâ undeclared (first use in this function)
app_cbmysql.c: At top level:
app_cbmysql.c:597: error: array type has incomplete element type
app_cbmysql.c: In function âload_configâ:
app_cbmysql.c:607: error: variable âconfig_flagsâ has initializer but incomplete type
app_cbmysql.c:607: warning: excess elements in struct initializer
app_cbmysql.c:607: warning: (near initialization for âconfig_flagsâ)
app_cbmysql.c:607: error: storage size of âconfig_flagsâ isnât known
app_cbmysql.c:609: warning: assignment makes pointer from integer without a cast
app_cbmysql.c:611: error: âLOG_WARNINGâ undeclared (first use in this function)
app_cbmysql.c:615: warning: assignment makes pointer from integer without a cast
app_cbmysql.c:620: warning: assignment makes pointer from integer without a cast
app_cbmysql.c:627: error: âLOG_ERRORâ undeclared (first use in this function)
app_cbmysql.c:642: warning: assignment makes pointer from integer without a cast
app_cbmysql.c:664: warning: assignment makes pointer from integer without a cast
app_cbmysql.c:685: warning: assignment makes pointer from integer without a cast
app_cbmysql.c:700: warning: assignment makes pointer from integer without a cast
app_cbmysql.c:722: warning: assignment makes pointer from integer without a cast
app_cbmysql.c:730: warning: assignment makes pointer from integer without a cast
app_cbmysql.c:736: warning: assignment makes pointer from integer without a cast
app_cbmysql.c:749: warning: assignment makes pointer from integer without a cast
app_cbmysql.c:763: warning: assignment makes pointer from integer without a cast
app_cbmysql.c:783: warning: assignment makes pointer from integer without a cast
app_cbmysql.c:803: warning: assignment makes pointer from integer without a cast
app_cbmysql.c:809: warning: assignment makes pointer from integer without a cast
app_cbmysql.c:818: error: âoption_debugâ undeclared (first use in this function)
app_cbmysql.c:819: error: âLOG_DEBUGâ undeclared (first use in this function)
app_cbmysql.c:840: error: âstruct handleâ has no member named âlockâ
app_cbmysql.c:841: error: âstruct handleâ has no member named âmysqlâ
app_cbmysql.c:843: error: âstruct handleâ has no member named âmysqlâ
app_cbmysql.c:848: error: âLOG_NOTICEâ undeclared (first use in this function)
app_cbmysql.c:853: error: âstruct handleâ has no member named âlockâ
app_cbmysql.c: In function âload_moduleâ:
app_cbmysql.c:877: error: âAST_MODULE_LOAD_DECLINEâ undeclared (first use in this function)
app_cbmysql.c: At top level:
app_cbmysql.c:892: error: expected â)â before string constant
make: *** [app_cbmysql.o] Error 1
Please guide me to the solution
Thanks.

Last edited by digitaldude; 01-13-2011 at 06:24 AM.
 
Old 01-13-2011, 08:12 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
asterisk.h: No such file or directory
You will have to install the asterisk-devel package.

Package name Fedora, CentOS : asterisk-devel
Package name Debian, Ubuntu : asterisk-dev

..
 
Old 01-14-2011, 12:44 AM   #3
digitaldude
LQ Newbie
 
Registered: Sep 2010
Posts: 20

Original Poster
Rep: Reputation: 0
Well, I installed it on another fresh asterisk installation.... webmeetme was compiled/installed.
BUT whenever I try to run any cbmysql command within asterisk, it says 'segmentation faut' and crashes.

what could be the reason?

Last edited by digitaldude; 01-14-2011 at 05:52 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Asterisk compile error make: *** [makeopts] Error 1 crmexclusive Debian 3 02-24-2012 06:33 PM
asterisk error karuchua Linux - Newbie 1 05-31-2010 10:49 AM
CentOS-Asterisk- /var/spool/asterisk/monitor How to decipher who's call is who's? tananthulus Linux - Newbie 2 12-08-2009 04:50 AM
SOP For New Installation (All Distros) SSTwinrova Linux - Security 1 10-10-2004 05:41 AM
Is compiling/recompiling the kernel SOP? bxb32001 Linux - General 9 06-25-2001 03:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration