WishMaster Опубликовано 4 ноября, 2004 Жалоба Опубликовано 4 ноября, 2004 Хочу установить модем ZyXEL ADSL USB EE (Annex A) по инструкции, взятой с http://imho.ws/showthread.php?t=71435 У меня Mandrake 10.1 Дошёл до пятого пункта, а дальше не хочет make'иться - ошибка: [root@localhost src]# patch -p1 < cxacru.patch patching file init/cxioctl.c patching file init/cxload.c patching file module2/xdslusb.c [root@localhost src]# make cd init && make clean make[1]: Entering directory `/usr/src/init' rm -f cxload cxioctl cxloaddbg cxloaddbgt make[1]: Leaving directory `/usr/src/init' cd module && make clean make[1]: Entering directory `/usr/src/module' rm -f cxacrunormal.o sarlib.o sartest cxacru.o cxacrudebug.o cxacrudbg.o version.h make[1]: Leaving directory `/usr/src/module' cd module2 && make clean make[1]: Entering directory `/usr/src/module2' rm -f *.o .*.flags *.ko *.mod.* .*.o.cmd .*.ko.cmd make[1]: Leaving directory `/usr/src/module2' cd sarlib && make clean make[1]: Entering directory `/usr/src/sarlib' /bin/rm -f *.o make[1]: Leaving directory `/usr/src/sarlib' cd panel && make clean make[1]: Entering directory `/usr/src/panel' rm -f cxpanel *.bak make[1]: Leaving directory `/usr/src/panel' cd bridged && make clean make[1]: Entering directory `/usr/src/bridged' rm -f br2684ctl make[1]: Leaving directory `/usr/src/bridged' cd init && make && make install make[1]: Entering directory `/usr/src/init' gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -pipe -march=i686 -Wall -DLINUX -I../include -lusb -lpthread cxload.c -o cxload gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -pipe -march=i686 -Wall -DLINUX -I../include -lusb -lpthread cxioctl.c -o cxioctl make[1]: Leaving directory `/usr/src/init' make[1]: Entering directory `/usr/src/init' install -c -m 755 -p cxload cxioctl /usr/sbin make[1]: Leaving directory `/usr/src/init' cd firmware && make make[1]: Entering directory `/usr/src/firmware' install -c -m 644 -p cxfirm1.bin cxfirm2.bin cxfirm3.bin cxfirm4.bin cxfirm5.bin /usr/sbin make[1]: Leaving directory `/usr/src/firmware' cd module2 && make && make install make[1]: Entering directory `/usr/src/module2' rm -f xdslusb.o make -C /lib/modules/2.6.8.1-10mdksmp/build SUBDIRS=/usr/src/module2 XDSLUSB-MODULE=cxacru modules make[2]: Entering directory `/usr/src/linux-2.6.8.1-10mdk' CC [M] /usr/src/module2/xdslusb.o LD [M] /usr/src/module2/cxacru.o Building modules, stage 2. MODPOST CC /usr/src/module2/cxacru.mod.o LD [M] /usr/src/module2/cxacru.ko make[2]: Leaving directory `/usr/src/linux-2.6.8.1-10mdk' rm -f xdslusb.o make -C /lib/modules/2.6.8.1-10mdksmp/build SUBDIRS=/usr/src/module2 XDSLUSB-MODULE=cxacrudbg EXTRA_CFLAGS="-DDEBUG -DVERBOSE_DEBUG" modules make[2]: Entering directory `/usr/src/linux-2.6.8.1-10mdk' CC [M] /usr/src/module2/xdslusb.o LD [M] /usr/src/module2/cxacrudbg.o Building modules, stage 2. MODPOST CC /usr/src/module2/cxacru.mod.o LD [M] /usr/src/module2/cxacru.ko CC /usr/src/module2/cxacrudbg.mod.o LD [M] /usr/src/module2/cxacrudbg.ko make[2]: Leaving directory `/usr/src/linux-2.6.8.1-10mdk' make[1]: Leaving directory `/usr/src/module2' make[1]: Entering directory `/usr/src/module2' install -d /lib/modules/2.6.8.1-10mdksmp/kernel/drivers/usb install -c cxacru.ko /lib/modules/2.6.8.1-10mdksmp/kernel/drivers/usb install -c cxacrudbg.ko /lib/modules/2.6.8.1-10mdksmp/kernel/drivers/usb depmod -a make[1]: Leaving directory `/usr/src/module2' cd scripts && make make[1]: Entering directory `/usr/src/scripts' install -c -m 755 -p cxload.sh cxunload.sh cxstart.sh cxstop.sh /usr/sbin install -c -m 755 -p service/cxacru /etc/cxacru.service if [ ! -f /etc/cxacru ]; then \ install -c -m 644 -p config/cxacru /etc; \ fi install -c -m 755 -p cxnetup.sh cxnetdown.sh /usr/sbin install -c -m 755 -p cxnet2up.sh cxnet2down.sh /usr/sbin install -c -m 755 -p cxnet3up.sh cxnet3down.sh /usr/sbin install -c -m 755 -p cxnet4up.sh cxnet4down.sh /usr/sbin make[1]: Leaving directory `/usr/src/scripts' cd bridged && make && make install make[1]: Entering directory `/usr/src/bridged' gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -pipe -march=i686 -Wall -DLINUX -I/lib/modules/2.6.8.1-10mdksmp/build/include br2684ctl.c -o br2684ctl -latm br2684ctl.c:8:17: atm.h: No such file or directory In file included from /lib/modules/2.6.8.1-10mdksmp/build/include/linux/atmdev.h:1 2, from br2684ctl.c:9: /lib/modules/2.6.8.1-10mdksmp/build/include/linux/atm.h:212: error: syntax error before "uint32_t" /lib/modules/2.6.8.1-10mdksmp/build/include/linux/atm.h:212: warning: no semicolon at end of struct or union /lib/modules/2.6.8.1-10mdksmp/build/include/linux/atm.h:212: warning: no semicolon at end of struct or union /lib/modules/2.6.8.1-10mdksmp/build/include/linux/atm.h:213: warning: type defaults to `int' in declaration of `sas_addr' /lib/modules/2.6.8.1-10mdksmp/build/include/linux/atm.h:213: warning: data definition has no type or storage class /lib/modules/2.6.8.1-10mdksmp/build/include/linux/atm.h:214: error: syntax error before '}' token /lib/modules/2.6.8.1-10mdksmp/build/include/linux/atm.h:218: error: parameter `addr' has incomplete type In file included from /lib/modules/2.6.8.1-10mdksmp/build/include/linux/atmbr2684. h:5, from br2684ctl.c:10: /lib/modules/2.6.8.1-10mdksmp/build/include/linux/if.h:139: error: field `ifru_addr' has incomplete type /lib/modules/2.6.8.1-10mdksmp/build/include/linux/if.h:140: error: field `ifru_dstaddr' has incomplete type /lib/modules/2.6.8.1-10mdksmp/build/include/linux/if.h:141: error: field `ifru_broadaddr' has incomplete type /lib/modules/2.6.8.1-10mdksmp/build/include/linux/if.h:142: error: field `ifru_netmask' has incomplete type /lib/modules/2.6.8.1-10mdksmp/build/include/linux/if.h:143: error: field `ifru_hwaddr' has incomplete type br2684ctl.c: In function `create_br': br2684ctl.c:59: warning: implicit declaration of function `socket' br2684ctl.c:59: error: `PF_ATMPVC' undeclared (first use in this function) br2684ctl.c:59: error: (Each undeclared identifier is reported only once br2684ctl.c:59: error: for each function it appears in.) br2684ctl.c:59: error: `SOCK_DGRAM' undeclared (first use in this function) br2684ctl.c: In function `assign_vcc': br2684ctl.c:98: warning: implicit declaration of function `text2atm' br2684ctl.c:98: warning: type-punning to incomplete type might break strict-aliasing rules br2684ctl.c:98: error: `T2A_PVC' undeclared (first use in this function) br2684ctl.c:113: error: `PF_ATMPVC' undeclared (first use in this function) br2684ctl.c:113: error: `SOCK_DGRAM' undeclared (first use in this function) br2684ctl.c:124: warning: implicit declaration of function `setsockopt' br2684ctl.c:124: error: `SOL_SOCKET' undeclared (first use in this function) br2684ctl.c:124: error: `SO_SNDBUF' undeclared (first use in this function) br2684ctl.c:127: error: `SOL_ATM' undeclared (first use in this function) br2684ctl.c:130: warning: implicit declaration of function `connect' br2684ctl.c:130: warning: type-punning to incomplete type might break strict-aliasing rules make[1]: *** [br2684ctl] Ошибка 1 make[1]: Leaving directory `/usr/src/bridged' make: *** [bRIDGED] Ошибка 2 [root@localhost src]# Кто-нибудь знает, как это исправить? Напишите, пожалуйста... Цитата
Baltazar Опубликовано 7 ноября, 2004 Жалоба Опубликовано 7 ноября, 2004 Всё, всем спасибо - я всё настроил, сейчас всё работает и пишу я сейчас с Линукса)) Цитата
Рекомендуемые сообщения
Присоединяйтесь к обсуждению
Вы можете написать сейчас и зарегистрироваться позже. Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.