On 8/24/06, Romo <[EMAIL PROTECTED]> wrote:
Hola David...
decías, el 24-ago-2006 [09:35 +0200]:
> On 8/23/06, Lord Steve Ataucuri Cruz <[EMAIL PROTECTED]> 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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iD8DBQFE7gzfKtgJA9r86jERAmHNAKCGBfIk0ZTuwDHCA4nU8K8/iCk/EACaAoZ2
b/TPE9aEXAycrI2N0OnpcMg=
=+rFL
-----END PGP SIGNATURE-----
Hola de nuvo, perdón por lo peasao que soy,
esto es lo que tengo en /usr/src
rea:/usr/src# ls -lrt
total 191880
-rw-r--r-- 1 root src 317440 Nov 4 2005 pwc-10.0.9.tar
-rw-r--r-- 1 root root 195952640 Jul 15 10:24 kernel-source-2.6.8.tar
drwxr-xr-x 3 root root 4096 Aug 24 21:35 kernel-headers-2.6.8-3-686
drwxr-xr-x 18 root root 4096 Aug 24 22:45 kernel-source-2.6.8
lrwxrwxrwx 1 root src 26 Aug 24 22:51 linux ->
kernel-headers-2.6.8-3-686
drwxr-xr-x 3 root root 4096 Aug 24 22:53 pwc-10.0.9
y esto el contenido de kernel-headers:
rea:/usr/src/kernel-headers-2.6.8-3-686# ls -lrt
total 220
-rw-r--r-- 1 root root 213207 Jul 15 12:58 Module.symvers
lrwxrwxrwx 1 root root 32 Aug 24 21:27 kernel ->
../kernel-headers-2.6.8-3/kernel
lrwxrwxrwx 1 root root 29 Aug 24 21:27 ipc -> ../kernel-headers-2.6.8-3/ipc
lrwxrwxrwx 1 root root 30 Aug 24 21:27 init ->
../kernel-headers-2.6.8-3/init
drwxr-xr-x 4 root root 4096 Aug 24 21:27 include
lrwxrwxrwx 1 root root 28 Aug 24 21:27 fs -> ../kernel-headers-2.6.8-3/fs
lrwxrwxrwx 1 root root 33 Aug 24 21:27 drivers ->
../kernel-headers-2.6.8-3/drivers
lrwxrwxrwx 1 root root 32 Aug 24 21:27 crypto ->
../kernel-headers-2.6.8-3/crypto
lrwxrwxrwx 1 root root 30 Aug 24 21:27 arch ->
../kernel-headers-2.6.8-3/arch
lrwxrwxrwx 1 root root 34 Aug 24 21:27 Makefile ->
../kernel-headers-2.6.8-3/Makefile
lrwxrwxrwx 1 root root 29 Aug 24 21:27 usr -> ../kernel-headers-2.6.8-3/usr
lrwxrwxrwx 1 root root 31 Aug 24 21:27 sound ->
../kernel-headers-2.6.8-3/sound
lrwxrwxrwx 1 root root 34 Aug 24 21:27 security ->
../kernel-headers-2.6.8-3/security
lrwxrwxrwx 1 root root 33 Aug 24 21:27 scripts ->
../kernel-headers-2.6.8-3/scripts
lrwxrwxrwx 1 root root 29 Aug 24 21:27 net -> ../kernel-headers-2.6.8-3/net
lrwxrwxrwx 1 root root 28 Aug 24 21:27 mm -> ../kernel-headers-2.6.8-3/mm
lrwxrwxrwx 1 root root 29 Aug 24 21:27 lib -> ../kernel-headers-2.6.8-3/lib
lrwxrwxrwx 1 root root 36 Aug 24 21:29 kernel-headers-2.6.8-3-686
-> /usr/src/kernel-headers-2.6.8-3-686/
lrwxrwxrwx 1 root root 28 Aug 24 21:35 kernel-source-2.6.8 ->
/usr/src/kernel-source-2.6.8
si ahora ejecuo make desde pwc....
me sale mil errores que por lo que creo es que no encuentra nada mirar
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,.........................
.............................
y muchos errores más al final acaba de esta manera..
include/linux/fs.h:447: error: storage size of `i_data' isn't known
include/linux/fs.h:574: error: storage size of `f_owner' isn't known
include/linux/fs.h:745: error: storage size of `s_umount' isn't known
include/linux/fs.h:746: error: storage size of `s_lock' isn't known
include/linux/fs.h:773: error: storage size of `s_vfs_rename_sem' isn't known
include/linux/videodev2.h:379: error: storage size of `timecode' isn't known
include/linux/videodev2.h:462: error: storage size of `timeperframe' isn't known
include/linux/videodev2.h:561: error: storage size of `frameperiod' isn't known
/usr/src/pwc-10.0.9/pwc-if.c:152: error: storage size of `pwc_fops' isn't known
/usr/src/pwc-10.0.9/pwc-if.c:1026: error: storage size of
`class_device_attr_pan_tilt' isn't known
/usr/src/pwc-10.0.9/pwc-if.c:1037: error: storage size of
`class_device_attr_button' isn't known
make[2]: *** [/usr/src/pwc-10.0.9/pwc-if.o] Error 1
make[1]: *** [_module_/usr/src/pwc-10.0.9] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.6.8'
make: *** [default] Error 2
por cierto el contenido de lib/modules/2.6.8-3-686 es el siguiente:
el link build no estaba lo cree creo ya de tanto toquetear....
rea:/lib/modules/2.6.8-3-686# ls -lrt
total 820
lrwxrwxrwx 1 root root 53 Aug 22 20:41 source ->
/tmp/buildd/kernel-image-2.6.8-i386-2.6.8/install-686
drwxr-xr-x 10 root root 4096 Aug 22 20:41 kernel
drwxr-xr-x 2 root root 4096 Aug 22 20:41 initrd
drwxr-xr-x 2 root root 4096 Aug 22 20:41 boot
-rw-r--r-- 1 root root 157116 Aug 22 20:41 modules.usbmap
-rw-r--r-- 1 root root 104901 Aug 22 20:41 modules.symbols
-rw-r--r-- 1 root root 131958 Aug 22 20:41 modules.pcimap
-rw-r--r-- 1 root root 16427 Aug 22 20:41 modules.isapnpmap
-rw-r--r-- 1 root root 1061 Aug 22 20:41 modules.inputmap
-rw-r--r-- 1 root root 517 Aug 22 20:41 modules.ieee1394map
-rw-r--r-- 1 root root 233307 Aug 22 20:41 modules.dep
-rw-r--r-- 1 root root 69 Aug 22 20:41 modules.ccwmap
-rw-r--r-- 1 root root 138720 Aug 22 20:41 modules.alias
lrwxrwxrwx 1 root root 29 Aug 24 21:37 build ->
/usr/src/kernel-source-2.6.8
en fin creo que nunca conseguire compilar este modulo....
gracias a todos por la ayuda!!!!