Problem app_dbquery/res_mysqlpool

Pepsiman

Neuer User
Mitglied seit
7 Jun 2006
Beiträge
52
Punkte für Reaktionen
0
Punkte
0
HiHo.
Ich habe ein Problem beim kompilieren von app_dbquery und res_mysqlspool.
Ich nutze Debian 4.0 und brauche die beiden Extra-Module um auf diese weise auf die Mysql-DB zuzugreifen. Die Asteriskversion ist 1.2.13.

Ich habe die Datei MysqlPool-1.2 gesaugt und entpackt.
Beim kompilieren gehts los:
Da ich Asterisk über Aptitude installiert hab, weiß ich nicht so recht, wie ich an die Asterisk-Installationsfiles komme, die angeblich fürs komplilieren gebraucht werden. Ich wollte aushelfen indem ich einfach Asterisk-1.2.13 gesaugt, entpackt hab und dann den Pfad in der Makefile darauf hab zeigen lassen, aber ohne Erfolg :confused:.

Compilieren von app_dbquery
Code:
rechner-04:~/MysqlPool-1.2/app_dbquery# make
make: mysql_config: Kommando nicht gefunden
gcc -pipe  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g  -Iinclude -I../include  -D_REENTRANT -D_GNU_SOURCE  -O6    -DUSE_CVS -DZAPTEL_OPTIMIZATIONS       -fPIC -c -o app_dbquery.o app_dbquery.c
app_dbquery.c:19:28: error: asterisk/utils.h: Datei oder Verzeichnis nicht gefunden
app_dbquery.c:20:27: error: asterisk/lock.h: Datei oder Verzeichnis nicht gefunden
app_dbquery.c:21:29: error: asterisk/logger.h: Datei oder Verzeichnis nicht gefunden
app_dbquery.c:22:30: error: asterisk/channel.h: Datei oder Verzeichnis nicht gefunden
app_dbquery.c:23:26: error: asterisk/pbx.h: Datei oder Verzeichnis nicht gefunden
app_dbquery.c:24:29: error: asterisk/module.h: Datei oder Verzeichnis nicht gefunden
app_dbquery.c:25:29: error: asterisk/config.h: Datei oder Verzeichnis nicht gefunden
app_dbquery.c:26:26: error: asterisk/cli.h: Datei oder Verzeichnis nicht gefunden
app_dbquery.c:27:26: error: asterisk/app.h: Datei oder Verzeichnis nicht gefunden
app_dbquery.c:28:32: error: asterisk/localtime.h: Datei oder Verzeichnis nicht gefunden
app_dbquery.c:30:19: error: mysql.h: Datei oder Verzeichnis nicht gefunden
In file included from app_dbquery.c:32:
../res_mysqlpool/res_mysqlpool.h:13: error: expected specifier-qualifier-list before âMYSQLâ
../res_mysqlpool/res_mysqlpool.h:34: error: expected specifier-qualifier-list before âast_mutex_tâ
../res_mysqlpool/res_mysqlpool.h:54: warning: function declaration isnât a prototype
app_dbquery.c:70: warning: data definition has no type or storage class
app_dbquery.c:70: warning: type defaults to âintâ in declaration of âAST_MUTEX_DEFINE_STATICâ
app_dbquery.c:70: warning: parameter names (without types) in function declaration
app_dbquery.c:72: warning: data definition has no type or storage class
app_dbquery.c:72: warning: type defaults to âintâ in declaration of âSTANDARD_LOCAL_USERâ
app_dbquery.c:74: warning: data definition has no type or storage class
app_dbquery.c:74: warning: type defaults to âintâ in declaration of âLOCAL_USER_DECLâ
app_dbquery.c:77: warning: âstruct ast_channelâ declared inside parameter list
app_dbquery.c:77: warning: its scope is only this definition or declaration, which is probably not what you want
app_dbquery.c: In function âprocess_queryâ:
app_dbquery.c:85: error: âMYSQL_RESâ undeclared (first use in this function)
app_dbquery.c:85: error: (Each undeclared identifier is reported only once
app_dbquery.c:85: error: for each function it appears in.)
app_dbquery.c:85: error: âresultâ undeclared (first use in this function)
app_dbquery.c:86: error: âMYSQL_ROWâ undeclared (first use in this function)
app_dbquery.c:86: error: expected â;â before ârowâ
app_dbquery.c:90: warning: implicit declaration of function âmemsetâ
app_dbquery.c:90: warning: incompatible implicit declaration of built-in function âmemsetâ
app_dbquery.c:96: warning: implicit declaration of function âstrchrâ
app_dbquery.c:96: warning: incompatible implicit declaration of built-in function âstrchrâ
app_dbquery.c:102: warning: implicit declaration of function âstrstrâ
app_dbquery.c:102: warning: incompatible implicit declaration of built-in function âstrstrâ
app_dbquery.c:105: warning: implicit declaration of function âstrcatâ
app_dbquery.c:105: warning: incompatible implicit declaration of built-in function âstrcatâ
app_dbquery.c:111: warning: incompatible implicit declaration of built-in function âstrcatâ
app_dbquery.c:112: warning: implicit declaration of function âast_logâ
app_dbquery.c:112: error: âLOG_DEBUGâ undeclared (first use in this function)
app_dbquery.c:117: error: âLOG_NOTICEâ undeclared (first use in this function)
app_dbquery.c:119: warning: implicit declaration of function âpbx_builtin_setvar_helperâ
app_dbquery.c:122: warning: implicit declaration of function âmysql_queryâ
app_dbquery.c:122: error: âTMysqlConnectionâ has no member named âmysqlâ
app_dbquery.c:123: warning: implicit declaration of function âmysql_errorâ
app_dbquery.c:123: error: âTMysqlConnectionâ has no member named âmysqlâ
app_dbquery.c:131: warning: implicit declaration of function âmysql_store_resultâ
app_dbquery.c:131: error: âTMysqlConnectionâ has no member named âmysqlâ
app_dbquery.c:134: warning: implicit declaration of function âmysql_next_resultâ
app_dbquery.c:134: error: âTMysqlConnectionâ has no member named âmysqlâ
app_dbquery.c:138: warning: implicit declaration of function âmysql_num_rowsâ
app_dbquery.c:139: warning: implicit declaration of function âmysql_free_resultâ
app_dbquery.c:140: error: âTMysqlConnectionâ has no member named âmysqlâ
app_dbquery.c:151: warning: format â%lloâ expects type âlong long unsigned intâ, but argument 3 has type âintâ
app_dbquery.c:156: error: ârowâ undeclared (first use in this function)
app_dbquery.c:156: warning: implicit declaration of function âmysql_fetch_rowâ
app_dbquery.c:161: warning: incompatible implicit declaration of built-in function âstrchrâ
app_dbquery.c:167: warning: implicit declaration of function âmysql_num_fieldsâ
app_dbquery.c: In function âget_queryâ:
app_dbquery.c:186: warning: implicit declaration of function âast_mutex_lockâ
app_dbquery.c:186: error: âquery_mutexâ undeclared (first use in this function)
app_dbquery.c:191: warning: implicit declaration of function âstrcasecmpâ
app_dbquery.c:192: warning: implicit declaration of function âstrdupâ
app_dbquery.c:192: warning: incompatible implicit declaration of built-in function âstrdupâ
app_dbquery.c:197: warning: implicit declaration of function âast_mutex_unlockâ
app_dbquery.c: At top level:
app_dbquery.c:200: warning: âstruct ast_channelâ declared inside parameter list
app_dbquery.c: In function âdbquery_execâ:
app_dbquery.c:206: warning: implicit declaration of function âLOCAL_USER_ADDâ
app_dbquery.c:209: warning: implicit declaration of function âast_strdupaâ
app_dbquery.c:209: warning: assignment makes pointer from integer without a cast
app_dbquery.c:210: error: âLOG_WARNINGâ undeclared (first use in this function)
app_dbquery.c:215: warning: incompatible implicit declaration of built-in function âstrchrâ
app_dbquery.c:253: error: âLOG_DEBUGâ undeclared (first use in this function)
app_dbquery.c:254: warning: passing argument 4 of âprocess_queryâ from incompatible pointer type
app_dbquery.c:262: warning: implicit declaration of function âLOCAL_USER_REMOVEâ
app_dbquery.c: At top level:
app_dbquery.c:266: warning: âstruct ast_cdrâ declared inside parameter list
app_dbquery.c: In function âgetTokkenValueâ:
app_dbquery.c:271: warning: incompatible implicit declaration of built-in function âmemsetâ
app_dbquery.c:276: warning: implicit declaration of function âstrncmpâ
app_dbquery.c:278: warning: implicit declaration of function âast_cdr_getvarâ
app_dbquery.c:285: warning: implicit declaration of function âstrcpyâ
app_dbquery.c:285: warning: incompatible implicit declaration of built-in function âstrcpyâ
app_dbquery.c: At top level:
app_dbquery.c:289: warning: âstruct ast_cdrâ declared inside parameter list
app_dbquery.c: In function âcdr_execâ:
app_dbquery.c:315: error: âLOG_ERRORâ undeclared (first use in this function)
app_dbquery.c:315: error: dereferencing pointer to incomplete type
app_dbquery.c:321: warning: incompatible implicit declaration of built-in function âmemsetâ
app_dbquery.c:322: warning: incompatible implicit declaration of built-in function âstrdupâ
app_dbquery.c:324: warning: incompatible implicit declaration of built-in function âstrchrâ
app_dbquery.c:334: warning: incompatible implicit declaration of built-in function âstrcatâ
app_dbquery.c:337: warning: passing argument 3 of âgetTokkenValueâ from incompatible pointer type
app_dbquery.c:339: warning: implicit declaration of function âstrlenâ
app_dbquery.c:339: warning: incompatible implicit declaration of built-in function âstrlenâ
app_dbquery.c:341: warning: implicit declaration of function âmysql_escape_stringâ
app_dbquery.c:358: warning: incompatible implicit declaration of built-in function âstrcatâ
app_dbquery.c:359: error: âLOG_DEBUGâ undeclared (first use in this function)
app_dbquery.c:363: warning: implicit declaration of function âmysql_real_queryâ
app_dbquery.c:363: error: âTMysqlConnectionâ has no member named âmysqlâ
app_dbquery.c:363: warning: incompatible implicit declaration of built-in function âstrlenâ
app_dbquery.c:365: error: dereferencing pointer to incomplete type
app_dbquery.c:365: error: âTMysqlConnectionâ has no member named âmysqlâ
app_dbquery.c: In function âload_configâ:
app_dbquery.c:386: warning: implicit declaration of function âast_config_loadâ
app_dbquery.c:386: warning: assignment makes pointer from integer without a cast
app_dbquery.c:388: error: âLOG_NOTICEâ undeclared (first use in this function)
app_dbquery.c:391: warning: implicit declaration of function âast_category_existâ
app_dbquery.c:393: warning: implicit declaration of function âast_config_destroyâ
app_dbquery.c:396: error: âquery_mutexâ undeclared (first use in this function)
app_dbquery.c:398: warning: implicit declaration of function âast_variable_browseâ
app_dbquery.c:398: warning: assignment makes pointer from integer without a cast
app_dbquery.c:398: error: dereferencing pointer to incomplete type
app_dbquery.c:402: warning: incompatible implicit declaration of built-in function âstrdupâ
app_dbquery.c:402: error: dereferencing pointer to incomplete type
app_dbquery.c:403: error: dereferencing pointer to incomplete type
app_dbquery.c:415: error: âLOG_DEBUGâ undeclared (first use in this function)
app_dbquery.c:420: warning: implicit declaration of function âast_variable_retrieveâ
app_dbquery.c:420: warning: assignment makes pointer from integer without a cast
app_dbquery.c:429: warning: assignment makes pointer from integer without a cast
app_dbquery.c:437: warning: incompatible implicit declaration of built-in function âstrdupâ
app_dbquery.c:438: warning: assignment makes pointer from integer without a cast
app_dbquery.c: In function âfree_configâ:
app_dbquery.c:454: error: âquery_mutexâ undeclared (first use in this function)
app_dbquery.c: At top level:
app_dbquery.c:484: warning: no previous prototype for âunload_moduleâ
app_dbquery.c: In function âunload_moduleâ:
app_dbquery.c:485: error: âSTANDARD_HANGUP_LOCALUSERSâ undeclared (first use in this function)
app_dbquery.c:489: warning: implicit declaration of function âast_unregister_applicationâ
app_dbquery.c:492: warning: implicit declaration of function âast_cdr_unregisterâ
app_dbquery.c: At top level:
app_dbquery.c:500: warning: no previous prototype for âload_moduleâ
app_dbquery.c: In function âload_moduleâ:
app_dbquery.c:506: warning: implicit declaration of function âast_register_applicationâ
app_dbquery.c:508: error: âLOG_ERRORâ undeclared (first use in this function)
app_dbquery.c:510: warning: implicit declaration of function âast_cdr_registerâ
app_dbquery.c: At top level:
app_dbquery.c:522: warning: no previous prototype for âreloadâ
app_dbquery.c: In function âreloadâ:
app_dbquery.c:531: error: âLOG_ERRORâ undeclared (first use in this function)
app_dbquery.c: At top level:
app_dbquery.c:542: warning: no previous prototype for âdescriptionâ
app_dbquery.c:547: warning: no previous prototype for âusecountâ
app_dbquery.c: In function âusecountâ:
app_dbquery.c:549: warning: implicit declaration of function âSTANDARD_USECOUNTâ
app_dbquery.c: At top level:
app_dbquery.c:554: warning: function declaration isnât a prototype
app_dbquery.c: In function âkeyâ:
app_dbquery.c:555: error: âASTERISK_GPL_KEYâ undeclared (first use in this function)
make: *** [app_dbquery.o] Fehler 1

Habt ihr ne Ahnung?

Greetings,
Pep
 
Ohne jetzt auf die speziellen Probleme einzugehen - wenn Du den Sourcecode von installierten Programmen brauchst, musst Du
Code:
$ apt-get source <packagename>
eingeben. Näheres dazu findest Du hier: http://www.debian.org/doc/manuals/apt-howto/ch-sourcehandling.en.html

Voraussetzung ist noch, dass Du noch die Sourcen in /etc/apt/sources.list aktiviert und aptitude update ausgeführt hast.

Hoffe geholfen zu haben,
Deine tante
 
Zuletzt bearbeitet:
Ich konnte die Fehler auf dies hier minimieren:
Code:
make
make: mysql_config: Kommando nicht gefunden
gcc -pipe  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g  -Iinclude -I../include  -D_REENTRANT -D_GNU_SOURCE  -O6    -DUSE_CVS -DZAPTEL_OPTIMIZATIONS       -fPIC -c -o app_dbquery.o app_dbquery.c
In file included from app_dbquery.c:30:
include/mysql.h:303:74: error: token "@" is not valid in preprocessor expressions
In file included from app_dbquery.c:32:
../res_mysqlpool/res_mysqlpool.h:54: warning: function declaration isnât a prototype
make: *** [app_dbquery.o] Fehler 1

Jemand jetzt ne idee? ;)
 
Das Binary mysql_config ist im Paket libmysqlclient-dev enthalten. Installier das mal und type make...
 
Gelöst:
Das Problem war ein kaputter RAM-Baustein!! :D
 
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.