Bug#478693: Incompatibility of libc6 with kernel 2.6 ax25

View: New views
8 Messages — Rating Filter:   Alert me  

Bug#478693: Incompatibility of libc6 with kernel 2.6 ax25

by Arjan van Schijndel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Package: libc6
Version: 2.3.6.ds1-13etch5

The following files in libc6 are not up to date: netax25/ax25.h
netrom/netrom.h netrose/rose.h. Meaning these files do not correspond
with the ax25.h netrom.h and rose.h from the 2.6 kernel. Resulting in
a wrong syscall.h.

This error result in upward dependency problems: libax25, ax25-apps,
ax25-tools, node, z8530-utils.

The origin of this problem is in the upload, even the gnu 2.7 source
code has this error.

An important notice is that these problems do not occur if you use the
2.4 kernel.

Possible solutions:

1. Discus this problem with the kernel and libc6 developers.

2. Remove ax25 use from libc6 and make a special package depending on
the right kernel and start from there to make the other ax25 packages.

Hopefully this is enough information,

Arjan



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Incompatibility of libc6 with kernel 2.6 ax25

by Bastian Blank :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Apr 30, 2008 at 01:57:26PM +0200, Arjan van Schijndel wrote:
> Version: 2.3.6.ds1-13etch5

And in unstable?

> The following files in libc6 are not up to date: netax25/ax25.h
> netrom/netrom.h netrose/rose.h. Meaning these files do not correspond
> with the ax25.h netrom.h and rose.h from the 2.6 kernel. Resulting in
> a wrong syscall.h.

Would it be enough to use the linux-libc-dev provided files
linux/netrom.h, linux/rose.h and linux/ax25.h?

Bastian

--
It is undignified for a woman to play servant to a man who is not hers.
                -- Spock, "Amok Time", stardate 3372.7


--
To UNSUBSCRIBE, email to debian-glibc-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Bug#478693: Incompatibility of libc6 with kernel 2.6 ax25

by Arjan van Schijndel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

First of all I don't want to run unstable or experimental.

If I am not mistaken, I wrote in the original bug report that the
problem houses in the upload. Hence, the source file provided by the
gnu developing crew. Even their upload version glibc-2.7 has this
incompatibility problem.

As far as I know, kernel 2.6 is more robust in the hamradio stuff then
it previous versions 2.0 2.2 2.4.

But!!!! Someone forgot to tell this to the glibc maintainers, because
their files are only compatible with the "kernel 2.4". That means not
compatible with kernel 2.0 2.2 and 2.6. So technically glibc is not
compatible with kernel 2.6. Fortunately, it is only for the hamradio
stuff, where it has some difficulties.

Kernel 2.6 != glibc

glibc = libax25

libax25 = ax25-apps, ax25-tools, node and z8530-utils2

I think it is reasonable easy to fix, but I have no experience in the
upload from the kernel into the glibc. In the past Alan Cox did this,
if I am not wrong.

If the glibc is up to date, it is reasonable easy to update the
hamradio packages.

To answer your second question. No, it is not enough to use these
files, because these files are wrong. The function described in these
files are not compatible with the 2.6 kernel. Hence, the lib files and
syscall part of these files are incompatible.

A possible scenario, I use a function from libax25 which is only
compatible with kernel 2.4, as stated above. This function calls the
handles of the glibc, which on its turn calls the handles of the 2.4
kernel. Oops, etch is running a 2.6 kernel, the kernel has to options
either it is not so terrible and ignores it, or jumps into panic. For
the mkiss command called by ax25ipd, the kernel gets a panic attack.

Arjan


On Wed, Apr 30, 2008 at 3:28 PM, Bastian Blank <waldi@...> wrote:

> On Wed, Apr 30, 2008 at 01:57:26PM +0200, Arjan van Schijndel wrote:
>  > Version: 2.3.6.ds1-13etch5
>
>  And in unstable?
>
>
>  > The following files in libc6 are not up to date: netax25/ax25.h
>  > netrom/netrom.h netrose/rose.h. Meaning these files do not correspond
>  > with the ax25.h netrom.h and rose.h from the 2.6 kernel. Resulting in
>  > a wrong syscall.h.
>
>  Would it be enough to use the linux-libc-dev provided files
>  linux/netrom.h, linux/rose.h and linux/ax25.h?
>
>  Bastian
>
>  --
>  It is undignified for a woman to play servant to a man who is not hers.
>                 -- Spock, "Amok Time", stardate 3372.7
>



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Bug#478693: Incompatibility of libc6 with kernel 2.6 ax25

by Aurelien Jarno :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

tag 478693 + moreinfo
thanks

On Wed, Apr 30, 2008 at 01:57:26PM +0200, Arjan van Schijndel wrote:
> Package: libc6
> Version: 2.3.6.ds1-13etch5
>
> The following files in libc6 are not up to date: netax25/ax25.h
> netrom/netrom.h netrose/rose.h. Meaning these files do not correspond
> with the ax25.h netrom.h and rose.h from the 2.6 kernel. Resulting in
> a wrong syscall.h.

Could you please give more details?

A quick look showed that netrose/rose.h and linux/rose.h are the same.

linux/ax25.h and linux/rose.h have a few more definitions netax25/ax25.h
and netrom/netrom.h, but the #define and structures present in the glibc
one are the same than the ones in the kernel.

The best would be to tell us which structures / #define are missing to
get you application compiled.

Also, as already suggested, it would probably be best to use include
files from the kernel instead of the glibc ones. The kernel has now a
correct way to export an API to userland. The glibc is not really the
the best place to describe a kernel <-> userland API and it may be
better to remove those files instead of updating them.

--
  .''`.  Aurelien Jarno            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@...         | aurelien@...
   `-    people.debian.org/~aurel32 | www.aurel32.net



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Processed: Re: Incompatibility of libc6 with kernel 2.6 ax25

by Debian Bug Tracking System :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Processing commands for control@...:

> tag 478693 + moreinfo
Bug#478693: Incompatibility of libc6 with kernel 2.6 ax25
There were no tags set.
Tags added: moreinfo

> thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


--
To UNSUBSCRIBE, email to debian-glibc-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Bug#478693: Incompatibility of libc6 with kernel 2.6 ax25

by Aurelien Jarno :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, May 10, 2008 at 10:33:59PM +0200, Aurelien Jarno wrote:

> tag 478693 + moreinfo
> thanks
>
> On Wed, Apr 30, 2008 at 01:57:26PM +0200, Arjan van Schijndel wrote:
> > Package: libc6
> > Version: 2.3.6.ds1-13etch5
> >
> > The following files in libc6 are not up to date: netax25/ax25.h
> > netrom/netrom.h netrose/rose.h. Meaning these files do not correspond
> > with the ax25.h netrom.h and rose.h from the 2.6 kernel. Resulting in
> > a wrong syscall.h.
>
> Could you please give more details?
>
> A quick look showed that netrose/rose.h and linux/rose.h are the same.
>
> linux/ax25.h and linux/rose.h have a few more definitions netax25/ax25.h
> and netrom/netrom.h, but the #define and structures present in the glibc
> one are the same than the ones in the kernel.
>
> The best would be to tell us which structures / #define are missing to
> get you application compiled.
>

A closer look showed that the only outdated part is in netax25/ax25.h.
netrom/netrom.h and netrose/rose.h are up-to-date.

Here are a patch to update netax25/ax25.h. Could you please try it and
see if it fixes your problems?


diff --git a/sysdeps/unix/sysv/linux/netax25/ax25.h b/sysdeps/unix/sysv/linux/netax25/ax25.h
index ce3c7ab..3ca2b4d 100644
--- a/sysdeps/unix/sysv/linux/netax25/ax25.h
+++ b/sysdeps/unix/sysv/linux/netax25/ax25.h
@@ -50,9 +50,11 @@
 #define SIOCAX25SETPARMS (SIOCPROTOPRIVATE+6)
 #define SIOCAX25OPTRT (SIOCPROTOPRIVATE+7)
 #define SIOCAX25CTLCON (SIOCPROTOPRIVATE+8)
-#define SIOCAX25GETINFO (SIOCPROTOPRIVATE+9)
+#define SIOCAX25GETINFOOLD (SIOCPROTOPRIVATE+9)
 #define SIOCAX25ADDFWD (SIOCPROTOPRIVATE+10)
 #define SIOCAX25DELFWD (SIOCPROTOPRIVATE+11)
+#define SIOCAX25DEVCTL (SIOCPROTOPRIVATE+12)
+#define SIOCAX25GETINFO (SIOCPROTOPRIVATE+13)
 
 /* unknown: */
 #define AX25_NOUID_DEFAULT 0
@@ -112,13 +114,16 @@ struct ax25_ctl_struct
 
 struct ax25_info_struct
   {
-    unsigned int  n2, n2count;
+    unsigned int n2, n2count;
     unsigned int t1, t1timer;
     unsigned int t2, t2timer;
     unsigned int t3, t3timer;
     unsigned int idle, idletimer;
     unsigned int state;
     unsigned int rcv_q, snd_q;
+    unsigned int vs, vr, va, vs_max;
+    unsigned int paclen;
+    unsigned int window;
   };
 
 struct ax25_fwd_struct

--
  .''`.  Aurelien Jarno            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@...         | aurelien@...
   `-    people.debian.org/~aurel32 | www.aurel32.net



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Bug#478693: Incompatibility of libc6 with kernel 2.6 ax25

by Aurelien Jarno :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, May 10, 2008 at 11:42:57PM +0200, Aurelien Jarno wrote:

> On Sat, May 10, 2008 at 10:33:59PM +0200, Aurelien Jarno wrote:
> > tag 478693 + moreinfo
> > thanks
> >
> > On Wed, Apr 30, 2008 at 01:57:26PM +0200, Arjan van Schijndel wrote:
> > > Package: libc6
> > > Version: 2.3.6.ds1-13etch5
> > >
> > > The following files in libc6 are not up to date: netax25/ax25.h
> > > netrom/netrom.h netrose/rose.h. Meaning these files do not correspond
> > > with the ax25.h netrom.h and rose.h from the 2.6 kernel. Resulting in
> > > a wrong syscall.h.
> >
> > Could you please give more details?
> >
> > A quick look showed that netrose/rose.h and linux/rose.h are the same.
> >
> > linux/ax25.h and linux/rose.h have a few more definitions netax25/ax25.h
> > and netrom/netrom.h, but the #define and structures present in the glibc
> > one are the same than the ones in the kernel.
> >
> > The best would be to tell us which structures / #define are missing to
> > get you application compiled.
> >
>
> A closer look showed that the only outdated part is in netax25/ax25.h.
> netrom/netrom.h and netrose/rose.h are up-to-date.
>
> Here are a patch to update netax25/ax25.h. Could you please try it and
> see if it fixes your problems?
>
>
> diff --git a/sysdeps/unix/sysv/linux/netax25/ax25.h b/sysdeps/unix/sysv/linux/netax25/ax25.h
> index ce3c7ab..3ca2b4d 100644
> --- a/sysdeps/unix/sysv/linux/netax25/ax25.h
> +++ b/sysdeps/unix/sysv/linux/netax25/ax25.h
> @@ -50,9 +50,11 @@
>  #define SIOCAX25SETPARMS (SIOCPROTOPRIVATE+6)
>  #define SIOCAX25OPTRT (SIOCPROTOPRIVATE+7)
>  #define SIOCAX25CTLCON (SIOCPROTOPRIVATE+8)
> -#define SIOCAX25GETINFO (SIOCPROTOPRIVATE+9)
> +#define SIOCAX25GETINFOOLD (SIOCPROTOPRIVATE+9)
>  #define SIOCAX25ADDFWD (SIOCPROTOPRIVATE+10)
>  #define SIOCAX25DELFWD (SIOCPROTOPRIVATE+11)
> +#define SIOCAX25DEVCTL (SIOCPROTOPRIVATE+12)
> +#define SIOCAX25GETINFO (SIOCPROTOPRIVATE+13)
>  
>  /* unknown: */
>  #define AX25_NOUID_DEFAULT 0
> @@ -112,13 +114,16 @@ struct ax25_ctl_struct
>  
>  struct ax25_info_struct
>    {
> -    unsigned int  n2, n2count;
> +    unsigned int n2, n2count;
>      unsigned int t1, t1timer;
>      unsigned int t2, t2timer;
>      unsigned int t3, t3timer;
>      unsigned int idle, idletimer;
>      unsigned int state;
>      unsigned int rcv_q, snd_q;
> +    unsigned int vs, vr, va, vs_max;
> +    unsigned int paclen;
> +    unsigned int window;
>    };
>  
>  struct ax25_fwd_struct

Any news on that?


--
  .''`.  Aurelien Jarno            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@...         | aurelien@...
   `-    people.debian.org/~aurel32 | www.aurel32.net



--
To UNSUBSCRIBE, email to debian-glibc-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Bug#478693: Incompatibility of libc6 with kernel 2.6 ax25

by Aurelien Jarno :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Aurelien Jarno a écrit :

> On Sat, May 10, 2008 at 11:42:57PM +0200, Aurelien Jarno wrote:
>> On Sat, May 10, 2008 at 10:33:59PM +0200, Aurelien Jarno wrote:
>>> tag 478693 + moreinfo
>>> thanks
>>>
>>> On Wed, Apr 30, 2008 at 01:57:26PM +0200, Arjan van Schijndel wrote:
>>>> Package: libc6
>>>> Version: 2.3.6.ds1-13etch5
>>>>
>>>> The following files in libc6 are not up to date: netax25/ax25.h
>>>> netrom/netrom.h netrose/rose.h. Meaning these files do not correspond
>>>> with the ax25.h netrom.h and rose.h from the 2.6 kernel. Resulting in
>>>> a wrong syscall.h.
>>> Could you please give more details?
>>>
>>> A quick look showed that netrose/rose.h and linux/rose.h are the same.
>>>
>>> linux/ax25.h and linux/rose.h have a few more definitions netax25/ax25.h
>>> and netrom/netrom.h, but the #define and structures present in the glibc
>>> one are the same than the ones in the kernel.
>>>
>>> The best would be to tell us which structures / #define are missing to
>>> get you application compiled.
>>>
>> A closer look showed that the only outdated part is in netax25/ax25.h.
>> netrom/netrom.h and netrose/rose.h are up-to-date.
>>
>> Here are a patch to update netax25/ax25.h. Could you please try it and
>> see if it fixes your problems?
>>
>>
>> diff --git a/sysdeps/unix/sysv/linux/netax25/ax25.h b/sysdeps/unix/sysv/linux/netax25/ax25.h
>> index ce3c7ab..3ca2b4d 100644
>> --- a/sysdeps/unix/sysv/linux/netax25/ax25.h
>> +++ b/sysdeps/unix/sysv/linux/netax25/ax25.h
>> @@ -50,9 +50,11 @@
>>  #define SIOCAX25SETPARMS (SIOCPROTOPRIVATE+6)
>>  #define SIOCAX25OPTRT (SIOCPROTOPRIVATE+7)
>>  #define SIOCAX25CTLCON (SIOCPROTOPRIVATE+8)
>> -#define SIOCAX25GETINFO (SIOCPROTOPRIVATE+9)
>> +#define SIOCAX25GETINFOOLD (SIOCPROTOPRIVATE+9)
>>  #define SIOCAX25ADDFWD (SIOCPROTOPRIVATE+10)
>>  #define SIOCAX25DELFWD (SIOCPROTOPRIVATE+11)
>> +#define SIOCAX25DEVCTL (SIOCPROTOPRIVATE+12)
>> +#define SIOCAX25GETINFO (SIOCPROTOPRIVATE+13)
>>  
>>  /* unknown: */
>>  #define AX25_NOUID_DEFAULT 0
>> @@ -112,13 +114,16 @@ struct ax25_ctl_struct
>>  
>>  struct ax25_info_struct
>>    {
>> -    unsigned int  n2, n2count;
>> +    unsigned int n2, n2count;
>>      unsigned int t1, t1timer;
>>      unsigned int t2, t2timer;
>>      unsigned int t3, t3timer;
>>      unsigned int idle, idletimer;
>>      unsigned int state;
>>      unsigned int rcv_q, snd_q;
>> +    unsigned int vs, vr, va, vs_max;
>> +    unsigned int paclen;
>> +    unsigned int window;
>>    };
>>  
>>  struct ax25_fwd_struct
>
> Any news on that?
>
>

Any news on that?


--
  .''`.  Aurelien Jarno            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@...         | aurelien@...
   `-    people.debian.org/~aurel32 | www.aurel32.net



--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...