From luzik at arcor.de Tue Mar 6 08:54:45 2012 From: luzik at arcor.de (DeDecTed) Date: Tue, 6 Mar 2012 09:54:45 +0100 Subject: libnl 'make' fails Message-ID: Hi, I've been trying to compile 'libnl' on my Ubuntu 11.10 and I got the error: CC route/cls/ematch_grammar.lo route/cls/ematch_grammar.c:773:5: error: unknown type name 'YYSTYPE' The needed libs like byacc, bison or flex had been previously installed. Any clue what might cause the problem? -------------- next part -------------- An HTML attachment was scrubbed... URL: From natalia.kutepow at googlemail.com Mon Mar 12 18:13:42 2012 From: natalia.kutepow at googlemail.com (Tasha) Date: Mon, 12 Mar 2012 19:13:42 +0100 Subject: Protocol mismatch error Message-ID: <4F5E3CD6.4070901@googlemail.com> Hello Patrick, I am currently working on my master thesis in computer science in which I'm trying to exploit you great open source software linux DECT-Stack. I plan to use it for controlling a Com-On-Air PCI ISDN card (Dosch&Amand). However, I'm facing problems with operating libdect, dectmon. To be more precise, after installing software and trying to run it I always get the following error message: dect_netlink_init: Protocol mismatch dect_init: Bad file descriptor root at dect:~/dectmon# valgrind src/dectmon ==4479== Memcheck, a memory error detector ==4479== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==4479== Using Valgrind-3.6.1-Debian and LibVEX; rerun with -h for copyright info ==4479== Command: src/dectmon ==4479== dectmon > ==4479== Warning: invalid file descriptor -1 in syscall close() dect_netlink_init: Protocol mismatch dectmon > dect_open_handle: Bad file descriptor ==4479== ==4479== HEAP SUMMARY: ==4479== in use at exit: 65,329 bytes in 189 blocks ==4479== total heap usage: 305 allocs, 116 frees, 74,326 bytes allocated ==4479== ==4479== LEAK SUMMARY: ==4479== definitely lost: 0 bytes in 0 blocks ==4479== indirectly lost: 0 bytes in 0 blocks ==4479== possibly lost: 0 bytes in 0 blocks ==4479== still reachable: 65,329 bytes in 189 blocks ==4479== suppressed: 0 bytes in 0 blocks ==4479== Rerun with --leak-check=full to see details of leaked memory ==4479== ==4479== For counts of detected and suppressed errors, rerun with: -v ==4479== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 39 from 6) root at dect:~/dectmon# and for any dect-command in asterisk: No such command 'dect show portables' Since my master degree depends highly on successful usage of your software I want to ask you for help and would very appreciate it. It would be very nice if you could give me an advise on how the problem can be solved. Please let me know if you need additional info, esp. in case the error text is not enough for you to be able to analyze the error. Thank you in advance! Best Regards, Tasha From e_tews at cdc.informatik.tu-darmstadt.de Tue Mar 13 11:51:40 2012 From: e_tews at cdc.informatik.tu-darmstadt.de (Erik Tews) Date: Tue, 13 Mar 2012 12:51:40 +0100 Subject: Protocol mismatch error In-Reply-To: <4F5E3CD6.4070901@googlemail.com> References: <4F5E3CD6.4070901@googlemail.com> Message-ID: <1331639500.4163.2.camel@lap19.cdc.informatik.tu-darmstadt.de> Did you install the corresponding kernel, enabled the DECT kernel stack during compilation, and load the modules? Can you execute strace src/dectmon? Am Montag, den 12.03.2012, 19:13 +0100 schrieb Tasha: > Hello Patrick, > > I am currently working on my master thesis in computer science in which > I'm trying to exploit you great open source software linux DECT-Stack. > I plan to use it for controlling a Com-On-Air PCI ISDN card > (Dosch&Amand). However, I'm facing problems with operating libdect, > dectmon. To be more precise, after installing software and trying to run > it I always get the following error message: > > dect_netlink_init: Protocol mismatch > dect_init: Bad file descriptor > > root at dect:~/dectmon# valgrind src/dectmon > ==4479== Memcheck, a memory error detector > ==4479== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. > ==4479== Using Valgrind-3.6.1-Debian and LibVEX; rerun with -h for > copyright info > ==4479== Command: src/dectmon > ==4479== > dectmon > ==4479== Warning: invalid file descriptor -1 in syscall close() > dect_netlink_init: Protocol mismatch > dectmon > dect_open_handle: Bad file descriptor > ==4479== > ==4479== HEAP SUMMARY: > ==4479== in use at exit: 65,329 bytes in 189 blocks > ==4479== total heap usage: 305 allocs, 116 frees, 74,326 bytes allocated > ==4479== > ==4479== LEAK SUMMARY: > ==4479== definitely lost: 0 bytes in 0 blocks > ==4479== indirectly lost: 0 bytes in 0 blocks > ==4479== possibly lost: 0 bytes in 0 blocks > ==4479== still reachable: 65,329 bytes in 189 blocks > ==4479== suppressed: 0 bytes in 0 blocks > ==4479== Rerun with --leak-check=full to see details of leaked memory > ==4479== > ==4479== For counts of detected and suppressed errors, rerun with: -v > ==4479== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 39 from 6) > root at dect:~/dectmon# > > > and for any dect-command in asterisk: > > No such command 'dect show portables' > > > Since my master degree depends highly on successful usage of your > software I want to ask you for help and would very appreciate it. > > It would be very nice if you could give me an advise on how the problem > can be solved. > > Please let me know if you need additional info, esp. in case the error > text is not enough for you to be able to analyze the error. > > Thank you in advance! > > Best Regards, > > Tasha > > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: From natalia.kutepow at googlemail.com Wed Mar 14 15:03:01 2012 From: natalia.kutepow at googlemail.com (Tasha) Date: Wed, 14 Mar 2012 16:03:01 +0100 Subject: Protocol mismatch error In-Reply-To: <1331639500.4163.2.camel@lap19.cdc.informatik.tu-darmstadt.de> References: <4F5E3CD6.4070901@googlemail.com> <1331639500.4163.2.camel@lap19.cdc.informatik.tu-darmstadt.de> Message-ID: <4F60B325.2030806@googlemail.com> Hello Erik, yes, i followed this build instruction...step-by-step http://dect.osmocom.org/trac/dect/wiki/Build%20instructions tud at dect:~$ sudo bash [sudo] password for tud: root at dect:~# uname -r 3.2.0+ root at dect:~# cd dectmon root at dect:~/dectmon# strace src/dectmon execve("src/dectmon", ["src/dectmon"], [/* 23 vars */]) = 0 brk(0) = 0x9f5f000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7770000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=65198, ...}) = 0 mmap2(NULL, 65198, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7760000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/usr/lib/libSDL-1.2.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320E\0\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=453392, ...}) = 0 mmap2(NULL, 623568, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb76c7000 mmap2(0xb7734000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6d) = 0xb7734000 mmap2(0xb7736000, 168912, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7736000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libreadline.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\256\0\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=229488, ...}) = 0 mmap2(NULL, 237188, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb768d000 mmap2(0xb76c2000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x34) = 0xb76c2000 mmap2(0xb76c6000, 3716, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb76c6000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/usr/lib/libdect.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0PL\0\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=739351, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb768c000 mmap2(NULL, 201736, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb765a000 mprotect(0xb7686000, 4096, PROT_NONE) = 0 mmap2(0xb7687000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2c) = 0xb7687000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/usr/lib/libevent-2.0.so.5", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\216\0\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=281472, ...}) = 0 mmap2(NULL, 285800, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7614000 mmap2(0xb7658000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x43) = 0xb7658000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/i386-linux-gnu/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\222\1\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1552584, ...}) = 0 mmap2(NULL, 1563160, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7496000 mmap2(0xb760e000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x178) = 0xb760e000 mmap2(0xb7611000, 10776, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7611000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/i386-linux-gnu/libm.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\2604\0\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=169476, ...}) = 0 mmap2(NULL, 168064, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb746c000 mmap2(0xb7494000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x28) = 0xb7494000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/i386-linux-gnu/libdl.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\n\0\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=13940, ...}) = 0 mmap2(NULL, 16504, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7467000 mmap2(0xb746a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xb746a000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/usr/lib/libesd.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`&\0\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=43764, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7466000 mmap2(NULL, 47696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb745a000 mmap2(0xb7464000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9) = 0xb7464000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/i386-linux-gnu/libpthread.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200[\0\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=124745, ...}) = 0 mmap2(NULL, 107016, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb743f000 mmap2(0xb7456000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16) = 0xb7456000 mmap2(0xb7458000, 4616, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7458000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/libtinfo.so.5", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0PW\0\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=121024, ...}) = 0 mmap2(NULL, 124748, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7420000 mmap2(0xb743c000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b) = 0xb743c000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/usr/local/lib/libnl-dect.so.3", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\2008\0\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=161660, ...}) = 0 mmap2(NULL, 51992, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7413000 mmap2(0xb741e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa) = 0xb741e000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/usr/local/lib/libnl.so.3", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320O\0\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=275044, ...}) = 0 mmap2(NULL, 95268, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb73fb000 mmap2(0xb7411000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15) = 0xb7411000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/i386-linux-gnu/librt.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\30\0\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=30684, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb73fa000 mmap2(NULL, 33364, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb73f1000 mmap2(0xb73f8000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0xb73f8000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/usr/lib/i386-linux-gnu/libasound.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\260\1\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=981180, ...}) = 0 mmap2(NULL, 983988, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7300000 mmap2(0xb73ec000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xeb) = 0xb73ec000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/usr/lib/libaudiofile.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P5\0\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=148600, ...}) = 0 mmap2(NULL, 151320, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb72db000 mmap2(0xb72fd000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x21) = 0xb72fd000 close(3) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb72da000 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb72d9000 set_thread_area({entry_number:-1 -> 6, base_addr:0xb72d96c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 mprotect(0xb72fd000, 4096, PROT_READ) = 0 mprotect(0xb73ec000, 16384, PROT_READ) = 0 mprotect(0xb73f8000, 4096, PROT_READ) = 0 mprotect(0xb7411000, 4096, PROT_READ) = 0 mprotect(0xb741e000, 4096, PROT_READ) = 0 mprotect(0xb743c000, 8192, PROT_READ) = 0 mprotect(0xb7456000, 4096, PROT_READ) = 0 mprotect(0xb7464000, 4096, PROT_READ) = 0 mprotect(0xb746a000, 4096, PROT_READ) = 0 mprotect(0xb7494000, 4096, PROT_READ) = 0 mprotect(0xb760e000, 8192, PROT_READ) = 0 mprotect(0xb7658000, 4096, PROT_READ) = 0 mprotect(0xb7687000, 16384, PROT_READ) = 0 mprotect(0xb76c2000, 4096, PROT_READ) = 0 mprotect(0xb7734000, 4096, PROT_READ) = 0 mprotect(0x805a000, 4096, PROT_READ) = 0 mprotect(0xb7791000, 4096, PROT_READ) = 0 munmap(0xb7760000, 65198) = 0 set_tid_address(0xb72d9728) = 1830 set_robust_list(0xb72d9730, 0xc) = 0 futex(0xbfcd11ac, FUTEX_WAKE_PRIVATE, 1) = 0 futex(0xbfcd11ac, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, b72d96c0) = -1 EAGAIN (Resource temporarily unavailable) rt_sigaction(SIGRTMIN, {0xb7444530, [], SA_SIGINFO}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {0xb74445b0, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0 uname({sys="Linux", node="dect", ...}) = 0 brk(0) = 0x9f5f000 brk(0x9f80000) = 0x9f80000 open("/proc/net/psched", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb776f000 read(3, "000003e8 00000040 000f4240 3b9ac"..., 1024) = 36 close(3) = 0 munmap(0xb776f000, 4096) = 0 time(NULL) = 1331736911 clock_gettime(CLOCK_MONOTONIC, {243, 525122888}) = 0 clock_gettime(CLOCK_MONOTONIC, {243, 525174361}) = 0 gettimeofday({1331736911, 703332}, NULL) = 0 getuid32() = 0 geteuid32() = 0 getgid32() = 0 getegid32() = 0 epoll_create(32000) = 3 fcntl64(3, F_GETFD) = 0 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 getuid32() = 0 geteuid32() = 0 getgid32() = 0 getegid32() = 0 socketpair(PF_FILE, SOCK_STREAM, 0, [4, 5]) = 0 fcntl64(4, F_GETFD) = 0 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 fcntl64(5, F_GETFD) = 0 fcntl64(5, F_SETFD, FD_CLOEXEC) = 0 fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0 fcntl64(5, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(5, F_SETFL, O_RDWR|O_NONBLOCK) = 0 getuid32() = 0 geteuid32() = 0 getgid32() = 0 getegid32() = 0 eventfd2(0, O_CLOEXEC) = 6 fcntl64(6, F_GETFD) = 0x1 (flags FD_CLOEXEC) fcntl64(6, F_SETFD, FD_CLOEXEC) = 0 fcntl64(6, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(6, F_SETFL, O_RDWR|O_NONBLOCK) = 0 epoll_ctl(3, EPOLL_CTL_ADD, 6, {EPOLLIN, {u32=6, u64=6}}) = 0 rt_sigaction(SIGINT, {0xb7636c00, ~[RTMIN RT_1], SA_RESTART}, {SIG_DFL, [], 0}, 8) = 0 epoll_ctl(3, EPOLL_CTL_ADD, 5, {EPOLLIN, {u32=5, u64=5}}) = 0 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 stat64("/home/tud/.terminfo", 0xbfccfee0) = -1 ENOENT (No such file or directory) stat64("/etc/terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 access("/etc/terminfo/x/xterm", R_OK) = -1 ENOENT (No such file or directory) stat64("/lib/terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 access("/lib/terminfo/x/xterm", R_OK) = 0 open("/lib/terminfo/x/xterm", O_RDONLY|O_LARGEFILE) = 7 fstat64(7, {st_mode=S_IFREG|0644, st_size=3213, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb776f000 read(7, "\32\1\34\0&\0\17\0\235\1Z\5xterm|X11 terminal e"..., 4096) = 3213 read(7, "", 4096) = 0 close(7) = 0 munmap(0xb776f000, 4096) = 0 ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(1, TIOCGWINSZ, {ws_row=24, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0 ioctl(0, TIOCGWINSZ, {ws_row=24, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0 ioctl(0, TIOCGWINSZ, {ws_row=24, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0 ioctl(0, TIOCSWINSZ, {ws_row=24, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 7 fstat64(7, {st_mode=S_IFREG|0644, st_size=8752608, ...}) = 0 mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 7, 0) = 0xb70d9000 mmap2(NULL, 1253376, PROT_READ, MAP_PRIVATE, 7, 0x18a) = 0xb6fa7000 close(7) = 0 stat64("/home/tud/.inputrc", 0xbfcd1020) = -1 ENOENT (No such file or directory) stat64("/etc/inputrc", {st_mode=S_IFREG|0644, st_size=1721, ...}) = 0 open("/etc/inputrc", O_RDONLY|O_LARGEFILE) = 7 read(7, "# /etc/inputrc - global inputrc "..., 1721) = 1721 close(7) = 0 rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0 ioctl(0, TIOCGWINSZ, {ws_row=24, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0 ioctl(0, TIOCSWINSZ, {ws_row=24, ws_col=80, ws_xpixel=0, ws_ypixel=0}) = 0 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0 ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon -echo ...}) = 0 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig -icanon -echo ...}) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [INT QUIT ALRM TERM TSTP TTIN TTOU], [], 8) = 0 rt_sigaction(SIGINT, {0xb76ac600, [], 0}, {0xb7636c00, ~[KILL STOP RTMIN RT_1], SA_RESTART}, 8) = 0 rt_sigaction(SIGTERM, {0xb76ac600, [], 0}, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGQUIT, {0xb76ac600, [], 0}, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGALRM, {0xb76ac600, [], 0}, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGTSTP, {0xb76ac600, [], 0}, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGTTOU, {0xb76ac600, [], 0}, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGTTIN, {0xb76ac600, [], 0}, {SIG_DFL, [], 0}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 rt_sigaction(SIGWINCH, {0xb76abd10, [], SA_RESTART}, {SIG_DFL, [], 0}, 8) = 0 rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0 open("/usr/lib/i386-linux-gnu/gconv/gconv-modules.cache", O_RDONLY) = 7 fstat64(7, {st_mode=S_IFREG|0644, st_size=26064, ...}) = 0 mmap2(NULL, 26064, PROT_READ, MAP_SHARED, 7, 0) = 0xb7769000 close(7) = 0 futex(0xb7610aa8, FUTEX_WAKE_PRIVATE, 2147483647) = 0 fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7768000 write(1, "dectmon > ", 10dectmon > ) = 10 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 open("/home/tud/.dectmon_history", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) epoll_ctl(3, EPOLL_CTL_ADD, 0, {EPOLLIN, {u32=0, u64=0}}) = 0 time(NULL) = 1331736911 socket(PF_NETLINK, SOCK_RAW, 22) = -1 EPROTONOSUPPORT (Protocol not supported) close(-1) = -1 EBADF (Bad file descriptor) rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0 ) = 4 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 write(1, "dect_netlink_init: Protocol mism"..., 37dect_netlink_init: Protocol mismatch ) = 37 rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0 write(1, "dectmon > ", 10dectmon > ) = 10 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 dup(2) = 7 fcntl64(7, F_GETFL) = 0x2 (flags O_RDWR) fstat64(7, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7767000 _llseek(7, 0, 0xbfcd0fb4, SEEK_CUR) = -1 ESPIPE (Illegal seek) write(7, "dect_open_handle: Bad file descr"..., 38dect_open_handle: Bad file descriptor ) = 38 close(7) = 0 munmap(0xb7767000, 4096) = 0 exit_group(1) = ? root at dect:~/dectmon# Am 13.03.2012 12:51, schrieb Erik Tews: > Did you install the corresponding kernel, enabled the DECT kernel stack > during compilation, and load the modules? > > Can you execute strace src/dectmon? > > Am Montag, den 12.03.2012, 19:13 +0100 schrieb Tasha: >> Hello Patrick, >> >> I am currently working on my master thesis in computer science in which >> I'm trying to exploit you great open source software linux DECT-Stack. >> I plan to use it for controlling a Com-On-Air PCI ISDN card >> (Dosch&Amand). However, I'm facing problems with operating libdect, >> dectmon. To be more precise, after installing software and trying to run >> it I always get the following error message: >> >> dect_netlink_init: Protocol mismatch >> dect_init: Bad file descriptor >> >> root at dect:~/dectmon# valgrind src/dectmon >> ==4479== Memcheck, a memory error detector >> ==4479== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. >> ==4479== Using Valgrind-3.6.1-Debian and LibVEX; rerun with -h for >> copyright info >> ==4479== Command: src/dectmon >> ==4479== >> dectmon> ==4479== Warning: invalid file descriptor -1 in syscall close() >> dect_netlink_init: Protocol mismatch >> dectmon> dect_open_handle: Bad file descriptor >> ==4479== >> ==4479== HEAP SUMMARY: >> ==4479== in use at exit: 65,329 bytes in 189 blocks >> ==4479== total heap usage: 305 allocs, 116 frees, 74,326 bytes allocated >> ==4479== >> ==4479== LEAK SUMMARY: >> ==4479== definitely lost: 0 bytes in 0 blocks >> ==4479== indirectly lost: 0 bytes in 0 blocks >> ==4479== possibly lost: 0 bytes in 0 blocks >> ==4479== still reachable: 65,329 bytes in 189 blocks >> ==4479== suppressed: 0 bytes in 0 blocks >> ==4479== Rerun with --leak-check=full to see details of leaked memory >> ==4479== >> ==4479== For counts of detected and suppressed errors, rerun with: -v >> ==4479== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 39 from 6) >> root at dect:~/dectmon# >> >> >> and for any dect-command in asterisk: >> >> No such command 'dect show portables' >> >> >> Since my master degree depends highly on successful usage of your >> software I want to ask you for help and would very appreciate it. >> >> It would be very nice if you could give me an advise on how the problem >> can be solved. >> >> Please let me know if you need additional info, esp. in case the error >> text is not enough for you to be able to analyze the error. >> >> Thank you in advance! >> >> Best Regards, >> >> Tasha >> >> From e_tews at cdc.informatik.tu-darmstadt.de Wed Mar 14 19:17:20 2012 From: e_tews at cdc.informatik.tu-darmstadt.de (Erik Tews) Date: Wed, 14 Mar 2012 20:17:20 +0100 Subject: Protocol mismatch error In-Reply-To: <4F60B325.2030806@googlemail.com> References: <4F5E3CD6.4070901@googlemail.com> <1331639500.4163.2.camel@lap19.cdc.informatik.tu-darmstadt.de> <4F60B325.2030806@googlemail.com> Message-ID: <1331752640.4628.0.camel@lap19.cdc.informatik.tu-darmstadt.de> Can you double check that the correct kernel is running and the dect module has been loaded? Did you compile DECT support as a module? If so, does dect show up in lsmod? Am Mittwoch, den 14.03.2012, 16:03 +0100 schrieb Tasha: > socket(PF_NETLINK, SOCK_RAW, 22) = -1 EPROTONOSUPPORT > (Protocol > not supported) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part URL: