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

Bug#221543: marked as done (linux-kernel-headers: #include <sys/pci.h> fails to compile)

Your message dated Sun, 14 Dec 2003 14:02:30 -0500
with message-id <E1AVbVe-0003QE-00@auric.debian.org>
and subject line Bug#221543: fixed in linux-kernel-headers 2.5.999-test7-bk-10
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)

Received: (at submit) by bugs.debian.org; 18 Nov 2003 23:45:27 +0000
>From bartoldeman@users.sourceforge.net Tue Nov 18 17:45:17 2003
Return-path: <bartoldeman@users.sourceforge.net>
Received: from mta5-svc.business.ntl.com [] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AMFX3-0003Z7-00; Tue, 18 Nov 2003 17:45:17 -0600
Received: from enbeo ([]) by mta5-svc.business.ntl.com
          (InterMail vM. 201-229-121-137-20020806) with ESMTP
          id <20031118234515.BQYH285.mta5-svc.business.ntl.com@enbeo>;
          Tue, 18 Nov 2003 23:45:15 +0000
Received: from enbeo by enbeo with local (Exim 3.35 #1 (Debian))
	id 1AMESh-00017W-00; Tue, 18 Nov 2003 22:36:43 +0000
From: Bart Oldeman <bartoldeman@users.sourceforge.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: linux-kernel-headers: #include <sys/pci.h> fails to compile
X-Mailer: reportbug 1.50
Date: Tue, 18 Nov 2003 22:36:42 +0000
Reply-To: Bart.Oldeman@bristol.ac.uk
Message-Id: <E1AMESh-00017W-00@enbeo>
Sender: Bart Oldeman <bartoldeman@users.sourceforge.net>
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-8.9 required=4.0
	autolearn=ham version=2.53-bugs.debian.org_2003_11_15
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_11_15 (

Package: linux-kernel-headers
Version: 2.5.999-test7-bk-9
Severity: important
Tags: patch

$ cat pci.c
#include <sys/pci.h>

$ gcc -c pci.c
In file included from /usr/include/linux/pci.h:20,
                 from /usr/include/sys/pci.h:23,
                 from pci.c:1:
/usr/include/linux/mod_devicetable.h:18: error: syntax error before "__u32"
/usr/include/linux/mod_devicetable.h:20: error: syntax error before "class"
/usr/include/linux/mod_devicetable.h:21: error: syntax error before "driver_data
/usr/include/linux/mod_devicetable.h:31: error: syntax error before "__u32"
/usr/include/linux/mod_devicetable.h:33: error: syntax error before "model_id"
/usr/include/linux/mod_devicetable.h:34: error: syntax error before "specifier_i
/usr/include/linux/mod_devicetable.h:35: error: syntax error before "version"
/usr/include/linux/mod_devicetable.h:36: error: syntax error before "driver_data
/usr/include/linux/mod_devicetable.h:99: error: syntax error before "__u16"
/usr/include/linux/mod_devicetable.h:103: error: syntax error before "idProduct"
/usr/include/linux/mod_devicetable.h:104: error: syntax error before "bcdDevice_
/usr/include/linux/mod_devicetable.h:105: error: syntax error before "bcdDevice_
/usr/include/linux/mod_devicetable.h:108: error: syntax error before "bDeviceCla
/usr/include/linux/mod_devicetable.h:109: error: syntax error before "bDeviceSub
/usr/include/linux/mod_devicetable.h:110: error: syntax error before "bDevicePro
/usr/include/linux/mod_devicetable.h:113: error: syntax error before "bInterface
/usr/include/linux/mod_devicetable.h:114: error: syntax error before "bInterface
/usr/include/linux/mod_devicetable.h:115: error: syntax error before "bInterface
/usr/include/linux/mod_devicetable.h:118: error: syntax error before "driver_inf
/usr/include/linux/mod_devicetable.h:135: error: syntax error before "__u16"
/usr/include/linux/mod_devicetable.h:138: error: syntax error before "dev_type"
/usr/include/linux/mod_devicetable.h:139: error: syntax error before "cu_model"
/usr/include/linux/mod_devicetable.h:140: error: syntax error before "dev_model"
/usr/include/linux/mod_devicetable.h:142: error: syntax error before "driver_inf

obviously mod_devicetable.h doesn't know __u32 and so on.

here's a workaround, maybe a cleaner fix is possible: polluting the
namespace with kernel_ulong_t doesn't look right.

perhaps much more needs to be #ifdef __KERNEL__

--- /usr/include/linux/mod_devicetable.h~       2003-10-15 16:15:01.000000000 +0100
+++ /usr/include/linux/mod_devicetable.h        2003-11-18 22:34:59.000000000 +0000
@@ -7,10 +7,8 @@
-#ifdef __KERNEL__
 #include <linux/types.h>
 typedef unsigned long kernel_ulong_t;
 #define PCI_ANY_ID (~0)

-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux enbeo 2.6.0-test9 #2 Sun Nov 16 00:13:17 GMT 2003 i586
Locale: LANG=C, LC_CTYPE=en_GB

Received: (at 221543-close) by bugs.debian.org; 14 Dec 2003 20:01:06 +0000
>From katie@auric.debian.org Sun Dec 14 14:01:06 2003
Return-path: <katie@auric.debian.org>
Received: from auric.debian.org [] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AVbYX-0000HR-00; Sun, 14 Dec 2003 13:05:29 -0600
Received: from katie by auric.debian.org with local (Exim 3.35 1 (Debian))
	id 1AVbVe-0003QE-00; Sun, 14 Dec 2003 14:02:30 -0500
From: Daniel Jacobowitz <dan@debian.org>
To: 221543-close@bugs.debian.org
X-Katie: $Revision: 1.43 $
Subject: Bug#221543: fixed in linux-kernel-headers 2.5.999-test7-bk-10
Message-Id: <E1AVbVe-0003QE-00@auric.debian.org>
Sender: Archive Administrator <katie@auric.debian.org>
Date: Sun, 14 Dec 2003 14:02:30 -0500
Delivered-To: 221543-close@bugs.debian.org

Source: linux-kernel-headers
Source-Version: 2.5.999-test7-bk-10

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:

  to pool/main/l/linux-kernel-headers/linux-kernel-headers_2.5.999-test7-bk-10.diff.gz
  to pool/main/l/linux-kernel-headers/linux-kernel-headers_2.5.999-test7-bk-10.dsc
  to pool/main/l/linux-kernel-headers/linux-kernel-headers_2.5.999-test7-bk-10_i386.deb

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

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

Debian distribution maintenance software
Daniel Jacobowitz <dan@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)

Hash: SHA1

Format: 1.7
Date: Sat, 13 Dec 2003 16:13:20 -0500
Source: linux-kernel-headers
Binary: linux-kernel-headers
Architecture: source i386
Version: 2.5.999-test7-bk-10
Distribution: unstable
Urgency: low
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Changed-By: Daniel Jacobowitz <dan@debian.org>
 linux-kernel-headers - Linux Kernel Headers for development
Closes: 203303 215337 215937 216921 218438 219664 219940 220138 220232 220331 220953 220991 221438 221543
 linux-kernel-headers (2.5.999-test7-bk-10) unstable; urgency=low
   * Daniel Jacobowitz <dan@debian.org>
     - Add a testsuite.
     - Resolve a conflict between <linux/compiler.h> and <sys/cdefs.h>
       (Closes: #215337, #219664).
       - debian/patches/no-linux-compiler-h.patch
     - Let <linux/netlink.h> compile by moving some of <linux/uio.h> into
       __KERNEL__ (Closes: #215937).
       - debian/patches/linux-netlink-compilation.patch
     - Fix a -W (-Wextra) warning with the ioctl type checking macros
       (Closes: #219940, #220953).
       - debian/patches/ioctl-signedness.patch
     - Quiet #warning from <linux/list.h> for now.
       - debian/patches/linux-list-quiet-warning.patch
     - Fix conflict between <linux/time.h> and <time.h>, and other C++
       namespace cleanliness problems
       (Closes: #218438, #220232, #216921, #221438).
       - debian/patches/linux-types-and-time.patch
       - debian/patches/linux-types-ustat.h removed.
     - Also export __kernel_dev_t for util-linux/cryptoloop (Closes: 220991).
       - debian/patches/linux-types-and-time.patch
     - Remove some useless __const__ markers from byteorder headers.
       - debian/patches/byteorder-const.patch
     - Add __extension__ to several ({ }) constructs to allow them with -ansi
       (Closes: #203303).
       - debian/patches/byteorder.patch
     - Disable the contents of <asm-ia64/pal.h> in userspace (Closes: #220138).
       - debian/patches/ia64-pal.patch
     - Don't include unneeded mod_devicetable.h from linux/pci.h (Closes: #221543).
       - debian/patches/linux-pci.patch
     - Don't include buffer_head.h from linux/msdos_fs.h (Closes: #220331).
       - debian/patches/msdos-fs.patch
     - Suppress pedantic long long warnings for <linux/types.h>.
       - debian/patches/linux-types-long-long.patch
   * Jeff Bailey <jbailey@nisa.net>
    - debian/control: Bump standards version to 3.6.1.
      No changes required.
 bc66113e31ae75aee3781ac6d647a1d2 858 devel standard linux-kernel-headers_2.5.999-test7-bk-10.dsc
 ec12b4d434e942e7b99e94a9423ff482 52489 devel standard linux-kernel-headers_2.5.999-test7-bk-10.diff.gz
 a31486ee73e3c528c066abb1ba351fbb 1375424 devel standard linux-kernel-headers_2.5.999-test7-bk-10_i386.deb

Version: GnuPG v1.2.3 (GNU/Linux)


Reply to: