PDA

Visualizza la versione completa : Problema Compilazione


Il Muna
18-09-2004, 16:35
Ho avuto questo output nella compilazione dei driver per il modem usb zyxel 630-11 , mi sapete dire dove sta l'errore....

[root@localhost src]# cp /usr/src/linux/drivers/usb/misc/speedtch.c /home/alex/amedyn/module/xdslusb.c
cp: sovrascrivo `/home/alex/amedyn/module/xdslusb.c'? s
[root@localhost src]# cd /home/alex/amedyn
[root@localhost amedyn]# make
cd init && make clean
make[1]: Entering directory `/home/alex/amedyn/init'
rm -f amload amioctl amloaddbg amloaddbgt
make[1]: Leaving directory `/home/alex/amedyn/init'
cd module && make clean
make[1]: Entering directory `/home/alex/amedyn/module'
rm -f *.o .*.flags *.ko *.mod.* .*.o.cmd .*.ko.cmd
make[1]: Leaving directory `/home/alex/amedyn/module'
cd bridged && make clean
make[1]: Entering directory `/home/alex/amedyn/bridged'
rm -f br2684ctl
make[1]: Leaving directory `/home/alex/amedyn/bridged'
cd amcontrol && make clean
make[1]: Entering directory `/home/alex/amedyn/amcontrol'
rm -f amcontrol amcontroldbg amcontroldbgt
make[1]: Leaving directory `/home/alex/amedyn/amcontrol'
cd init && make && make install
make[1]: Entering directory `/home/alex/amedyn/init'
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -pipe -march=i686 -Wall -DLINUX -Wsign-compare -I../include -lusb amload.c -o amload
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -pipe -march=i686 -Wall -DLINUX -Wsign-compare -I../include -lusb amioctl.c -o amioctl
make[1]: Leaving directory `/home/alex/amedyn/init'
make[1]: Entering directory `/home/alex/amedyn/init'
install -c -m 755 -p amload amioctl /usr/sbin
make[1]: Leaving directory `/home/alex/amedyn/init'
cd firmware && make
make[1]: Entering directory `/home/alex/amedyn/firmware'
install -c -m 644 -p fw-usb.bin Fw-usb_A.bin /usr/sbin
make[1]: Leaving directory `/home/alex/amedyn/firmware'
cd module && make && make install
make[1]: Entering directory `/home/alex/amedyn/module'
rm -f xdslusb_2.6.o
make -C /lib/modules/2.6.3-7mdk/build SUBDIRS=/home/alex/amedyn/module XDSLUSB-MODULE=amedyn modules
make[2]: Entering directory `/usr/src/linux-2.6.3-7mdk'
CC scripts/empty.o
MKELF scripts/elfconfig.h
HOSTCC scripts/file2alias.o
HOSTCC scripts/modpost.o
HOSTLD scripts/modpost
SPLIT include/linux/autoconf.h -> include/config/*
*** Warning: Overriding SUBDIRS on the command line can cause
*** inconsistencies
CC arch/i386/kernel/asm-offsets.s
CHK include/asm-i386/asm_offsets.h
CC [M] /home/alex/amedyn/module/xdslusb_2.6.o
LD [M] /home/alex/amedyn/module/amedyn.o
Building modules, stage 2.
MODPOST
CC /home/alex/amedyn/module/amedyn.mod.o
LD [M] /home/alex/amedyn/module/amedyn.ko
make[2]: Leaving directory `/usr/src/linux-2.6.3-7mdk'
rm -f xdslusb_2.6.o
make -C /lib/modules/2.6.3-7mdk/build SUBDIRS=/home/alex/amedyn/module XDSLUSB-MODULE=amedyndbg EXTRA_CFLAGS="-DDEBUG -DVERBOSE_DEBUG" modules
make[2]: Entering directory `/usr/src/linux-2.6.3-7mdk'
CC scripts/empty.o
MKELF scripts/elfconfig.h
HOSTCC scripts/file2alias.o
HOSTCC scripts/modpost.o
HOSTLD scripts/modpost
*** Warning: Overriding SUBDIRS on the command line can cause
*** inconsistencies
CC arch/i386/kernel/asm-offsets.s
CHK include/asm-i386/asm_offsets.h
CC [M] /home/alex/amedyn/module/xdslusb_2.6.o
LD [M] /home/alex/amedyn/module/amedyndbg.o
Building modules, stage 2.
MODPOST
CC /home/alex/amedyn/module/amedyndbg.mod.o
LD [M] /home/alex/amedyn/module/amedyndbg.ko
CC /home/alex/amedyn/module/amedyn.mod.o
LD [M] /home/alex/amedyn/module/amedyn.ko
make[2]: Leaving directory `/usr/src/linux-2.6.3-7mdk'
make[1]: Leaving directory `/home/alex/amedyn/module'
make[1]: Entering directory `/home/alex/amedyn/module'
install -d /lib/modules/2.6.3-7mdk/kernel/drivers/usb
install -c amedyn.ko /lib/modules/2.6.3-7mdk/kernel/drivers/usb
install -c amedyndbg.ko /lib/modules/2.6.3-7mdk/kernel/drivers/usb
depmod -a
make[1]: Leaving directory `/home/alex/amedyn/module'
cd scripts && make
make[1]: Entering directory `/home/alex/amedyn/scripts'
install -c -m 755 -p amload.sh amunload.sh amstart.sh amstop.sh /usr/sbin
install -c -m 755 -p service/amedyn /etc/amedyn.service
if [ ! -f /etc/amedyn ]; then \
install -c -m 644 -p config/amedyn /etc; \
fi
install -c -m 755 -p amnetup.sh amnetdown.sh /usr/sbin
install -c -m 755 -p amnet2up.sh amnet2down.sh /usr/sbin
install -c -m 755 -p amnet3up.sh amnet3down.sh /usr/sbin
install -c -m 755 -p amnet4up.sh amnet4down.sh /usr/sbin
make[1]: Leaving directory `/home/alex/amedyn/scripts'
cd bridged && make && make install
make[1]: Entering directory `/home/alex/amedyn/bridged'
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -pipe -march=i686 -Wall -DLINUX -Wsign-compare -I/lib/modules/2.6.3-7mdk/build/include br2684ctl.c -o br2684ctl -latm -lresolv
br2684ctl.c:9:17: atm.h: No such file or directory
In file included from /lib/modules/2.6.3-7mdk/build/include/linux/atmdev.h:12,
from br2684ctl.c:10:
/lib/modules/2.6.3-7mdk/build/include/linux/atm.h:211: error: parse error before "uint32_t"
/lib/modules/2.6.3-7mdk/build/include/linux/atm.h:211: warning: no semicolon at end of struct or union
/lib/modules/2.6.3-7mdk/build/include/linux/atm.h:211: warning: no semicolon at end of struct or union
/lib/modules/2.6.3-7mdk/build/include/linux/atm.h:212: warning: type defaults to `int' in declaration of `sas_addr'
/lib/modules/2.6.3-7mdk/build/include/linux/atm.h:212: warning: data definition has no type or storage class
/lib/modules/2.6.3-7mdk/build/include/linux/atm.h:213: error: parse error before '}' token
/lib/modules/2.6.3-7mdk/build/include/linux/atm.h:217: error: parameter `addr' has incomplete type
In file included from /lib/modules/2.6.3-7mdk/build/include/linux/atmbr2684.h:5,
from br2684ctl.c:11:
/lib/modules/2.6.3-7mdk/build/include/linux/if.h:136: error: field `ifru_addr' has incomplete type
/lib/modules/2.6.3-7mdk/build/include/linux/if.h:137: error: field `ifru_dstaddr' has incomplete type
/lib/modules/2.6.3-7mdk/build/include/linux/if.h:138: error: field `ifru_broadaddr' has incomplete type
/lib/modules/2.6.3-7mdk/build/include/linux/if.h:139: error: field `ifru_netmask' has incomplete type
/lib/modules/2.6.3-7mdk/build/include/linux/if.h:140: error: field `ifru_hwaddr' has incomplete type
br2684ctl.c: In function `create_br':
br2684ctl.c:60: warning: implicit declaration of function `socket'
br2684ctl.c:60: error: `PF_ATMPVC' undeclared (first use in this function)
br2684ctl.c:60: error: (Each undeclared identifier is reported only once
br2684ctl.c:60: error: for each function it appears in.)
br2684ctl.c:60: error: `SOCK_DGRAM' undeclared (first use in this function)
br2684ctl.c: In function `assign_vcc':
br2684ctl.c:99: warning: implicit declaration of function `text2atm'
br2684ctl.c:99: warning: type-punning to incomplete type might break strict-aliasing rules
br2684ctl.c:99: error: `T2A_PVC' undeclared (first use in this function)
br2684ctl.c:114: error: `PF_ATMPVC' undeclared (first use in this function)
br2684ctl.c:114: error: `SOCK_DGRAM' undeclared (first use in this function)
br2684ctl.c:125: warning: implicit declaration of function `setsockopt'
br2684ctl.c:125: error: `SOL_SOCKET' undeclared (first use in this function)
br2684ctl.c:125: error: `SO_SNDBUF' undeclared (first use in this function)
br2684ctl.c:128: error: `SOL_ATM' undeclared (first use in this function)
br2684ctl.c:131: warning: implicit declaration of function `connect'
br2684ctl.c:131: warning: type-punning to incomplete type might break strict-aliasing rules
make[1]: *** [br2684ctl] Error 1
make[1]: Leaving directory `/home/alex/amedyn/bridged'
make: *** [BRIDGED] Error 2

andy caps
18-09-2004, 17:14
:master: difficile da dirsi
sicuramente gli manca un file difficile sapere quale

br2684ctl.c:9:17: atm.h: No such file or directory

guarda se devi compilare atm prima o installa tutto quello che puo interessarlo :bh:

andy caps
18-09-2004, 17:16
io sulla mandrake ce l'ho
/lib/modules/2.6.8.1-10mdk/kernel/net/atm/br2684.ko.gz

dai un modprobe br2684 e prova a ricompilare

Il Muna
18-09-2004, 18:36
Ok lo tengo per quando lo devo rimettere, funziona il driver, ma non la connessione..... adesso passo a un Aethra Starmodem, che mi stato regalato e speriamo che vada meglio, almeno c' un po' di documentazione...

Loading