Boa noite!
Estava tentando compilar um modulo no mandrake mas pedia para istalar o
kernel-sources, procurei e j� tinha instalado, s� que no mandrake 9 eles
colocaram um esquema diferente n�o sei porque e eu estou apanhando dele,
abaixo eu coloquei o ./configure para o modulo, ele diz que falta o
arquivo modversions.h, depois de muito procurar consegui acha-lo e
configurar corretamente, mas mesmo assim n�o o encontrava, ent�o decidi
olha-lo(segunda parte abaixo).
Poderias me explicar exatamente como fa�o o que esta indicado abaixo,
pois eu n�o entendi muito bem e duvido que v� ser o unico com
dificuldades para isto. Na lista eu li algo sobre as mudan�as da
mandrake no 9, mas n�o pensei que tivessem criado esta complica��o.
Obrigado por qualquer ajuda
Fernando Correa da Concei��o
[root@localhost pctel-0.8.6]# ./configure --with-hal=cm8738
--with-kernel-includes=/usr/include
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking build driver for... HAL_CM8738
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking whether make sets ${MAKE}... (cached) yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for mawk... no
checking for gawk... gawk
checking for /usr/include/linux/modversions.h... no
configure: error: modversions.h is missing - you should configure your
kernel first!
modversions.h
#error "======================================================="
#error "You should not include /usr/include/{linux,asm}/ header"
#error "files directly for the compilation of kernel modules."
#error ""
#error "glibc now uses kernel header files from a well-defined"
#error "working kernel version (as recommended by Linus Torvalds)"
#error "These files are glibc internal and may not match the"
#error "currently running kernel. They should only be"
#error "included via other system header files - user space"
#error "programs should not directly include <linux/*.h> or"
#error "<asm/*.h> as well."
#error ""
#error "To build kernel modules please do the following:"
#error ""
#error " o Have the kernel sources installed"
#error ""
#error " o Make sure that the symbolic link"
#error " /lib/modules/`uname -r`/build exists and points to"
#error " the matching kernel source directory"
#error ""
#error " o Now copy /boot/vmlinuz.version.h to"
#error " /lib/modules/`uname -r`/build/include/linux/version.h"
#error ""
#error " o When compiling, make sure to use the following"
#error " compiler option to use the correct include files:"
#error ""
#error " -I/lib/modules/`uname -r`/build/include"
#error ""
#error " instead of"
#error ""
#error " -I/usr/include/linux"
#error ""
#error " Please adjust the Makefile accordingly."
#error "======================================================="
Assinantes em 30/11/2002: 2266
Mensagens recebidas desde 07/01/1999: 192149
Historico e [des]cadastramento: http://linux-br.conectiva.com.br
Assuntos administrativos e problemas com a lista:
mailto:[EMAIL PROTECTED]
(linux-br) Problemas para compilar modulos e programas no Mandrake 9.0
Fernando Correa Da Concei��o Sat, 30 Nov 2002 18:40:29 -0800
