[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#381296: marked as done (linux-kernel-headers: <linux/futex.h> can't be included)



Your message dated Sat, 05 Aug 2006 16:17:08 -0700
with message-id <E1G9VOG-0003iV-RR@spohr.debian.org>
and subject line Bug#381296: fixed in linux-kernel-headers 2.6.17.7-1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

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

--- Begin Message ---
Package: linux-kernel-headers
Version: 2.6.17.6-1
Severity: normal

Hi,

When trying to compile

#include <linux/futex.h>
int main(void) {
}
(for using futex, see futex(2))

I get a LOT of errors from various header files because they hold very
kernel-related definitions. The attached patch fixes that.

Regards,
Samuel

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)

-- no debconf information

-- 
Samuel Thibault <samuel.thibault@ens-lyon.org>
 Battery 1: charging, 90%, charging at zero rate - will never fully charge.
 -+- acpi - et pourtant, ca monte -+-
--- futex-orig.h	2006-08-03 15:47:25.000000000 +0200
+++ futex.h	2006-08-03 15:52:20.000000000 +0200
@@ -1,7 +1,11 @@
 #ifndef _LINUX_FUTEX_H
 #define _LINUX_FUTEX_H
 
+#ifdef __KERNEL__
 #include <linux/sched.h>
+#else
+#define __user
+#endif
 
 /* Second argument to futex syscall */
 
@@ -90,6 +94,7 @@
  */
 #define ROBUST_LIST_LIMIT	2048
 
+#ifdef __KERNEL__
 long do_futex(unsigned long uaddr, int op, int val,
 		unsigned long timeout, unsigned long uaddr2, int val2,
 		int val3);
@@ -103,6 +108,7 @@
 {
 }
 #endif
+#endif
 
 #define FUTEX_OP_SET		0	/* *(int *)UADDR2 = OPARG; */
 #define FUTEX_OP_ADD		1	/* *(int *)UADDR2 += OPARG; */

--- End Message ---
--- Begin Message ---
Source: linux-kernel-headers
Source-Version: 2.6.17.7-1

We believe that the bug you reported is fixed in the latest version of
linux-kernel-headers, which is due to be installed in the Debian FTP archive:

linux-kernel-headers_2.6.17.7-1.diff.gz
  to pool/main/l/linux-kernel-headers/linux-kernel-headers_2.6.17.7-1.diff.gz
linux-kernel-headers_2.6.17.7-1.dsc
  to pool/main/l/linux-kernel-headers/linux-kernel-headers_2.6.17.7-1.dsc
linux-kernel-headers_2.6.17.7-1_sparc.deb
  to pool/main/l/linux-kernel-headers/linux-kernel-headers_2.6.17.7-1_sparc.deb
linux-kernel-headers_2.6.17.7.orig.tar.gz
  to pool/main/l/linux-kernel-headers/linux-kernel-headers_2.6.17.7.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 381296@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Clint Adams <schizo@debian.org> (supplier of updated linux-kernel-headers package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat,  5 Aug 2006 18:23:58 -0400
Source: linux-kernel-headers
Binary: linux-kernel-headers
Architecture: source sparc
Version: 2.6.17.7-1
Distribution: unstable
Urgency: low
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Changed-By: Clint Adams <schizo@debian.org>
Description: 
 linux-kernel-headers - Linux Kernel Headers for development
Closes: 381296
Changes: 
 linux-kernel-headers (2.6.17.7-1) unstable; urgency=low
 .
   * New upstream release 2.6.17.7.
   * Fix broken linux/futex.h with patch from Samuel
     Thibault.  closes: #381296.
Files: 
 aea5c924c4f6f4fcb42f7583f95d8611 887 devel standard linux-kernel-headers_2.6.17.7-1.dsc
 0219e44dc75453619565658d575b62f3 5638617 devel standard linux-kernel-headers_2.6.17.7.orig.tar.gz
 2bae45897633ec68312efcd0ea77405a 22340 devel standard linux-kernel-headers_2.6.17.7-1.diff.gz
 af025454494f6fd72eb7f1f9dca22a3b 1804138 devel standard linux-kernel-headers_2.6.17.7-1_sparc.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Debian!

iD8DBQFE1SQa5m0u66uWM3ARAu+GAJ9kEjCKrh92v7yrcTCKVsMTtsSYFwCgjoEw
Lwf7KJQQ6KIEgnuwDd1OqFQ=
=KNhc
-----END PGP SIGNATURE-----


--- End Message ---

Reply to: