please try the following patch. i cannot test it right now. especially the gsm.cpp change is relevant. i hope that everything is clean now.
diff --git a/bchannel.c b/bchannel.c index f49572b..baa8434 100644 --- a/bchannel.c +++ b/bchannel.c @@ -23,7 +23,7 @@ #include <netinet/in.h> #include <netdb.h> #include <sys/socket.h> -#include <mISDNif.h> +#include <mISDN/mISDNif.h>
#include <mISDN/mISDNcompat.h> int __af_isdn = MISDN_AF_ISDN; diff --git a/gsm.cpp b/gsm.cpp index b2bdd6b..d8906c4 100644 --- a/gsm.cpp +++ b/gsm.cpp @@ -44,12 +44,9 @@ static struct timer_list db_sync_timer;
#include "gsm_audio.h"
-#undef AF_ISDN -#undef PF_ISDN -extern int AF_ISDN; -#define PF_ISDN AF_ISDN }
+#include <mISDN/mISDNcompat.h>
struct lcr_gsm *gsm = NULL;
symbol lookup error: /sbin/lcr: undefined symbol: AF_ISDN
Hello,
compilation complete, configuration done as in the files located in /lcr/..
following error appears now when starting lcr:
/lcr/sbin/lcr start
** LCR Version 1.7
000000 DEBUG (in getrulesetbyname() line 1871): ruleset main found. Segmentation fault
could it be a problem with mISDN V2 ?
dmesg says:
[330443.563787] base_sock_release(ffff880127629340) sk=ffff880124801000 [330504.787527] lcr[28891]: segfault at 49829f ip 00007f7e5f59470b sp 00007fffe4eed950 error 7 in libc-2.10.2.so[7f7e5f52e000+14a000] [330504.787703] base_sock_release(ffff88012762b9c0) sk=ffff880124801800
Syslog says:
Mar 15 06:17:42 openbsc kernel: [330504.787527] lcr[28891]: segfault at 49829f ip 00007f7e5f59470b sp 00007fffe4eed950 error 7 in libc-2.10.2.so[7f7e5f52e000+14a000] Mar 15 06:17:42 openbsc kernel: [330504.787703] base_sock_release(ffff88012762b9c0) sk=ffff880124801800
Best regards Ihab el Bakri _________________________________________________________________ Hotmail: Free, trusted and rich email service. https://signup.live.com/signup.aspx?id=60969