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

Compilation module - kernel 2.6.5 / sid



Bonjour,

Je suis sous Sid, Kernel 2.5.6-1-smp (PIV hyperthreading), le tout
installé à partir de la sarge netinstall beta3 (marche super bien au
passage).
J'ai installé le package kernel-headers-2.6.5-1-smp.

A chaque fois que je veux compiler un module, ça foire. 
Par exemple, je viens d'essayer de compiler plex86-kernel (la compile se
lance directement depuis le package src). J'ai essayé de compiler le
driver ATI d'ATI, de DRI, et j'ai le même genre d'erreur (machin chose
non déclaré, etc).

Quelqu'un serait-il ce que je ne fais pas bien ? Ce qu'il manque ?
Il y a bien longtemps que j'ai pas touché à un compilateur C/C++, je
comprends rien aux Makefile, et en plus à la sauce Debian...
Je suis un peu perdu.

Voici la sortie du build :

Building Plex86 module for Linux 2.6.5-1-686-smp (this may take a few
minutes)...modules/plex86/
modules/plex86/kernel/
modules/plex86/kernel/CVS/
modules/plex86/kernel/CVS/Root
modules/plex86/kernel/CVS/Repository
modules/plex86/kernel/CVS/Entries
modules/plex86/kernel/CVS/Entries.Log
modules/plex86/kernel/dt/
modules/plex86/kernel/dt/CVS/
modules/plex86/kernel/dt/CVS/Root
modules/plex86/kernel/dt/CVS/Repository
modules/plex86/kernel/dt/CVS/Entries
modules/plex86/kernel/dt/Makefile.in
modules/plex86/kernel/dt/MODES
modules/plex86/kernel/dt/cgmain-mon.c
modules/plex86/kernel/dt/TODO
modules/plex86/kernel/dt/cgbranch-mon.c
modules/plex86/kernel/dt/cgutil-mon.c
modules/plex86/kernel/dt/dt-mon.c
modules/plex86/kernel/dt/dt-nexus.c
modules/plex86/kernel/dt/handlers-r3.c
modules/plex86/kernel/dt/stubs-r3.S
modules/plex86/kernel/dt/vopcodemap-host.c
modules/plex86/kernel/Makefile.in
modules/plex86/kernel/TODO
modules/plex86/kernel/fault-mon.c
modules/plex86/kernel/flag-nexus.c
modules/plex86/kernel/host-beos.c
modules/plex86/kernel/host-freebsd.c
modules/plex86/kernel/host-linux.c
modules/plex86/kernel/host-netbsd.c
modules/plex86/kernel/instrument-mon.c
modules/plex86/kernel/mode-mon.c
modules/plex86/kernel/mode-nexus.c
modules/plex86/kernel/monitor-host.c
modules/plex86/kernel/nexus.S
modules/plex86/kernel/paging-mon.c
modules/plex86/kernel/panic-mon.c
modules/plex86/kernel/phymem-mon.c
modules/plex86/kernel/print-nexus.c
modules/plex86/kernel/segment-mon.c
modules/plex86/kernel/system-mon.c
modules/plex86/kernel/system-nexus.c
modules/plex86/kernel/util-nexus.c
modules/plex86/kernel/emulation/
modules/plex86/kernel/emulation/CVS/
modules/plex86/kernel/emulation/CVS/Root
modules/plex86/kernel/emulation/CVS/Repository
modules/plex86/kernel/emulation/CVS/Entries
modules/plex86/kernel/emulation/Makefile.in
modules/plex86/kernel/emulation/access.c
modules/plex86/kernel/emulation/arith16.c
modules/plex86/kernel/emulation/arith32.c
modules/plex86/kernel/emulation/arith8.c
modules/plex86/kernel/emulation/bcd.c
modules/plex86/kernel/emulation/bit.c
modules/plex86/kernel/emulation/ctrl_xfer16.c
modules/plex86/kernel/emulation/ctrl_xfer32.c
modules/plex86/kernel/emulation/ctrl_xfer8.c
modules/plex86/kernel/emulation/ctrl_xfer_pro.c
modules/plex86/kernel/emulation/data_xfer16.c
modules/plex86/kernel/emulation/data_xfer32.c
modules/plex86/kernel/emulation/data_xfer8.c
modules/plex86/kernel/emulation/emulation.c
modules/plex86/kernel/emulation/exception.c
modules/plex86/kernel/emulation/fetchdecode.c
modules/plex86/kernel/emulation/flag.c
modules/plex86/kernel/emulation/fpu.c
modules/plex86/kernel/emulation/io.c
modules/plex86/kernel/emulation/io_pro.c
modules/plex86/kernel/emulation/logical16.c
modules/plex86/kernel/emulation/logical32.c
modules/plex86/kernel/emulation/logical8.c
modules/plex86/kernel/emulation/mult16.c
modules/plex86/kernel/emulation/mult32.c
modules/plex86/kernel/emulation/mult8.c
modules/plex86/kernel/emulation/paging.c
modules/plex86/kernel/emulation/proc_ctrl.c
modules/plex86/kernel/emulation/protect_ctrl.c
modules/plex86/kernel/emulation/regs.c
modules/plex86/kernel/emulation/segment_ctrl.c
modules/plex86/kernel/emulation/segment_pro.c
modules/plex86/kernel/emulation/shift16.c
modules/plex86/kernel/emulation/shift32.c
modules/plex86/kernel/emulation/shift8.c
modules/plex86/kernel/emulation/soft_int.c
modules/plex86/kernel/emulation/stack.c
modules/plex86/kernel/emulation/stack_pro.c
modules/plex86/kernel/emulation/string.c
modules/plex86/kernel/emulation/tasking.c
modules/plex86/kernel/emulation/vm8086.c
modules/plex86/kernel/freebsd/
modules/plex86/kernel/freebsd/CVS/
modules/plex86/kernel/freebsd/CVS/Root
modules/plex86/kernel/freebsd/CVS/Repository
modules/plex86/kernel/freebsd/CVS/Entries
modules/plex86/kernel/freebsd/Makefile
modules/plex86/kernel/include/
modules/plex86/kernel/include/CVS/
modules/plex86/kernel/include/CVS/Root
modules/plex86/kernel/include/CVS/Repository
modules/plex86/kernel/include/CVS/Entries
modules/plex86/kernel/include/_ioport.h_
modules/plex86/kernel/include/crx.h
modules/plex86/kernel/include/descriptor2.h
modules/plex86/kernel/include/dt.h
modules/plex86/kernel/include/eflags.h
modules/plex86/kernel/include/emulation.h
modules/plex86/kernel/include/fetchdecode.h
modules/plex86/kernel/include/guest_context.h
modules/plex86/kernel/include/instrument.h
modules/plex86/kernel/include/iodev-protos.h
modules/plex86/kernel/include/iodev.h
modules/plex86/kernel/include/misc-protos.h
modules/plex86/kernel/include/misc.h
modules/plex86/kernel/include/monitor.h
modules/plex86/kernel/include/paging.h
modules/plex86/kernel/include/pic-protos.h
modules/plex86/kernel/include/pic.h
modules/plex86/kernel/include/pit-protos.h
modules/plex86/kernel/include/pit.h
modules/plex86/kernel/include/tss.h
modules/plex86/kernel/iodev/
modules/plex86/kernel/iodev/CVS/
modules/plex86/kernel/iodev/CVS/Root
modules/plex86/kernel/iodev/CVS/Repository
modules/plex86/kernel/iodev/CVS/Entries
modules/plex86/kernel/iodev/Makefile.in
modules/plex86/kernel/iodev/iodev-host.c
modules/plex86/kernel/iodev/misc-mon.c
modules/plex86/kernel/iodev/misc-nexus.c
modules/plex86/kernel/iodev/pic-mon.c
modules/plex86/kernel/iodev/pic-nexus.c
modules/plex86/kernel/iodev/pit-mon.c
modules/plex86/kernel/iodev/pit-nexus.c
modules/plex86/debian/
modules/plex86/debian/control.template
modules/plex86/debian/config
modules/plex86/debian/modules-conf-plex86
modules/plex86/debian/dirs.template
modules/plex86/debian/templates
modules/plex86/debian/postinst
modules/plex86/debian/postrm
modules/plex86/debian/rules
modules/plex86/debian/changelog
modules/plex86/debian/copyright
modules/plex86/plex86.h
modules/plex86/descriptor.h
modules/plex86/ChangeLog
modules/plex86/Makefile.in
modules/plex86/config.h.in
modules/plex86/configure
sed 's/#KVERS#/2.6.5-1-686-smp/g' debian/control.template >
debian/control
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
dh_clean
rm /usr/src/modules/plex86/debian/control
rm /usr/src/modules/plex86/debian/dirs
rm: cannot remove `/usr/src/modules/plex86/debian/dirs': No such file or
directory
make: [clean] Error 1 (ignored)
/usr/bin/make -C kernel dist-clean
make[1]: Entering directory `/usr/src/modules/plex86/kernel'
make[1]: *** No rule to make target `dist-clean'.  Stop.
make[1]: Leaving directory `/usr/src/modules/plex86/kernel'
make: [clean] Error 2 (ignored)
/bin/rm -f config.status config.cache config.log
/bin/rm -f Makefile config.h
sed 's/#KVERS#/2.6.5-1-686-smp/g' debian/control.template >
debian/control
cp debian/dirs.template debian/dirs
echo lib/modules/2.6.5-1-686-smp/misc >> debian/dirs
dh_testdir
dh_testroot
./configure \
        --host=i386-linux \
        --build=i386-linux \
        --with-linux-source=/usr/src/kernel-headers-2.6.5-1-686-smp
checking for i386-linux-gcc... i386-linux-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i386-linux-gcc accepts -g... yes
checking for i386-linux-gcc option to accept ANSI C... none needed
checking for i386-linux-g++... i386-linux-g++
checking whether we are using the GNU C++ compiler... yes
checking whether i386-linux-g++ accepts -g... yes
checking whether make sets $(MAKE)... yes
checking for i386-linux-ranlib... no
checking for ranlib... ranlib
checking how to run the C preprocessor... i386-linux-gcc -E
checking for X... no
checking for inline... inline
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unsigned char... yes
checking size of unsigned char... 1
checking for unsigned short... yes
checking size of unsigned short... 2
checking for unsigned int... yes
checking size of unsigned int... 4
checking for unsigned long... yes
checking size of unsigned long... 4
checking for unsigned long long... yes
checking size of unsigned long long... 8
checking for select... yes
checking for dlopen in -ldl... yes
checking for instrumentation support... yes
checking for CDROM support... yes
checking for Sound Blaster 16 support... no
checking for split hard disk image support... yes
checking for NE2000 support... no
checking for i440FX PCI support... no
checking for VBE support... yes
configure: creating ./config.status
config.status: creating kernel/Makefile
config.status: creating kernel/emulation/Makefile
config.status: creating kernel/dt/Makefile
config.status: creating kernel/iodev/Makefile
config.status: creating config.h
touch configure-stamp
dh_testdir
dh_testroot
/usr/bin/make -C kernel
make[1]: Entering directory `/usr/src/modules/plex86/kernel'
i386-linux-gcc -c -g -O2 -Wall -Wstrict-prototypes -fno-strength-reduce
-fomit-frame-pointer -malign-loops=2 -malign-jumps=2 -malign-functions=2
-D__KERNEL__ -I/usr/src/kernel-headers-2.6.5-1-686-smp/include -DCPU=586
-DMODULE -I./include -I./.. host-linux.c
cc1: warning: -malign-loops is obsolete, use -falign-loops
cc1: warning: -malign-jumps is obsolete, use -falign-jumps
cc1: warning: -malign-functions is obsolete, use -falign-functions
host-linux.c:27:31: linux/modversions.h: No such file or directory
In file included from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/processor.h:18,
                 from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/thread_info.h:13,
                 from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/linux/thread_info.h:21,
                 from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/linux/spinlock.h:12,
                 from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/linux/capability.h:45,
                 from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/linux/sched.h:7,
                 from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/linux/module.h:10,
                 from host-linux.c:28:
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/system.h: In
function `__set_64bit_var':
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/system.h:193:
warning: dereferencing type-punned pointer will break strict-aliasing
rules
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/system.h:193:
warning: dereferencing type-punned pointer will break strict-aliasing
rules
In file included from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/smp.h:18,
                 from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/linux/smp.h:17,
                 from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/linux/sched.h:23,
                 from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/linux/module.h:10,
                 from host-linux.c:28:
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/mpspec.h:6:25:
mach_mpspec.h: No such file or directory
In file included from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/smp.h:18,
                 from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/linux/smp.h:17,
                 from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/linux/sched.h:23,
                 from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/linux/module.h:10,
                 from host-linux.c:28:
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/mpspec.h: At top
level:
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/mpspec.h:8: error:
`MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/mpspec.h:9: error:
`MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/mpspec.h:10: error:
`MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/mpspec.h:12: error:
`MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/mpspec.h:19: error:
`MAX_APICS' undeclared here (not in a function)
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/mpspec.h:20: error:
`MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/mpspec.h:20: error:
conflicting types for `mp_bus_id_to_type'
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/mpspec.h:8: error:
previous declaration of `mp_bus_id_to_type'
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/mpspec.h:22: error:
`MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/mpspec.h:24: error:
`MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/mpspec.h:24: error:
conflicting types for `mp_bus_id_to_pci_bus'
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/mpspec.h:12: error:
previous declaration of `mp_bus_id_to_pci_bus'
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/mpspec.h:43: error:
`MAX_APICS' undeclared here (not in a function)
In file included from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/smp.h:20,
                 from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/linux/smp.h:17,
                 from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/linux/sched.h:23,
                 from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/linux/module.h:10,
                 from host-linux.c:28:
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/io_apic.h:160:
error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/io_apic.h:160:
error: conflicting types for `mp_irqs'
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/mpspec.h:22: error:
previous declaration of `mp_irqs'
In file included from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/linux/smp.h:17,
                 from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/linux/sched.h:23,
                 from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/linux/module.h:10,
                 from host-linux.c:28:
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/smp.h:71:26:
mach_apicdef.h: No such file or directory
In file included from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/linux/smp.h:17,
                 from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/linux/sched.h:23,
                 from
/usr/src/kernel-headers-2.6.5-1-686-smp/include/linux/module.h:10,
                 from host-linux.c:28:
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/smp.h: In function
`hard_smp_processor_id':
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/smp.h:75: warning:
implicit declaration of function `GET_APIC_ID'
host-linux.c:34:27: linux/wrapper.h: No such file or directory
In file included from host-linux.c:36:
/usr/src/kernel-headers-2.6.5-1-686-smp/include/asm/irq.h:16:25:
irq_vectors.h: No such file or directory
host-linux.c: At top level:
host-linux.c:168: error: parse error before "my_devfs_entry"
host-linux.c:168: warning: type defaults to `int' in declaration of
`my_devfs_entry'
host-linux.c:168: warning: data definition has no type or storage class
host-linux.c: In function `init_module':
host-linux.c:227: warning: implicit declaration of function
`devfs_register'
host-linux.c:228: error: `DEVFS_FL_DEFAULT' undeclared (first use in
this function)
host-linux.c:228: error: (Each undeclared identifier is reported only
once
host-linux.c:228: error: for each function it appears in.)
host-linux.c:251: warning: implicit declaration of function
`register_symtab'
host-linux.c: In function `cleanup_module':
host-linux.c:286: warning: implicit declaration of function
`devfs_unregister'
host-linux.c: In function `plex86_ioctl':
host-linux.c:427: error: invalid operands to binary !=
host-linux.c:757:2: warning: #warning "fix this kludge"
host-linux.c: In function `plex86_mmap':
host-linux.c:763: warning: passing arg 1 of `remap_page_range' makes
pointer from integer without a cast
host-linux.c:763: error: incompatible type for argument 4 of
`remap_page_range'
host-linux.c:763: error: too few arguments to function
`remap_page_range'
host-linux.c:791: warning: passing arg 1 of `remap_page_range' makes
pointer from integer without a cast
host-linux.c:791: error: incompatible type for argument 4 of
`remap_page_range'
host-linux.c:791: error: too few arguments to function
`remap_page_range'
host-linux.c: In function `retrieve_monitor_pages':
host-linux.c:908: error: structure has no member named `size'
host-linux.c: In function `host_idle':
host-linux.c:1044: error: structure has no member named `need_resched'
host-linux.c: In function `host_alloc_page':
host-linux.c:1106: warning: implicit declaration of function
`get_free_page'
make[1]: *** [host-linux.o] Error 1
make[1]: Leaving directory `/usr/src/modules/plex86/kernel'
make: *** [build-stamp] Error 2




Reply to: