Hallo IPPF-Gemeinde,
seit anderthalb Monaten nutze ich passiv euer Forum. Hab viele Hilfestellungen hier bekommen, aber nun komme ich echt nicht weiter: FInde niemanden, der meinen Fehler oder ähnliche hat.
Zur Vorgeschichte:
Hab ein Alix-Board mit einem sehr, sehr schlanken Ubuntu 12.04 (Precise). Bevorzuge den Bezug von Software aus den Repos, Asterisk ist auch von da. Hab erfolgreich FreePBX installiert, SIP-Clients auf Android-Smartphones funktionieren prima. Wollte nun mein altes ISDN-Telefon als Hardphone anbinden. Dazu habe ich mir ein USB-ISDN-Adapter (ID 07b0:0007 Trust Technologies ISDN TA) besorgt. mISDN und mISDNuser gegittet und installiert. Nur LCR macht mir riesige Probleme.
Das System:
Für Doku, Recovery und Gedankenstütze ist folgendes Script entstanden:
Das allerletzte make macht mir schon seit 3 Wochen Probleme. autoreconf -fi und libtoolize sind durch Recherche nach den Kompilier-Fehler da reingekommen. Aber jede Lösung zog einen neuen Fehler nach sich. Den, den ich beim besten Willen nicht lösen kann, ist der hier:
Die Asterisk-Sources habe ich installiert. CPPFLAGS habe ich auch schon dem Pfad gegeben. Wenn ich configure mit --without-asterisk ausführe, klappt es, aber ich habe dann kein Modul für Asterisk.
Hat jemand einen Hinweis für mich? Oder ein kostengünstiges SIP-Hardphone, dann würde ich die ISDN-Geschichte erden.
EDIT: Eine Zeile über dem Beginn des Fehlers eingefügt. Könnten es Folgefehler sein, weil "main" nicht gefunden wird?
seit anderthalb Monaten nutze ich passiv euer Forum. Hab viele Hilfestellungen hier bekommen, aber nun komme ich echt nicht weiter: FInde niemanden, der meinen Fehler oder ähnliche hat.
Zur Vorgeschichte:
Hab ein Alix-Board mit einem sehr, sehr schlanken Ubuntu 12.04 (Precise). Bevorzuge den Bezug von Software aus den Repos, Asterisk ist auch von da. Hab erfolgreich FreePBX installiert, SIP-Clients auf Android-Smartphones funktionieren prima. Wollte nun mein altes ISDN-Telefon als Hardphone anbinden. Dazu habe ich mir ein USB-ISDN-Adapter (ID 07b0:0007 Trust Technologies ISDN TA) besorgt. mISDN und mISDNuser gegittet und installiert. Nur LCR macht mir riesige Probleme.
Das System:
Code:
root@pbx01:~# more /etc/issue
Ubuntu 12.04.2 LTS \n \l
root@pbx01:~# uname -a
Linux pbx01 3.2.0-39-generic #62-Ubuntu SMP Wed Feb 27 22:05:17 UTC 2013 i586 i586 i386 GNU/Linux
Für Doku, Recovery und Gedankenstütze ist folgendes Script entstanden:
Code:
#!/bin/bash
# Vorbedingung: Asterisk (aus den Quellen) und FreePBX (von freepbx.org) sind installiert.
aptitude install linux-headers-$(uname -r) git build-essential
## http://knowledgehurts.wordpress.com/2012/03/30/kernel-build-tree-does-not-exist/
cd /lib/modules/$(uname -r)/source && ln -s /usr/src/linux-headers-$(uname -r)-generic source
## Das folgende ist groestenteils von
## http://www.ip-phone-forum.de/showthread.php?t=227693&p=1653421&viewfull=1#post1653421
cd /usr/src/
git clone git://git.misdn.eu/mISDN.git/
cd mISDN
./configure
cp mISDN.cfg.default standalone/mISDN.cfg
make -j2 modules
rm -rfv /lib/modules/`uname -r`/kernel/drivers/isdn
rm -rfv /lib/modules/`uname -r`/extra
make modules_install
modprobe mISDN_core mISDN_dsp hfcsusb
cd /usr/src/
git clone git://git.misdn.eu/mISDNuser.git/
cd mISDNuser
./configure --with-AF_ISDN=34
make -j2
make install
aptitude install asterisk-dev libncurses5-dev libsofia-sip-ua-dev libopencore-amrnb-dev pkg-config
cd /usr/src/
git clone git://git.misdn.eu/lcr.git/
cd lcr
autoreconf -fi && libtoolize
./autogen.sh
./configure
make -j2
make install
exit 0
Das allerletzte make macht mir schon seit 3 Wochen Probleme. autoreconf -fi und libtoolize sind durch Recherche nach den Kompilier-Fehler da reingekommen. Aber jede Lösung zog einen neuen Fehler nach sich. Den, den ich beim besten Willen nicht lösen kann, ist der hier:
Code:
libtool: link: gcc -g -O2 -o chan_lcr.so chan_lcr.po options.po callerid.po select.po -lpthread -lncurses -lm
/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
chan_lcr.po: In function `lock_chan':
/usr/src/lcr/chan_lcr.c:1986: undefined reference to `__ast_pthread_mutex_lock'
chan_lcr.po: In function `unlock_chan':
/usr/src/lcr/chan_lcr.c:1991: undefined reference to `__ast_pthread_mutex_unlock'
chan_lcr.po: In function `chan_lcr_log':
/usr/src/lcr/chan_lcr.c:241: undefined reference to `__ast_pthread_mutex_lock'
/usr/src/lcr/chan_lcr.c:261: undefined reference to `__ast_pthread_mutex_unlock'
chan_lcr.po: In function `lcr_fixup':
/usr/src/lcr/chan_lcr.c:3105: undefined reference to `__ast_pthread_mutex_lock'
/usr/src/lcr/chan_lcr.c:3119: undefined reference to `__ast_pthread_mutex_unlock'
/usr/src/lcr/chan_lcr.c:3113: undefined reference to `__ast_pthread_mutex_unlock'
chan_lcr.po: In function `lcr_read':
/usr/src/lcr/chan_lcr.c:2819: undefined reference to `__ast_pthread_mutex_lock'
/usr/src/lcr/chan_lcr.c:2899: undefined reference to `ast_dsp_process'
/usr/src/lcr/chan_lcr.c:2907: undefined reference to `__ast_pthread_mutex_unlock'
/usr/src/lcr/chan_lcr.c:2907: undefined reference to `__ast_pthread_mutex_unlock'
/usr/src/lcr/chan_lcr.c:2855: undefined reference to `__ast_pthread_mutex_unlock'
/usr/src/lcr/chan_lcr.c:2859: undefined reference to `__ast_pthread_mutex_unlock'
/usr/src/lcr/chan_lcr.c:2860: undefined reference to `ast_null_frame'
/usr/src/lcr/chan_lcr.c:2840: undefined reference to `__ast_pthread_mutex_unlock'
/usr/src/lcr/chan_lcr.c:2843: undefined reference to `ast_null_frame'
/usr/src/lcr/chan_lcr.c:2826: undefined reference to `__ast_pthread_mutex_unlock'
chan_lcr.po: In function `lcr_digit_end':
/usr/src/lcr/chan_lcr.c:2579: undefined reference to `__ast_pthread_mutex_lock'
/usr/src/lcr/chan_lcr.c:2601: undefined reference to `__ast_pthread_mutex_unlock'
/usr/src/lcr/chan_lcr.c:2601: undefined reference to `__ast_pthread_mutex_unlock'
chan_lcr.po: In function `send_digit_to_chan':
/usr/src/lcr/chan_lcr.c:2502: undefined reference to `ast_playtones_start'
chan_lcr.po: In function `lcr_digit_end':
/usr/src/lcr/chan_lcr.c:2591: undefined reference to `__ast_pthread_mutex_unlock'
chan_lcr.po: In function `free_call':
/usr/src/lcr/chan_lcr.c:304: undefined reference to `ast_translator_free_path'
/usr/src/lcr/chan_lcr.c:306: undefined reference to `ast_dsp_free'
chan_lcr.po: In function `lcr_indicate':
/usr/src/lcr/chan_lcr.c:2922: undefined reference to `__ast_pthread_mutex_lock'
/usr/src/lcr/chan_lcr.c:3090: undefined reference to `__ast_pthread_mutex_unlock'
/usr/src/lcr/chan_lcr.c:3069: undefined reference to `ast_moh_stop'
/usr/src/lcr/chan_lcr.c:3049: undefined reference to `ast_moh_start'
/usr/src/lcr/chan_lcr.c:2937: undefined reference to `ast_setstate'
/usr/src/lcr/chan_lcr.c:2995: undefined reference to `ast_setstate'
/usr/src/lcr/chan_lcr.c:3007: undefined reference to `ast_get_indication_tone'
/usr/src/lcr/chan_lcr.c:3086: undefined reference to `ast_playtones_start'
/usr/src/lcr/chan_lcr.c:3031: undefined reference to `ast_playtones_stop'
/usr/src/lcr/chan_lcr.c:2949: undefined reference to `ast_get_indication_tone'
/usr/src/lcr/chan_lcr.c:2976: undefined reference to `ast_get_indication_tone'
/usr/src/lcr/chan_lcr.c:2930: undefined reference to `__ast_pthread_mutex_unlock'
chan_lcr.po: In function `lcr_send_text':
/usr/src/lcr/chan_lcr.c:3131: undefined reference to `__ast_pthread_mutex_lock'
/usr/src/lcr/chan_lcr.c:3147: undefined reference to `__ast_pthread_mutex_unlock'
/usr/src/lcr/chan_lcr.c:3139: undefined reference to `__ast_pthread_mutex_unlock'
chan_lcr.po: In function `lcr_write':
/usr/src/lcr/chan_lcr.c:2779: undefined reference to `__ast_pthread_mutex_lock'
/usr/src/lcr/chan_lcr.c:2787: undefined reference to `__ast_pthread_mutex_unlock'
/usr/src/lcr/chan_lcr.c:2807: undefined reference to `ast_frame_free'
/usr/src/lcr/chan_lcr.c:2763: undefined reference to `ast_set_write_format'
/usr/src/lcr/chan_lcr.c:2772: undefined reference to `ast_translate'
/usr/src/lcr/chan_lcr.c:2805: undefined reference to `__ast_pthread_mutex_unlock'
chan_lcr.po: In function `lcr_answer':
/usr/src/lcr/chan_lcr.c:2616: undefined reference to `__ast_pthread_mutex_lock'
/usr/src/lcr/chan_lcr.c:2645: undefined reference to `__ast_pthread_mutex_unlock'
/usr/src/lcr/chan_lcr.c:2624: undefined reference to `__ast_pthread_mutex_unlock'
chan_lcr.po: In function `lcr_hangup':
/usr/src/lcr/chan_lcr.c:2655: undefined reference to `__ast_pthread_mutex_lock'
/usr/src/lcr/chan_lcr.c:2715: undefined reference to `__ast_pthread_mutex_unlock'
/usr/src/lcr/chan_lcr.c:2698: undefined reference to `__ast_pthread_mutex_unlock'
/usr/src/lcr/chan_lcr.c:2665: undefined reference to `__ast_pthread_mutex_unlock'
chan_lcr.po: In function `lcr_call':
/usr/src/lcr/chan_lcr.c:2403: undefined reference to `__ast_pthread_mutex_lock'
/usr/src/lcr/chan_lcr.c:2473: undefined reference to `__ast_pthread_mutex_unlock'
/usr/src/lcr/chan_lcr.c:2417: undefined reference to `__ast_pthread_mutex_unlock'
chan_lcr.po: In function `lcr_digit_begin':
/usr/src/lcr/chan_lcr.c:2533: undefined reference to `__ast_pthread_mutex_lock'
/usr/src/lcr/chan_lcr.c:2567: undefined reference to `__ast_pthread_mutex_unlock'
/usr/src/lcr/chan_lcr.c:2541: undefined reference to `__ast_pthread_mutex_unlock'
chan_lcr.po: In function `lcr_start_pbx':
/usr/src/lcr/chan_lcr.c:808: undefined reference to `ast_canmatch_extension'
/usr/src/lcr/chan_lcr.c:910: undefined reference to `ast_hangup'
/usr/src/lcr/chan_lcr.c:839: undefined reference to `ast_canmatch_extension'
/usr/src/lcr/chan_lcr.c:854: undefined reference to `ast_exists_extension'
/usr/src/lcr/chan_lcr.c:818: undefined reference to `ast_exists_extension'
/usr/src/lcr/chan_lcr.c:922: undefined reference to `ast_pbx_start'
/usr/src/lcr/chan_lcr.c:928: undefined reference to `ast_setstate'
chan_lcr.po: In function `apply_opt':
/usr/src/lcr/chan_lcr.c:602: undefined reference to `ast_dsp_set_features'
/usr/src/lcr/chan_lcr.c:612: undefined reference to `ast_translator_build_path'
/usr/src/lcr/chan_lcr.c:593: undefined reference to `ast_dsp_new'
chan_lcr.po: In function `lcr_request':
/usr/src/lcr/chan_lcr.c:2043: undefined reference to `__ast_pthread_mutex_lock'
/usr/src/lcr/chan_lcr.c:2065: undefined reference to `__ast_channel_alloc'
/usr/src/lcr/chan_lcr.c:2388: undefined reference to `__ast_pthread_mutex_unlock'
/usr/src/lcr/chan_lcr.c:2049: undefined reference to `__ast_pthread_mutex_unlock'
/usr/src/lcr/chan_lcr.c:2057: undefined reference to `__ast_pthread_mutex_unlock'
/usr/src/lcr/chan_lcr.c:2079: undefined reference to `__ast_pthread_mutex_unlock'
chan_lcr.po: In function `lcr_config_exec':
/usr/src/lcr/chan_lcr.c:3446: undefined reference to `__ast_pthread_mutex_lock'
/usr/src/lcr/chan_lcr.c:3484: undefined reference to `__ast_pthread_mutex_unlock'
chan_lcr.po: In function `lcr_in_release':
/usr/src/lcr/chan_lcr.c:1394: undefined reference to `ast_hangup'
chan_lcr.po: In function `lcr_in_setup':
/usr/src/lcr/chan_lcr.c:959: undefined reference to `__ast_channel_alloc'
chan_lcr.po: In function `lcr_in_disconnect':
/usr/src/lcr/chan_lcr.c:1355: undefined reference to `ast_hangup'
chan_lcr.po: In function `chan_thread':
/usr/src/lcr/chan_lcr.c:2011: undefined reference to `__ast_pthread_mutex_lock'
chan_lcr.po: In function `handle_queue':
/usr/src/lcr/chan_lcr.c:1904: undefined reference to `__ao2_trylock'
/usr/src/lcr/chan_lcr.c:1914: undefined reference to `ast_queue_control'
/usr/src/lcr/chan_lcr.c:1969: undefined reference to `__ao2_unlock'
/usr/src/lcr/chan_lcr.c:1922: undefined reference to `ast_queue_control'
/usr/src/lcr/chan_lcr.c:1923: undefined reference to `ast_setstate'
/usr/src/lcr/chan_lcr.c:1918: undefined reference to `ast_queue_control'
/usr/src/lcr/chan_lcr.c:1927: undefined reference to `ast_queue_control'
/usr/src/lcr/chan_lcr.c:1931: undefined reference to `ast_queue_hangup'
/usr/src/lcr/chan_lcr.c:1955: undefined reference to `ast_queue_frame'
/usr/src/lcr/chan_lcr.c:1959: undefined reference to `ast_queue_frame'
/usr/src/lcr/chan_lcr.c:1905: undefined reference to `__ast_pthread_mutex_unlock'
/usr/src/lcr/chan_lcr.c:1907: undefined reference to `__ast_pthread_mutex_lock'
chan_lcr.po: In function `unload_module':
/usr/src/lcr/chan_lcr.c:3626: undefined reference to `ast_channel_unregister'
/usr/src/lcr/chan_lcr.c:3628: undefined reference to `ast_unregister_application'
chan_lcr.po: In function `load_module':
/usr/src/lcr/chan_lcr.c:3514: undefined reference to `__ast_pthread_mutex_init'
/usr/src/lcr/chan_lcr.c:3515: undefined reference to `__ast_pthread_mutex_init'
/usr/src/lcr/chan_lcr.c:3527: undefined reference to `ast_channel_register'
/usr/src/lcr/chan_lcr.c:3540: undefined reference to `ast_register_application2'
/usr/src/lcr/chan_lcr.c:3595: undefined reference to `ast_channel_unregister'
chan_lcr.po: In function `release_all_calls':
/usr/src/lcr/chan_lcr.c:1726: undefined reference to `ast_hangup'
chan_lcr.po: In function `__reg_module':
/usr/src/lcr/chan_lcr.c:3664: undefined reference to `ast_module_register'
chan_lcr.po: In function `__unreg_module':
/usr/src/lcr/chan_lcr.c:3664: undefined reference to `ast_module_unregister'
collect2: ld returned 1 exit status
make[2]: *** [chan_lcr.so] Error 1
make[2]: *** Waiting for unfinished jobs....
libtool: link: g++ -g -O2 -o lcr main.o select.o trace.o options.o tones.o alawulaw.o cause.o interface.o message.o callerid.o socket_server.o port.o vbox.o remote.o mISDN.o fxs.o dss1.o crypt.o endpoint.o endpointapp.o appbridge.o apppbx.o route.o action.o action_efi.o action_vbox.o extension.o mail.o join.o joinpbx.o -lcrypto -lmisdn -lpthread -lncurses -lm
make[2]: Leaving directory `/usr/src/lcr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/lcr'
make: *** [all] Error 2
Die Asterisk-Sources habe ich installiert. CPPFLAGS habe ich auch schon dem Pfad gegeben. Wenn ich configure mit --without-asterisk ausführe, klappt es, aber ich habe dann kein Modul für Asterisk.
Hat jemand einen Hinweis für mich? Oder ein kostengünstiges SIP-Hardphone, dann würde ich die ISDN-Geschichte erden.
EDIT: Eine Zeile über dem Beginn des Fehlers eingefügt. Könnten es Folgefehler sein, weil "main" nicht gefunden wird?
Zuletzt bearbeitet: