LINUX.ORG.RU

Помогите откомпилировать драйвер сетевухи VT6105


0

0

Добрый день всем! Я сравнительно недавно работаю с LINUX. У меня SLES10, ядро 2.6.16 Понадобилось мне поставить вторую сетевуху VIA RHINE III на чипе VT6105. В И-нете нашел драйвера в исходниках, но не могу откомпилировать. При компиляции ыыдает следующие сообщения:

# make make -C /lib/modules/2.6.16.21-0.8-default/build SUBDIRS=/temp modules make[1]: Entering directory `/usr/src/linux-2.6.16.21-0.8-obj/i386/default' make -C ../../../linux-2.6.16.21-0.8 O=../linux-2.6.16.21-0.8-obj/i386/default modules CC [M] /temp/rhine_main.o /temp/rhine_main.c:61: error: expected ‘)’ before string constant /temp/rhine_main.c:66: error: expected ‘)’ before string constant /temp/rhine_main.c:75: error: expected ‘)’ before string constant /temp/rhine_main.c:87: error: expected ‘)’ before string constant /temp/rhine_main.c:102: error: expected ‘)’ before string constant /temp/rhine_main.c:117: error: expected ‘)’ before string constant /temp/rhine_main.c:124: error: expected ‘)’ before string constant /temp/rhine_main.c:133: error: expected ‘)’ before string constant /temp/rhine_main.c:141: error: expected ‘)’ before string constant /temp/rhine_main.c:150: error: expected ‘)’ before string constant /temp/rhine_main.c:161: error: expected ‘)’ before string constant /temp/rhine_main.c:177: error: expected ‘)’ before string constant /temp/rhine_main.c:184: error: expected ‘)’ before string constant /temp/rhine_main.c:196: error: expected ‘)’ before string constant /temp/rhine_main.c:202: error: expected ‘)’ before string constant /temp/rhine_main.c:2019: warning: initialization from incompatible pointer type /temp/rhine_main.c: In function ‘rhine_ethtool_ioctl’: /temp/rhine_main.c:2753: error: ‘struct pci_dev’ has no member named ‘slot_name’ /temp/rhine_main.c: In function ‘rhine_suspend’: /temp/rhine_main.c:2926: error: too many arguments to function ‘pci_save_state’ /temp/rhine_main.c: In function ‘rhine_resume’: /temp/rhine_main.c:2960: error: too many arguments to function ‘pci_restore_state’ make[4]: *** [/temp/rhine_main.o] Ошибка 1 make[3]: *** [_module_/temp] Ошибка 2 make[2]: *** [modules] Ошибка 2 make[1]: *** [modules] Ошибка 2 make[1]: Leaving directory `/usr/src/linux-2.6.16.21-0.8-obj/i386/default' make: *** [default] Ошибка 2

Прочитал доку, которая шла с драйверами, нет там решения. Подскажите, пожалуйста, что можно сделать?

anonymous

Ответ на: комментарий от Anoxemian

У меня компилятор gcc 4.1.0. И что сейчас ставить другой компилятор, или можно где-нибудь опцию задать, что-бы этот компилятор косил под правильный?

anonymous
()
Ответ на: комментарий от Deleted

Точно, есть. Большое спасибо, а то бы сейчас долбился дальше.

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.