Программирование

вопрос о линукс

Lobotr@s 23-03-2012 15:05

http://mydebianblog.blogspot.c...-messanger.html

встал на пункте

/modules/gspca и там выполняем команду:

make

мне выдает
makemake: *** /lib/modules/2.6.32-5-686/build: Нет такого файла или каталога. Останов.
make: *** [default] Ошибка 2

jaw 23-03-2012 16:34

там же написано ниже
quote:

Установи пакет
linux-headers-2.6.26-2-686

Lobotr@s 23-03-2012 16:42

Уже установлена самая новая версия linux-headers-2.6.26-2-686.
Lobotr@s 23-03-2012 16:44

make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/src/modules/gspca CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-5-686'
CC [M] /usr/src/modules/gspca/gspca_core.o
In file included from /usr/src/modules/gspca/gspca_core.c:845:
/usr/src/modules/gspca/utils/spcausb.h: In function 'spca5xxRegRead':
/usr/src/modules/gspca/utils/spcausb.h:95: error: implicit declaration of function 'info'
/usr/src/modules/gspca/utils/spcausb.h: In function 'spca_set_interface':
/usr/src/modules/gspca/utils/spcausb.h:278: error: implicit declaration of function 'warn'
In file included from /usr/src/modules/gspca/gspca_core.c:853:
/usr/src/modules/gspca/Sunplus-jpeg/sp5xxfw2.h: In function 'sp5xxfw2_init':
/usr/src/modules/gspca/Sunplus-jpeg/sp5xxfw2.h:122: error: called object 'info' is not a function
/usr/src/modules/gspca/Sunplus-jpeg/sp5xxfw2.h:136: error: called object 'info' is not a function
/usr/src/modules/gspca/Sunplus-jpeg/sp5xxfw2.h:141: error: called object 'info' is not a function
/usr/src/modules/gspca/Sunplus-jpeg/sp5xxfw2.h:148: error: called object 'info' is not a function
/usr/src/modules/gspca/Sunplus-jpeg/sp5xxfw2.h:176: error: called object 'info' is not a function
/usr/src/modules/gspca/Sunplus-jpeg/sp5xxfw2.h: In function 'sp5xxfw2_start':
/usr/src/modules/gspca/Sunplus-jpeg/sp5xxfw2.h:214: error: called object 'info' is not a function
/usr/src/modules/gspca/Sunplus-jpeg/sp5xxfw2.h:230: error: called object 'info' is not a function
/usr/src/modules/gspca/gspca_core.c: In function 'spca5xx_ioctl':
/usr/src/modules/gspca/gspca_core.c:2463: error: implicit declaration of function 'video_usercopy'
/usr/src/modules/gspca/gspca_core.c: At top level:
/usr/src/modules/gspca/gspca_core.c:2609: error: unknown field 'owner' specified in initializer
/usr/src/modules/gspca/gspca_core.c:2609: warning: initialization from incompatible pointer type
/usr/src/modules/gspca/gspca_core.c:2611: error: unknown field 'type' specified in initializer
/usr/src/modules/gspca/gspca_core.c:2615: warning: initialization from incompatible pointer type
/usr/src/modules/gspca/gspca_core.c: In function 'spca50x_create_sysfs':
/usr/src/modules/gspca/gspca_core.c:2769: error: implicit declaration of function 'video_device_create_file'
/usr/src/modules/gspca/gspca_core.c:2780: error: implicit declaration of function 'video_device_remove_file'
/usr/src/modules/gspca/gspca_core.c: In function 'spca5xx_probe':
/usr/src/modules/gspca/gspca_core.c:4301: error: incompatible types when assigning to type 'struct device' from type 'struct device *'
make[4]: *** [/usr/src/modules/gspca/gspca_core.o] Ошибка 1
make[3]: *** [_module_/usr/src/modules/gspca] Ошибка 2
make[2]: *** [sub-make] Ошибка 2
make[1]: *** [all] Ошибка 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-5-686'
make: *** [default] Ошибка 2
Lobotr@s 23-03-2012 16:45

Уже установлена самая новая версия linux-headers-2.6.32-5-686.
Igel 26-03-2012 09:07

хмм...
sudo aptitude install module-assistant
sudo m-a prepare
sudo module-assistant
может лучше им собрать?
AlexS_25 28-03-2012 15:15

Попробуй удалить все лишнии ядра и заголовочники от них. Оставь какое нить одно ядро и заголовочники от него Было что-то подобное, при сборке часть данных бралась с одних заголовочников а часть с других, оставил одно ядро и заголовочные файлы от него и ура, все заработало )
Сергей 15-04-2012 16:02

ядро 2.6.32 говорит, что тс ставит это дело под squeeze, а gspca-source в squeeze уже нету, есть только в lenny, который уже не поддерживается, можно предположить, что данная вебкамера должна работать из коробки:

ls /lib/modules/2.6.32*/kernel/drivers/media/video/gspca