Error when compiling app_cbmysql.so on asterisk 1.6
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 07:24 AM.
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 06:52 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.