Bug#538372: linux-libc-dev-2.6.26_20

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

Bug#538372: linux-libc-dev-2.6.26_20

by Helge Bahmann-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The change to /usr/include/linux/socket.h introduced in linux-libc-dev 2.6.26
(from proposed-updates) now breaks the following simple test program:

#include <stddef.h>
#include <linux/socket.h>
#include <linux/netlink.h>

Several autoconf-scripts (notably strace) try to compile this program to
detect "linux/netlink.h" and consequently fail. Please revert the change that
remove the sub-includes from linux/socket.h



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


Bug#538372: linux-libc-dev-2.6.26_20

by dann frazier-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Nov 11, 2009 at 12:01:00PM +0100, Helge Bahmann wrote:

> The change to /usr/include/linux/socket.h introduced in linux-libc-dev 2.6.26
> (from proposed-updates) now breaks the following simple test program:
>
> #include <stddef.h>
> #include <linux/socket.h>
> #include <linux/netlink.h>
>
> Several autoconf-scripts (notably strace) try to compile this program to
> detect "linux/netlink.h" and consequently fail. Please revert the change that
> remove the sub-includes from linux/socket.h

Thanks for testing!

Does anyone have an alternate fix, or should we just revert this for
now?

--
dann frazier




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


Bug#538372: linux-libc-dev-2.6.26_20

by Manuel Prinz-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Mittwoch, den 11.11.2009, 09:26 -0700 schrieb dann frazier:
> > Several autoconf-scripts (notably strace) try to compile this program to
> > detect "linux/netlink.h" and consequently fail. Please revert the change that
> > remove the sub-includes from linux/socket.h

I can confirm the breakage (patch applied on a Sid system.)

> Does anyone have an alternate fix, or should we just revert this for
> now?

I tested several variations of the patch. Re-adding the "#if
defined ..." line (or: removing that hunk from the patch) gives a
version under which both test cases compile successfully. (The one
mentioned by Helge and the one by the bug submitter.)

Best regards
Manuel




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


Bug#538372: linux-libc-dev-2.6.26_20

by Ben Hutchings-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Nov 11, 2009 at 09:26:04AM -0700, dann frazier wrote:

> On Wed, Nov 11, 2009 at 12:01:00PM +0100, Helge Bahmann wrote:
> > The change to /usr/include/linux/socket.h introduced in linux-libc-dev 2.6.26
> > (from proposed-updates) now breaks the following simple test program:
> >
> > #include <stddef.h>
> > #include <linux/socket.h>
> > #include <linux/netlink.h>
> >
> > Several autoconf-scripts (notably strace) try to compile this program to
> > detect "linux/netlink.h" and consequently fail. Please revert the change that
> > remove the sub-includes from linux/socket.h
>
> Thanks for testing!
>
> Does anyone have an alternate fix, or should we just revert this for
> now?
 
It is probably best to revert this for lenny.  However, this change has
already been accepted upstream (I wouldn't have applied it otherwise) so we
also need to come up with a proper fix.

Ben.

--
Ben Hutchings
Lowery's Law:
             If it jams, force it. If it breaks, it needed replacing anyway.



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


Bug#538372: linux-libc-dev-2.6.26_20

by Ben Hutchings-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Nov 11, 2009 at 10:52:09PM +0100, Manuel Prinz wrote:

> Am Mittwoch, den 11.11.2009, 09:26 -0700 schrieb dann frazier:
> > > Several autoconf-scripts (notably strace) try to compile this program to
> > > detect "linux/netlink.h" and consequently fail. Please revert the change that
> > > remove the sub-includes from linux/socket.h
>
> I can confirm the breakage (patch applied on a Sid system.)
>
> > Does anyone have an alternate fix, or should we just revert this for
> > now?
>
> I tested several variations of the patch. Re-adding the "#if
> defined ..." line (or: removing that hunk from the patch) gives a
> version under which both test cases compile successfully. (The one
> mentioned by Helge and the one by the bug submitter.)

Could you test this:

--- a/include/linux/socket.h
+++ b/include/linux/socket.h
@@ -16,7 +16,12 @@ struct __kernel_sockaddr_storage {
  /* _SS_MAXSIZE value minus size of ss_family */
 } __attribute__ ((aligned(_K_SS_ALIGNSIZE))); /* force desired alignment */
 
-#ifdef __KERNEL__
+#ifndef __KERNEL__
+
+/* I think this is what you wanted: */
+#include <sys/socket.h>
+
+#else
 
 #include <asm/socket.h> /* arch-dependent defines */
 #include <linux/sockios.h> /* the SIOCxxx I/O controls */
--- END ---

Ben.

--
Ben Hutchings
Lowery's Law:
             If it jams, force it. If it breaks, it needed replacing anyway.



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


Bug#538372: linux-libc-dev-2.6.26_20

by Manuel Prinz-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Ben!

Am Mittwoch, den 11.11.2009, 22:34 +0000 schrieb Ben Hutchings:

> Could you test this:
>
> --- a/include/linux/socket.h
> +++ b/include/linux/socket.h
> @@ -16,7 +16,12 @@ struct __kernel_sockaddr_storage {
>   /* _SS_MAXSIZE value minus size of ss_family */
>  } __attribute__ ((aligned(_K_SS_ALIGNSIZE))); /* force desired alignment */
>  
> -#ifdef __KERNEL__
> +#ifndef __KERNEL__
> +
> +/* I think this is what you wanted: */
> +#include <sys/socket.h>
> +
> +#else
>  
>  #include <asm/socket.h> /* arch-dependent defines */
>  #include <linux/sockios.h> /* the SIOCxxx I/O controls */
> --- END ---

This change works for both test cases.

Best regards
Manuel




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