[MPlayer-matrox] error while building mga_vid (debian, 2.6.9)

tmp12345 at gmx.de tmp12345 at gmx.de
Tue Feb 15 08:50:06 CET 2005


Hi all,
unfortunately even after extensive trials and following lots of tips and
tricks
I still fail in building the mga_vidmodule for kernel 2.6.9 under debian.
The
last trial I did was getting the "mga-vid-source" package and replacing the
source with the patched one from "http://attila.kinali.ch/mga/". When
calling
"make-kpkg modules_image" in the kernel source root dir I get the following 
output:

for module in /usr/src/modules/mga-vid ; do                       \
          if test -d  $module; then                                \
    (cd $module;                                          \
              if ./debian/rules KVERS="2.6.9" KSRC="/usr/src/linux" \
                             KMAINT="Unknown Kernel Package Maintainer"
KEMAIL="unknown at unconfigured.in.etc.kernel-pkg.conf"      \
                             KPKG_DEST_DIR="/usr/src/linux/.."       \
                            KPKG_MAINTAINER="Unknown Kernel Package
Maintainer"
       \
                             KPKG_EXTRAV_ARG=""        \
                             ARCH="i386"                  \
                             KDREV="siemens.custom.4.0" 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;                                                   \
     );                                                    \
  fi;                                                      \
        done
make[1]: Entering directory `/usr/src/modules/mga-vid'
/usr/bin/make -w -f debian/rules binary
make[2]: Entering directory `/usr/src/modules/mga-vid'
dh_testdir
dh_testroot
dh_clean
sed 's/(KERNEL_VERSION)/dummy/g' debian/control.in > debian/control
rm -f mga_vid.o mga_vid.ko mga_vid.mod.* .mga_vid* build-stamp
dh_testdir
dh_testroot
/usr/bin/make -C /usr/src/linux SUBDIRS=`pwd` modules
make[3]: Entering directory `/usr/src/kernel-source-2.6.9'
  CC [M]  /usr/src/modules/mga-vid/mga_vid.o
In file included from include/asm/processor.h:18,
                 from include/asm/thread_info.h:16,
                 from include/linux/thread_info.h:21,
                 from include/linux/spinlock.h:12,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:7,
                 from include/linux/module.h:10,
                 from /usr/src/modules/mga-vid/mga_vid.c:48:
include/asm/system.h: In function `__set_64bit_var':
include/asm/system.h:193: warning: dereferencing type-punned pointer will
break
strict-aliasing rules
include/asm/system.h:193: warning: dereferencing type-punned pointer will
break
strict-aliasing rules
In file included from include/asm/smp.h:18,
                 from include/linux/smp.h:17,
                 from include/linux/sched.h:23,
                 from include/linux/module.h:10,
                 from /usr/src/modules/mga-vid/mga_vid.c:48:
include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
In file included from include/asm/smp.h:18,
                 from include/linux/smp.h:17,
                 from include/linux/sched.h:23,
                 from include/linux/module.h:10,
                 from /usr/src/modules/mga-vid/mga_vid.c:48:
include/asm/mpspec.h: At top level:
include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here 
(not in a function)
include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here 
(not in a function)
include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here 
(not in a function)
include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here 
(not in a function)
include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here 
(not in a function)
include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type'
include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type'
include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a
function)
include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here 
(not in a function)
include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus'
include/asm/mpspec.h:12: error: previous declaration of
`mp_bus_id_to_pci_bus'
In file included from include/asm/smp.h:20,
                 from include/linux/smp.h:17,
                 from include/linux/sched.h:23,
                 from include/linux/module.h:10,
                 from /usr/src/modules/mga-vid/mga_vid.c:48:
include/asm/io_apic.h:160: error: `MAX_IRQ_SOURCES' undeclared here (not in
a
function)
include/asm/io_apic.h:160: error: conflicting types for `mp_irqs'
include/asm/mpspec.h:22: error: previous declaration of `mp_irqs'
In file included from include/linux/smp.h:17,
                 from include/linux/sched.h:23,
                 from include/linux/module.h:10,
                 from /usr/src/modules/mga-vid/mga_vid.c:48:
include/asm/smp.h:72:26: mach_apicdef.h: No such file or directory
In file included from include/linux/smp.h:17,
                 from include/linux/sched.h:23,
                 from include/linux/module.h:10,
                 from /usr/src/modules/mga-vid/mga_vid.c:48:
include/asm/smp.h: In function `hard_smp_processor_id':
include/asm/smp.h:76: warning: implicit declaration of function
`GET_APIC_ID'
In file included from /usr/src/modules/mga-vid/mga_vid.c:52:
include/linux/cdev.h: At top level:
include/linux/cdev.h:26: warning: `struct inode' declared inside parameter
list
include/linux/cdev.h:26: warning: its scope is only this definition or
declaration, which is probably not what you want
make[4]: *** [/usr/src/modules/mga-vid/mga_vid.o] Error 1
make[3]: *** [_module_/usr/src/modules/mga-vid] Error 2
make[3]: Leaving directory `/usr/src/kernel-source-2.6.9'
make[2]: *** [build-stamp] Error 2
make[2]: Leaving directory `/usr/src/modules/mga-vid'
make[1]: *** [kdist_image] Error 2
make[1]: Leaving directory `/usr/src/modules/mga-vid'
Module /usr/src/modules/mga-vid failed.
Hit return to Continue

It seems that something is not correctly configured which let make
fail to select the correct header files. Because the build of a kernel
image works with no problems I have no clue what's missing. Any
help/hint would be very appreciated, thanks in advance,

   swen

-- 
DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen!
AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl




More information about the MPlayer-matrox mailing list