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

Re: Compilando modulo pwc en kernel 2.6.8



Hola David...

decías, el 24-ago-2006 [09:35 +0200]:

> On 8/23/06, Lord Steve Ataucuri Cruz <sataucuri@gmail.com> wrote:
> >
> >no encuentra el link a tu kernel crealo
> >  ln -s /path-kernel-headers
> >/lib/modules/2.6.8-2.386/build
> >ahora hace para que veas :
> >   ls -l /lib/modules/2.6.8-2.386/build
> >esto te  debe votar las fuentes instaladas
> >
> Hola
> 
> he probado lo que me dices, me da este error cree el link de esta manera
> 
> uname -a
> Linux rea 2.6.8-3-686 #1 Sat Jul 15 10:32:25 UTC 2006 i686 GNU/Linux
> 
> ln -s /usr/src/kernel-headers-2.6.8-3-686/  /lib/modules/2.6.8-3-686/build
> 
> 
> /usr/src/pwc-10.0.9# make
> make -C /lib/modules/2.6.8-3-686/build SUBDIRS=/usr/src/pwc-10.0.9 modules
> make[1]: Entering directory `/usr/src/kernel-headers-2.6.8-3-686'
> make[1]: Makefile: No such file or directory
> make[1]: *** No rule to make target `Makefile'.  Stop.
> make[1]: Leaving directory `/usr/src/kernel-headers-2.6.8-3-686'
> make: *** [default] Error 2
> 
> la verdad es que me estoy haciendo un lio ya no se si el link lo tengo
> que hacer a las headers o al source... aqui lo hice a las headers pero
> no encuentra por lo visto el fichero makefile cosa normal cuando veo
> el contenido de las headers....
> 
> 
> :/usr/src/kernel-headers-2.6.8-3-686# ls -l
> total 220
> lrwxrwxrwx  1 root root     34 Aug 24 21:14 Makefile ->
> ../kernel-headers-2.6.8-3/Makefile
> -rw-r--r--  1 root root 213207 Jul 15 12:58 Module.symvers
> lrwxrwxrwx  1 root root     30 Aug 24 21:14 arch ->
> ../kernel-headers-2.6.8-3/arch
> lrwxrwxrwx  1 root root     32 Aug 24 21:14 crypto ->
> ../kernel-headers-2.6.8-3/crypto
> lrwxrwxrwx  1 root root     33 Aug 24 21:14 drivers ->
> ../kernel-headers-2.6.8-3/drivers
> lrwxrwxrwx  1 root root     28 Aug 24 21:14 fs -> 
> ../kernel-headers-2.6.8-3/fs
> drwxr-xr-x  4 root root   4096 Aug 24 21:14 include
> lrwxrwxrwx  1 root root     30 Aug 24 21:14 init ->
> ../kernel-headers-2.6.8-3/init
> lrwxrwxrwx  1 root root     29 Aug 24 21:14 ipc -> 
> ../kernel-headers-2.6.8-3/ipc
> lrwxrwxrwx  1 root root     32 Aug 24 21:14 kernel ->
> ../kernel-headers-2.6.8-3/kernel
> lrwxrwxrwx  1 root root     29 Aug 24 21:14 lib -> 
> ../kernel-headers-2.6.8-3/lib
> lrwxrwxrwx  1 root root     28 Aug 24 21:14 mm -> 
> ../kernel-headers-2.6.8-3/mm
> lrwxrwxrwx  1 root root     29 Aug 24 21:14 net -> 
> ../kernel-headers-2.6.8-3/net
> lrwxrwxrwx  1 root root     33 Aug 24 21:14 scripts ->
> ../kernel-headers-2.6.8-3/scripts
> lrwxrwxrwx  1 root root     34 Aug 24 21:14 security ->
> ../kernel-headers-2.6.8-3/security
> lrwxrwxrwx  1 root root     31 Aug 24 21:14 sound ->
> ../kernel-headers-2.6.8-3/sound
> lrwxrwxrwx  1 root root     29 Aug 24 21:14 usr -> 
> ../kernel-headers-2.6.8-3/usr
> 
> son casi todo links? que apuntan así mismo?¿
> 
> una cosa que quiero aclarar es que i kernel es de los que estan
> precompilados, quiero decir que yo no lo he compilado para mi maquina,
> sino apt-get....
> 
> por cierto si creo el link pero esta ves hacia las sources, allí si
> encuentra el mahefile pero me sales chorrociento de errores... como
> estos:
> 
> 
> 
> :/usr/src/pwc-10.0.9# make
> make -C /lib/modules/2.6.8-3-686/build SUBDIRS=/usr/src/pwc-10.0.9 modules
> make[1]: Entering directory `/usr/src/kernel-source-2.6.8'
> Makefile:418: .config: No such file or directory
>  CC [M]  /usr/src/pwc-10.0.9/pwc-if.o
> In file included from /usr/src/pwc-10.0.9/pwc-if.c:58:
> include/linux/errno.h:4:23: asm/errno.h: No such file or directory
> In file included from include/linux/init.h:4,
>                 from /usr/src/pwc-10.0.9/pwc-if.c:59:
> include/linux/config.h:4:28: linux/autoconf.h: No such file or directory
> In file included from include/linux/mm.h:4,
>                 from /usr/src/pwc-10.0.9/pwc-if.c:60:
> include/linux/sched.h:4:37: asm/param.h: No such file or directory
> In file included from include/linux/posix_types.h:47,
>                 from include/linux/types.h:13,
>                 from include/linux/capability.h:16,
>                 from include/linux/sched.h:7,
>                 from include/linux/mm.h:4,
>                 from /usr/src/pwc-10.0.9/pwc-if.c:60:
> /usr/lib/gcc-lib/i486-linux/3.3.5/include/asm/posix_types.h:13:22:
> features.h: No such file or directory
> /usr/lib/gcc-lib/i486-linux/3.3.5/include/asm/posix_types.h:14:35: no
> include path in which to find asm/posix_types.h
> In file included from include/linux/capability.h:16,
>                 from include/linux/sched.h:7,
>                 from include/linux/mm.h:4,
>                 from /usr/src/pwc-10.0.9/pwc-if.c:60:
> include/linux/types.h:14:23: asm/types.h: No such file or directory
> In file included from include/linux/capability.h:16,
>                 from include/linux/sched.h:7,
>                 from include/linux/mm.h:4,
>                 from /usr/src/pwc-10.0.9/pwc-if.c:60:
> include/linux/types.h:18: error: syntax error before "__kernel_dev_t"
> include/linux/types.h:18: warning: type defaults to `int' in
> declaration of `__kernel_dev_t'
> include/linux/types.h:18: warning: data definition has no type or storage 
> class
> include/linux/types.h:21: error: syntax error before "dev_t"
> include/linux/types.h:21: warning: type defaults to `int' in
> declaration of `dev_t'
> include/linux/types.h:21: warning: data definition has no type or storage 
> class
> include/linux/types.h:22: error: syntax error before "ino_t"
> include/linux/types.h:22: warning: type defaults to `int' in
> declaration of `ino_t'
> include/linux/types.h:22: warning: data definition has no type or storage 
> class
> include/linux/types.h:23: error: syntax error before "mode_t"
> include/linux/types.h:23: warning: type defaults to `int' in
> declaration of `mode_t'
> include/linux/types.h:23: warning: data definition has no type or storage 
> class
> include/linux/types.h:24: error: syntax error before "nlink_t"
> include/linux/types.h:24: warning: type defaults to `int' in
> declaration of `nlink_t'
> include/linux/types.h:24: warning: data definition has no type or storage 
> class
> include/linux/types.h:25: error: syntax error before "off_t"
> include/linux/types.h:25: warning: type defaults to `int' in
> declaration of `off_t'
> include/linux/types.h:25: warning: data definition has no type or storage 
> class
> include/linux/types.h:26: error: syntax error before "pid_t"
> include/linux/types.h:26: warning: type defaults to `int' in
> declaration of `pid_t'
> include/linux/types.h:26: warning: data definition has no type or storage 
> class
> include/linux/types.h:27: error: syntax error before "daddr_t"
> include/linux/types.h:27: warning: type defaults to `int' in
> declaration of `daddr_t'
> include/linux/types.h:27: warning: data definition has no type or storage 
> class
> include/linux/types.h:29: error: syntax error before "suseconds_t"
> include/linux/types.h:29: warning: type defaults to `int' in
> declaration of `suseconds_t'
> include/linux/types.h:29: warning: data definition has no type or storage 
> class
> include/linux/types.h:30: error: syntax error before "timer_t"
> include/linux/types.h:30: warning: type defaults to `int' in
> declaration of `timer_t'
> include/linux/types.h:30: warning: data definition has no type or storage 
> class
> include/linux/types.h:31: error: syntax error before "clockid_t"
> include/linux/types.h:31: warning: type defaults to `int' in
> declaration of `clockid_t'
> include/linux/types.h:31: warning: data definition has no type or storage 
> class
> include/linux/types.h:35: error: syntax error before "uid_t"
> include/linux/types.h:35: warning: type defaults to `int' in
> declaration of `uid_t'
> include/linux/types.h:35: warning: data definition has no type or storage 
> class
> include/linux/types.h:36: error: syntax error before "gid_t"
> include/linux/types.h:36: warning: type defaults to `int' in
> declaration of `gid_t'
> include/linux/types.h:36: warning: data definition has no type or storage 
> class
> 
> en fin un caos...  alguien me puede explicar que esta pasando? parece
> como si no encontrara nada..
> gracias a todos!!!

prueba asi
ln -s /usr/src/kernel-headers-2.6.8-3-686 /usr/src/linux

y compila luego

Attachment: signature.asc
Description: Digital signature


Reply to: