Hi all,
Past week I've installed linux-2.2.16.
Something goes broken, so can't recompile
irdadump. I was using irda-utils-0.9.10.
Well, after 3 night hours I found something strange.
1) I have donwloaded 2 (two) irda-utils-0.9.10.tar.gz.
2) In /include/irda.h the types for varios data
is __u8 or __u32 which is kernel based (I think...)
3) In the "new" tar.gz, all this where replaced by
u_int8_t and u_int32_t (or unsigned char and
unsigned long). I made a diff and, wow, time
difference beetwen was less than 1 minute!!!
Conclusion: I'm the only one unlucky guy? I sugest
to put on linux-irda web site this bug and to
point people
1) to replace <sys/types.h> in irda-utils and put
<linux/types.h>, or
2) to check what __u8 or __u32 they have in
irda.h (from irda-utils)
--------------------------------------------------------
Second problem: (especially for Dag Brattly)
After my kernel 2.2.16 and glibc-1.2.7 upgrade,
"irdadump" just _coredump_ :)
After some searching I found in irdadump_loop()
from irdadump/src/irdadump.c the following line:
g_netbuf_recycle(buf);
which get unintialized and determine coredump
With my _very_ _very_ low C know-how I
put
buf = g_netbuf_new(2048)
and on end of irdadump_loop() I put
g_netbuf_free(buf)
Anyway at 4:00AM I just be able to not coredump,
but first "recvfrom()" terminate with error
kind regards,
--
Claudiu COSTIN
<[EMAIL PROTECTED]>
_______________________________________________
Linux-IrDA mailing list - [EMAIL PROTECTED]
http://www4.pasta.cs.UiT.No/mailman/listinfo/linux-irda