Hallo
Ich kämpfe schon sein längerem mit dem Kompilieren von LCR und komme jetzt nicht mehr weiter.
Als Betriebssystem verwende ich OpenSuse 11.3. Kernel 2.6.34.10-0.4-default.
Ich habe Asterisk 1.8.8 installiert und verwende mISDN v2 aus dem Kernel (geht ja auch nicht mehr anders). mISDNuser habe ich runtergeladen, umgewandelt und läuft.
Nur LCR ist hartnäckig. Meine Versuche mache ich mit LCR 1.7 und LCR 1.10. Beide bringen aber unterschiedliche Fehler.
Log von LCR 1.7:
Log von LCR 1.10:
Ich habe das ganze mit Asterisk 10 probiert -> gleiche Fehler.
Auch mit Asterisk 1.6 habe ich es probiert -> bei LCR 1.10 kommt der selbe Fehler. Bei LCR 1.7 kommen andere Fehler aber das Kompilieren geht auch nicht durch.
Ich hoffe mir kann da wer weiterhelfen damit ich den LCR kompiliert bekomme.
Ich kämpfe schon sein längerem mit dem Kompilieren von LCR und komme jetzt nicht mehr weiter.
Als Betriebssystem verwende ich OpenSuse 11.3. Kernel 2.6.34.10-0.4-default.
Ich habe Asterisk 1.8.8 installiert und verwende mISDN v2 aus dem Kernel (geht ja auch nicht mehr anders). mISDNuser habe ich runtergeladen, umgewandelt und läuft.
Nur LCR ist hartnäckig. Meine Versuche mache ich mit LCR 1.7 und LCR 1.10. Beide bringen aber unterschiedliche Fehler.
Log von LCR 1.7:
Code:
asterisk:/usr/src/lcr # make
make all-am
make[1]: Entering directory `/usr/src/lcr'
gcc -Wall -DCONFIG_DATA="\"/usr/local/lcr\"" -DSHARE_DATA="\"/usr/local/lcr\"" -DLOG_DIR="\"/usr/local/lcr\"" -DEXTENSION_DATA="\"/usr/local/lcr/extensions\"" -D_GNU_SOURCE -fPIC -c chan_lcr.c -o chan_lcr.po
chan_lcr.c: In function ‘send_setup_to_lcr’:
chan_lcr.c:644:12: error: ‘struct ast_channel’ has no member named ‘cid’
chan_lcr.c:655:12: error: ‘struct ast_channel’ has no member named ‘cid’
chan_lcr.c: In function ‘lcr_in_setup’:
chan_lcr.c:858:2: warning: passing argument 9 of ‘__ast_channel_alloc’ makes integer from pointer without a cast
/usr/include/asterisk/channel.h:1112:2: note: expected ‘int’ but argument is of type ‘char *’
chan_lcr.c:883:6: error: ‘struct ast_channel’ has no member named ‘cid’
chan_lcr.c:885:6: error: ‘struct ast_channel’ has no member named ‘cid’
chan_lcr.c:887:6: error: ‘struct ast_channel’ has no member named ‘cid’
chan_lcr.c:890:7: error: ‘struct ast_channel’ has no member named ‘cid’
chan_lcr.c:893:7: error: ‘struct ast_channel’ has no member named ‘cid’
chan_lcr.c:896:7: error: ‘struct ast_channel’ has no member named ‘cid’
chan_lcr.c:900:7: error: ‘struct ast_channel’ has no member named ‘cid’
chan_lcr.c:903:7: error: ‘struct ast_channel’ has no member named ‘cid’
chan_lcr.c:906:7: error: ‘struct ast_channel’ has no member named ‘cid’
chan_lcr.c:909:7: error: ‘struct ast_channel’ has no member named ‘cid’
chan_lcr.c: In function ‘handle_queue’:
chan_lcr.c:1707:18: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘char’
chan_lcr.c: In function ‘lcr_request’:
chan_lcr.c:1820:2: warning: passing argument 9 of ‘__ast_channel_alloc’ makes integer from pointer without a cast
/usr/include/asterisk/channel.h:1112:2: note: expected ‘int’ but argument is of type ‘char *’
chan_lcr.c: In function ‘lcr_call’:
chan_lcr.c:1927:9: error: ‘struct ast_channel’ has no member named ‘cid’
chan_lcr.c:1927:31: error: ‘struct ast_channel’ has no member named ‘cid’
chan_lcr.c:1928:29: error: ‘struct ast_channel’ has no member named ‘cid’
chan_lcr.c:1931:9: error: ‘struct ast_channel’ has no member named ‘cid’
chan_lcr.c:1931:32: error: ‘struct ast_channel’ has no member named ‘cid’
chan_lcr.c:1932:30: error: ‘struct ast_channel’ has no member named ‘cid’
chan_lcr.c:1934:9: error: ‘struct ast_channel’ has no member named ‘cid’
chan_lcr.c:1934:33: error: ‘struct ast_channel’ has no member named ‘cid’
chan_lcr.c:1935:31: error: ‘struct ast_channel’ has no member named ‘cid’
chan_lcr.c: In function ‘lcr_write’:
chan_lcr.c:2164:6: error: wrong type argument to unary exclamation mark
chan_lcr.c:2166:20: error: invalid operands to binary & (have ‘union ast_frame_subclass’ and ‘format_t’)
chan_lcr.c: In function ‘lcr_read’:
chan_lcr.c:2229:25: error: incompatible types when assigning to type ‘union ast_frame_subclass’ from type ‘format_t’
chan_lcr.c: In function ‘lcr_indicate’:
chan_lcr.c:2274:8: warning: assignment from incompatible pointer type
chan_lcr.c:2289:8: warning: assignment from incompatible pointer type
chan_lcr.c:2316:8: warning: assignment from incompatible pointer type
chan_lcr.c:2381:14: error: dereferencing pointer to incomplete type
chan_lcr.c:2382:33: error: dereferencing pointer to incomplete type
chan_lcr.c: At top level:
chan_lcr.c:2602:2: warning: initialization from incompatible pointer type
chan_lcr.c: In function ‘load_module’:
chan_lcr.c:2818:2: warning: passing argument 2 of ‘ast_register_application2’ from incompatible pointer type
/usr/include/asterisk/module.h:449:5: note: expected ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int (*)(struct ast_channel *, void *)’
make[1]: *** [chan_lcr.po] Error 1
make[1]: Leaving directory `/usr/src/lcr'
make: *** [all] Error 2
Log von LCR 1.10:
Code:
asterisk:/usr/src/lcr-1.10 # make
make all-am
make[1]: Entering directory `/usr/src/lcr-1.10'
g++ -DHAVE_CONFIG_H -I. -Wall -DCONFIG_DATA="\"/usr/local/lcr\"" -DSHARE_DATA="\"/usr/local/lcr\"" -DLOG_DIR="\"/usr/local/lcr\"" -DEXTENSION_DATA="\"/usr/local/lcr/extensions\"" -g -O2 -MT mISDN.o -MD -MP -MF .deps/mISDN.Tpo -c -o mISDN.o mISDN.cpp
mISDN.cpp: In function ‘int mISDN_initialize()’:
mISDN.cpp:65:15: error: too few arguments to function ‘unsigned int init_layer3(int, mi_ext_fn_s*)’
/usr/local/include/mISDN/mlayer3.h:210:21: note: declared here
mISDN.cpp:75:60: error: ‘mISDN_debug_init’ was not declared in this scope
mISDN.cpp:77:39: error: ‘mISDN_debug_init’ was not declared in this scope
mISDN.cpp: In function ‘void mISDN_deinitialize()’:
mISDN.cpp:92:20: error: ‘mISDN_debug_close’ was not declared in this scope
make[1]: *** [mISDN.o] Error 1
make[1]: Leaving directory `/usr/src/lcr-1.10'
make: *** [all] Error 2
Ich habe das ganze mit Asterisk 10 probiert -> gleiche Fehler.
Auch mit Asterisk 1.6 habe ich es probiert -> bei LCR 1.10 kommt der selbe Fehler. Bei LCR 1.7 kommen andere Fehler aber das Kompilieren geht auch nicht durch.
Ich hoffe mir kann da wer weiterhelfen damit ich den LCR kompiliert bekomme.