[Pkg-spca5xx-devel] Bug#347860: marked as done (spca5xx-source: make-kpkg module_image build fails (with kernel 2.6.14.6))

Debian Bug Tracking System owner at bugs.debian.org
Wed Jan 18 19:03:13 UTC 2006


Your message dated Wed, 18 Jan 2006 16:50:11 -0200
with message-id <87d5ipid5o.fsf at nurf.casa>
and subject line Isn't a bug
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; 13 Jan 2006 04:36:15 +0000
>From brad+debian at swatter.net Thu Jan 12 20:36:15 2006
Return-path: <brad+debian at swatter.net>
Received: from eastrmmtao06.cox.net ([68.230.240.33])
	by spohr.debian.org with esmtp (Exim 4.50)
	id 1ExGff-0001XS-Lq
	for submit at bugs.debian.org; Thu, 12 Jan 2006 20:36:15 -0800
Received: from dragon.swatter.net ([68.13.214.75]) by eastrmmtao06.cox.net
          (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP
          id <20060113043302.MSWG9108.eastrmmtao06.cox.net at dragon.swatter.net>
          for <submit at bugs.debian.org>; Thu, 12 Jan 2006 23:33:02 -0500
Received: from brad by dragon.swatter.net with local (Exim 4.50)
	id 1ExGf8-0000Us-MU; Thu, 12 Jan 2006 23:35:42 -0500
Content-Type: multipart/mixed; boundary="===============1004487447=="
MIME-Version: 1.0
From: Brad Sawatzky <brad+debian at swatter.net>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: spca5xx-source: make-kpkg module_image build fails (with kernel 2.6.14.6)
Message-ID: <20060113043542.31724.81599.reportbug at dragon.swatter.net>
X-Mailer: reportbug 3.18
Date: Thu, 12 Jan 2006 23:35:42 -0500
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-7.0 required=4.0 tests=BAYES_00,HAS_PACKAGE,
	RCVD_IN_SORBS autolearn=no version=2.60-bugs.debian.org_2005_01_02

This is a multi-part MIME message sent by reportbug.

--===============1004487447==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: spca5xx-source
Version: 20051212-1
Severity: important
Tags: patch


The spca5xx module fails to build through the make-kpkg system with kernel
2.6.14.6 (obtained from kernel.org).

The build process works from the /usr/src/linux-2.6.12.3/ directory with
all the same tools.  I presume the new kernel removed an 'include
<linux/version.h>' out of one of the kernel header files that is included
in '/usr/src/modules/spca5xx/drivers/usb/spcadecoder.h'.

The attached patch simply adds an explicit 'include <linux/version.h>' to
'spcadecoder.h' which appears to solve the problem.

-- Brad

--- Build log below ---
brad at dragon 1062% fakeroot make-kpkg --added-modules spca5xx modules_image 
exec debian/rules  DEBIAN_REVISION=gcc3.4  KPKG_SELECTED_MODULES="spca5xx"  modules_image 

====== making .config because of  ======
test -f .config || test ! -f .config.save || \
                            cp -pf .config.save .config
test -f .config || test ! -f .config || \
                            cp -pf .config .config
test -f .config || test ! -f ./debian/config || \
                            cp -pf ./debian/config  .config
test -f .config || (echo "*** Need a config file .config" && false)
for module in /usr/src/modules/spca5xx ; do                       \
          if test -d  $module; then                                \
            (cd $module;                                          \
              if ./debian/rules KVERS="2.6.14.6" KSRC="/usr/src/linux-2.6.14.6" \
                             KMAINT="Brad Sawatzky" KEMAIL="brad+debian at swatter.net"      \
                             KPKG_DEST_DIR="/usr/src/linux-2.6.14.6/.."       \
                             KPKG_MAINTAINER="Brad Sawatzky"        \
                             KPKG_EXTRAV_ARG=""        \
                             ARCH="i386"                  \
                             KDREV="gcc3.4" kdist_image; then    \
                  echo "Module $module processed fine";            \
              else                                                  \
                   echo "Module $module failed.";                  \
                   if [ "X" != "X" ]; then      \
                      echo "Perhaps $module does not understand --rootcmd?";  \
                      echo "If you see messages that indicate that it is not"; \
                      echo "in fact being built as root, please file a bug ";  \
                      echo "against $module.";                     \
                   fi;                                              \
                   echo "Hit return to Continue";                   \
                 read ans;                                        \
              fi;                                                   \
             );                                                    \
          else                                                      \
               echo "Module $module does not exist";               \
               echo "Hit return to Continue?";                      \
          fi;                                                       \
        done
make[1]: Entering directory `/usr/src/modules/spca5xx'
/usr/bin/make -w -f debian/rules kdist_clean kdist_config binary-modules
make[2]: Entering directory `/usr/src/modules/spca5xx'
dh_testdir
dh_testroot
dh_clean
/usr/bin/make -C /usr/src/modules/spca5xx clean
make[3]: Entering directory `/usr/src/modules/spca5xx'
rm -r -f drivers/usb/*.o drivers/usb/.spcadecoder.o.cmd \
        drivers/usb/.spca5xx.o.cmd  *.o *.ko *.mod.* .[a-z]* core *.i
make[3]: Leaving directory `/usr/src/modules/spca5xx'
/usr/bin/gcc-3.4
for templ in ; do \
    cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.14.6/g'` ; \
  done
for templ in `ls debian/*.modules.in` ; do \
    test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} ${templ%.modules.in}.backup 2>/dev/null || true; \
    sed -e 's/##KVERS##/2.6.14.6/g ;s/#KVERS#/2.6.14.6/g ; s/_KVERS_/2.6.14.6/g ; s/##KDREV##/gcc3.4/g ; s/#KDREV#/gcc3.4/g ; s/_KDREV_/gcc3.4/g' < $templ > ${templ%.modules.in}; \
  done
dh_testroot
dh_clean -k
# Build the module
/usr/bin/make -C /usr/src/modules/spca5xx KERNEL_VERSION=2.6.14.6 KERNELDIR=/usr/src/linux-2.6.14.6
make[3]: Entering directory `/usr/src/modules/spca5xx'
   Building SPCA5XX driver for 2.5/2.6 kernel.
   Remember: you must have read/write access to your kernel source tree.
/usr/bin/make -C /usr/src/linux-2.6.14.6 SUBDIRS=/usr/src/modules/spca5xx modules
make[4]: Entering directory `/usr/src/linux-2.6.14.6'
  CC [M]  /usr/src/modules/spca5xx/drivers/usb/spca5xx.o
In file included from /usr/src/modules/spca5xx/drivers/usb/spca5xx.c:763:
/usr/src/modules/spca5xx/drivers/usb/mr97311.h: In function `pcam_start':
/usr/src/modules/spca5xx/drivers/usb/mr97311.h:391: warning: ISO C90 forbids mixed declarations and code
  CC [M]  /usr/src/modules/spca5xx/drivers/usb/spcadecoder.o
In file included from /usr/src/modules/spca5xx/drivers/usb/spcadecoder.h:5,
                 from /usr/src/modules/spca5xx/drivers/usb/spcadecoder.c:35:
/usr/src/modules/spca5xx/drivers/usb/spca5xx.h:23:5: warning: "LINUX_VERSION_CODE" is not defined
/usr/src/modules/spca5xx/drivers/usb/spca5xx.h:23:26: warning: "KERNEL_VERSION" is not defined
/usr/src/modules/spca5xx/drivers/usb/spca5xx.h:23:40: missing binary operator before token "("
/usr/src/modules/spca5xx/drivers/usb/spca5xx.h:44:5: warning: "LINUX_VERSION_CODE" is not defined
/usr/src/modules/spca5xx/drivers/usb/spca5xx.h:44:26: warning: "KERNEL_VERSION" is not defined
/usr/src/modules/spca5xx/drivers/usb/spca5xx.h:44:40: missing binary operator before token "("
/usr/src/modules/spca5xx/drivers/usb/spca5xx.h:51:27: linux/tqueue.h: No such file or directory
/usr/src/modules/spca5xx/drivers/usb/spca5xx.h:54:5: warning: "LINUX_VERSION_CODE" is not defined
/usr/src/modules/spca5xx/drivers/usb/spca5xx.h:54:27: warning: "KERNEL_VERSION" is not defined
/usr/src/modules/spca5xx/drivers/usb/spca5xx.h:54:41: missing binary operator before token "("
In file included from /usr/src/modules/spca5xx/drivers/usb/spcadecoder.h:5,
                 from /usr/src/modules/spca5xx/drivers/usb/spcadecoder.c:35:
/usr/src/modules/spca5xx/drivers/usb/spca5xx.h:455: error: field `task' has incomplete type
make[5]: *** [/usr/src/modules/spca5xx/drivers/usb/spcadecoder.o] Error 1
make[4]: *** [_module_/usr/src/modules/spca5xx] Error 2
make[4]: Leaving directory `/usr/src/linux-2.6.14.6'
make[3]: *** [default] Error 2
make[3]: Leaving directory `/usr/src/modules/spca5xx'
make[2]: *** [binary-modules] Error 2
make[2]: Leaving directory `/usr/src/modules/spca5xx'
make[1]: *** [kdist_build] Error 2
make[1]: Leaving directory `/usr/src/modules/spca5xx'
Module /usr/src/modules/spca5xx failed.
Hit return to Continue



-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12.3
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages spca5xx-source depends on:
ii  build-essential               11.1       informational list of build-essent
ii  bzip2                         1.0.2-11   high-quality block-sorting file co
ii  debhelper                     5.0.12     helper programs for debian/rules
ii  module-assistant              0.10.2     tool to make module package creati

spca5xx-source recommends no packages.

-- no debconf information

--===============1004487447==
Content-Type: text/x-c; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="version-fix.diff"

--- spca5xx.orig/drivers/usb/spca5xx.h	2006-01-12 23:05:42.000000000 -0500
+++ spca5xx/drivers/usb/spca5xx.h	2006-01-12 23:04:57.000000000 -0500
@@ -8,6 +8,7 @@
  */
 
 #ifdef __KERNEL__
+#include <linux/version.h>
 #include <asm/uaccess.h>
 #include <linux/videodev.h>
 #include <linux/smp_lock.h>

--===============1004487447==--

---------------------------------------
Received: (at 347860-done) by bugs.debian.org; 18 Jan 2006 18:51:55 +0000
>From otavio at debian.org Wed Jan 18 10:51:55 2006
Return-path: <otavio at debian.org>
Received: from aveiro.procergs.com.br ([200.198.128.42])
	by spohr.debian.org with esmtp (Exim 4.50)
	id 1EzIPS-0005wc-SA
	for 347860-done at bugs.debian.org; Wed, 18 Jan 2006 10:51:55 -0800
Received: from localhost (unknown [201.10.58.28])
	by aveiro.procergs.com.br (Postfix) with ESMTP id 1456A5186062
	for <347860-done at bugs.debian.org>; Wed, 18 Jan 2006 16:50:05 -0200 (BRDT)
Received: by localhost (Postfix, from userid 1000)
	id 1266B1C0B6AF; Wed, 18 Jan 2006 16:50:11 -0200 (BRST)
From: Otavio Salvador <otavio at debian.org>
To: 347860-done at bugs.debian.org
Subject: Isn't a bug
Organization: O.S. Systems Ltda.
X-URL: http://www.debian.org/~otavio/
X-Attribution: O.S.
Date: Wed, 18 Jan 2006 16:50:11 -0200
Message-ID: <87d5ipid5o.fsf at nurf.casa>
User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02

Hello,

Since the reporter says it's working, I'm closing it.

cya!

-- 
        O T A V I O    S A L V A D O R
---------------------------------------------
 E-mail: otavio at debian.org      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://www.freedom.ind.br/otavio
---------------------------------------------
"Microsoft gives you Windows ... Linux gives
 you the whole house."



More information about the Pkg-spca5xx-devel mailing list