Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 26/10/2006, à 14:43

Bugage

Pb de compilation à cause de "module_parm"

J'ai installé la rc edgy il y a quelques jours, et en voulant recompiler le driver de mon modem (un bewan adsl usb chez tele2) avec ce tuto (auquel j'avais participé roll) : http://doc.ubuntu-fr.org/materiel/modem_adsl_bewan, il m'a indiqué des erreurs dans les sources. En allant aux lignes concernées, j'ai constaté que ce n'était que les commandes "MODULE_PARM(nom_du_paramètre, "i")" ou "MODULE_PARM(nom_du_paramètre, "s")".

Après une recherche sur internet, j'ai trouvé que cette commande avait été remplacée par la commande "module_param(nom_du_paramètre, int, 0)" et "module_param(nom_du_paramètre, charp, 0)".
Bon, alors je remplace tous mes MODULE_PARM, je fais un petit :

clothilde@clothilde-desktop:~$ cd Desktop/unicorn
clothilde@clothilde-desktop:~/Desktop/unicorn$ make clean
for i in adsl_status unicorntest tools libm unicorn_pci unicorn_usb; do (if [ -d $i ]; then make -C $i clean; fi); done
make[1]: entrant dans le répertoire « /home/clothilde/Desktop/unicorn/adsl_status »
Making clean in .
make[2]: entrant dans le répertoire « /home/clothilde/Desktop/unicorn/adsl_status »
make[2]: Rien à faire pour « clean-am ».
make[2]: quittant le répertoire « /home/clothilde/Desktop/unicorn/adsl_status »
Making clean in src
make[2]: entrant dans le répertoire « /home/clothilde/Desktop/unicorn/adsl_status/src »
test -z "bewan_adsl_status" || rm -f bewan_adsl_status
rm -f *.o core *.core
make[2]: quittant le répertoire « /home/clothilde/Desktop/unicorn/adsl_status/src »
Making clean in po
make[2]: entrant dans le répertoire « /home/clothilde/Desktop/unicorn/adsl_status/po »
rm -f *.insert-header
rm -f remove-potcdate.sed
rm -f core core.* bewan_adsl_status.po bewan_adsl_status.1po bewan_adsl_status.2po *.new.po
rm -fr *.o
make[2]: quittant le répertoire « /home/clothilde/Desktop/unicorn/adsl_status/po »
Making clean in intl
make[2]: entrant dans le répertoire « /home/clothilde/Desktop/unicorn/adsl_status/intl »
rm -f *.a *.la *.o *.lo core core.*
rm -f libintl.h charset.alias ref-add.sed ref-del.sed
rm -f -r .libs _libs
make[2]: quittant le répertoire « /home/clothilde/Desktop/unicorn/adsl_status/intl »
Making clean in m4
make[2]: entrant dans le répertoire « /home/clothilde/Desktop/unicorn/adsl_status/m4 »
make[2]: Rien à faire pour « clean ».
make[2]: quittant le répertoire « /home/clothilde/Desktop/unicorn/adsl_status/m4 »
Making clean in intl
make[2]: entrant dans le répertoire « /home/clothilde/Desktop/unicorn/adsl_status/intl »
rm -f *.a *.la *.o *.lo core core.*
rm -f libintl.h charset.alias ref-add.sed ref-del.sed
rm -f -r .libs _libs
make[2]: quittant le répertoire « /home/clothilde/Desktop/unicorn/adsl_status/intl »
make[1]: quittant le répertoire « /home/clothilde/Desktop/unicorn/adsl_status »
make[1]: entrant dans le répertoire « /home/clothilde/Desktop/unicorn/unicorntest »
rm -f unicorntest *.o
make[1]: quittant le répertoire « /home/clothilde/Desktop/unicorn/unicorntest »
make[1]: entrant dans le répertoire « /home/clothilde/Desktop/unicorn/tools »
rm -f unicorn_status unicorn_status.cgi oam_ping *.o
make[1]: quittant le répertoire « /home/clothilde/Desktop/unicorn/tools »
make[1]: entrant dans le répertoire « /home/clothilde/Desktop/unicorn/libm »
/bin/rm -f *~
/bin/rm -f *.s
/bin/rm -f *.o
/bin/rm -f *.a
make[1]: quittant le répertoire « /home/clothilde/Desktop/unicorn/libm »
make[1]: entrant dans le répertoire « /home/clothilde/Desktop/unicorn/unicorn_pci »
/bin/rm -f unicorn_pcidrv.o ../msw/linrapi.o ../msw/msw.o ../msw/crc.o ../amu/amas.o ../amu/amu.o ../amu/bsp_pci.o ../unicorn_atm/unicorn_atmdrv.o
/bin/rm -f unicorn_pcidrv.o ../msw/linrapi.o ../msw/msw.o ../msw/crc.o ../amu/amas.o ../amu/amu.o ../amu/bsp_pci.o ../unicorn_eth/unicorn_ethdrv.o
/bin/rm -f unicorn_pci_atm.* unicorn_pci_eth.*
/bin/rm -f .*.cmd
/bin/rm -rf .tmp_versions
make[1]: quittant le répertoire « /home/clothilde/Desktop/unicorn/unicorn_pci »
make[1]: entrant dans le répertoire « /home/clothilde/Desktop/unicorn/unicorn_usb »
/bin/rm -f unicorn_usbdrv.o ../msw/linrapi.o ../msw/msw.o ../msw/crc.o ../amu/amas.o ../amu/amu.o ../amu/bsp_usb.o ../unicorn_atm/unicorn_atmdrv.o
/bin/rm -f unicorn_usbdrv.o ../msw/linrapi.o ../msw/msw.o ../msw/crc.o ../amu/amas.o ../amu/amu.o ../amu/bsp_usb.o ../unicorn_eth/unicorn_ethdrv.o
/bin/rm -f unicorn_usb_atm.* unicorn_usb_eth.*
/bin/rm -f .*.cmd
/bin/rm -rf .tmp_versions
make[1]: quittant le répertoire « /home/clothilde/Desktop/unicorn/unicorn_usb »

Puis je compile :

clothilde@clothilde-desktop:~/Desktop/unicorn$ make modules
for i in libm unicorn_pci unicorn_usb ; do make -C $i modules MODDIR=/home/clothilde/Desktop/unicorn/$i ; done
make[1]: entrant dans le répertoire « /home/clothilde/Desktop/unicorn/libm »
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o e_powf.o e_powf.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o e_log10f.o e_log10f.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o e_logf.o e_logf.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o e_sqrtf.o e_sqrtf.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o s_ceilf.o s_ceilf.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o s_floorf.o s_floorf.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o s_isinf.o s_isinf.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o s_fabsf.o s_fabsf.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o s_scalbnf.o s_scalbnf.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o s_copysignf.o s_copysignf.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o s_truncf.o s_truncf.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o s_sinf.o s_sinf.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o k_sinf.o k_sinf.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o k_cosf.o k_cosf.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o e_rem_pio2f.o e_rem_pio2f.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o k_rem_pio2f.o k_rem_pio2f.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o e_pow.o e_pow.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o e_log10.o e_log10.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o e_log.o e_log.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o e_sqrt.o e_sqrt.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o s_ceil.o s_ceil.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o s_floor.o s_floor.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o s_fabs.o s_fabs.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o s_scalbn.o s_scalbn.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o s_copysign.o s_copysign.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o s_trunc.o s_trunc.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o s_sin.o s_sin.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o k_sin.o k_sin.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o k_cos.o k_cos.c
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o e_rem_pio2.o e_rem_pio2.c
e_rem_pio2.c: In function ‘__ieee754_rem_pio2’:
e_rem_pio2.c:178: warning: ‘z’ is used uninitialized in this function
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -Wall -Wno-comment -c -o k_rem_pio2.o k_rem_pio2.c
ld  -r -o libm.a  e_powf.o e_log10f.o e_logf.o e_sqrtf.o s_ceilf.o s_floorf.o s_isinf.o  s_fabsf.o s_scalbnf.o s_copysignf.o s_truncf.o s_sinf.o k_sinf.o k_cosf.o e_rem_pio2f.o k_rem_pio2f.o e_pow.o e_log10.o e_log.o e_sqrt.o s_ceil.o s_floor.o  s_fabs.o s_scalbn.o s_copysign.o s_trunc.o s_sin.o k_sin.o k_cos.o e_rem_pio2.o k_rem_pio2.o
make[1]: quittant le répertoire « /home/clothilde/Desktop/unicorn/libm »
make[1]: entrant dans le répertoire « /home/clothilde/Desktop/unicorn/unicorn_pci »
make CC=gcc -C /usr/src/linux-headers-2.6.17-10-386 SUBDIRS=/home/clothilde/Desktop/unicorn/unicorn_pci modules
make[2]: entrant dans le répertoire « /usr/src/linux-headers-2.6.17-10-386 »
  CC [M]  /home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.o
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c: In function ‘__check_ActivationMode’:
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c:2160: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c: In function ‘__check_ActTimeout’:
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c:2162: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c: In function ‘__check_AutoActivation’:
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c:2163: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c: In function ‘__check_DownstreamRate’:
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c:2165: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c: In function ‘__check_eocTrace’:
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c:2166: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c: In function ‘__check_FmPollingRate’:
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c:2168: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c: In function ‘__check_g_TeqMode’:
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c:2170: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c: In function ‘__check_InitTimeout’:
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c:2171: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c: In function ‘__check_Interoperability’:
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c:2172: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c: In function ‘__check_LCD_Trig’:
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c:2173: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c: In function ‘__check_LOS_LOF_Trig’:
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c:2174: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c: In function ‘__check_LoopbackMode’:
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c:2175: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c: In function ‘__check_MswDebugLevel’:
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c:2176: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c: In function ‘__check_RetryTime’:
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c:2177: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c: In function ‘__check_setINITIALDAC’:
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c:2178: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c: In function ‘__check_useAFE’:
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c:2181: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c: In function ‘__check_useRFC041v’:
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c:2186: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c: In function ‘__check_DebugLevel’:
/home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pcidrv.c:2191: warning: return from incompatible pointer type
  CC [M]  /home/clothilde/Desktop/unicorn/unicorn_pci/../msw/linrapi.o
g++ -fno-rtti -fno-exceptions -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fno-stack-protector -O2 -fomit-frame-pointer -fasynchronous-unwind-tables -pipe -msoft-float -mpreferred-stack-boundary=2  -march=i486 -mtune=generic -mregparm=3 -ffreestanding -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -Wno-pointer-sign -DVERS=0x093 -D_PCI_DRIVER -DDEBUG=1 -I/home/clothilde/Desktop/unicorn/unicorn_pci/../include -I/home/clothilde/Desktop/unicorn/unicorn_pci/../  -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h  -c -o /home/clothilde/Desktop/unicorn/unicorn_pci/../msw/msw.o /home/clothilde/Desktop/unicorn/unicorn_pci/../msw/msw.cpp
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wno-pointer-sign" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-ffreestanding" is valid for C/ObjC but not for C++
  CC [M]  /home/clothilde/Desktop/unicorn/unicorn_pci/../msw/crc.o
g++ -fno-rtti -fno-exceptions -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fno-stack-protector -O2 -fomit-frame-pointer -fasynchronous-unwind-tables -pipe -msoft-float -mpreferred-stack-boundary=2  -march=i486 -mtune=generic -mregparm=3 -ffreestanding -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -Wno-pointer-sign -DVERS=0x093 -D_PCI_DRIVER -DDEBUG=1 -I/home/clothilde/Desktop/unicorn/unicorn_pci/../include -I/home/clothilde/Desktop/unicorn/unicorn_pci/../  -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h  -c -o /home/clothilde/Desktop/unicorn/unicorn_pci/../amu/amas.o /home/clothilde/Desktop/unicorn/unicorn_pci/../amu/amas.cpp
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wno-pointer-sign" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-ffreestanding" is valid for C/ObjC but not for C++
g++ -fno-rtti -fno-exceptions -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fno-stack-protector -O2 -fomit-frame-pointer -fasynchronous-unwind-tables -pipe -msoft-float -mpreferred-stack-boundary=2  -march=i486 -mtune=generic -mregparm=3 -ffreestanding -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -Wno-pointer-sign -DVERS=0x093 -D_PCI_DRIVER -DDEBUG=1 -I/home/clothilde/Desktop/unicorn/unicorn_pci/../include -I/home/clothilde/Desktop/unicorn/unicorn_pci/../  -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h  -c -o /home/clothilde/Desktop/unicorn/unicorn_pci/../amu/amu.o /home/clothilde/Desktop/unicorn/unicorn_pci/../amu/amu.cpp
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wno-pointer-sign" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-ffreestanding" is valid for C/ObjC but not for C++
g++ -fno-rtti -fno-exceptions -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fno-stack-protector -O2 -fomit-frame-pointer -fasynchronous-unwind-tables -pipe -msoft-float -mpreferred-stack-boundary=2  -march=i486 -mtune=generic -mregparm=3 -ffreestanding -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -Wno-pointer-sign -DVERS=0x093 -D_PCI_DRIVER -DDEBUG=1 -I/home/clothilde/Desktop/unicorn/unicorn_pci/../include -I/home/clothilde/Desktop/unicorn/unicorn_pci/../  -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h  -c -o /home/clothilde/Desktop/unicorn/unicorn_pci/../amu/bsp_pci.o /home/clothilde/Desktop/unicorn/unicorn_pci/../amu/bsp_pci.cpp
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wno-pointer-sign" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-ffreestanding" is valid for C/ObjC but not for C++
  CC [M]  /home/clothilde/Desktop/unicorn/unicorn_pci/../unicorn_atm/unicorn_atmdrv.o
/home/clothilde/Desktop/unicorn/unicorn_pci/../unicorn_atm/unicorn_atmdrv.c: In function ‘__check_mac_address’:
/home/clothilde/Desktop/unicorn/unicorn_pci/../unicorn_atm/unicorn_atmdrv.c:1296: warning: return from incompatible pointer type
  CC [M]  /home/clothilde/Desktop/unicorn/unicorn_pci/../unicorn_eth/unicorn_ethdrv.o
/home/clothilde/Desktop/unicorn/unicorn_pci/../unicorn_eth/unicorn_ethdrv.c: In function ‘__check_mac_address’:
/home/clothilde/Desktop/unicorn/unicorn_pci/../unicorn_eth/unicorn_ethdrv.c:1359: warning: return from incompatible pointer type
  LD [M]  /home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pci_atm.o
  LD [M]  /home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pci_eth.o
  Building modules, stage 2.
  MODPOST
WARNING: could not find /home/clothilde/Desktop/unicorn/unicorn_pci/../msw/.msw.o.cmd for /home/clothilde/Desktop/unicorn/unicorn_pci/../msw/msw.o
WARNING: could not find /home/clothilde/Desktop/unicorn/unicorn_pci/../msw/.msw.o.cmd for /home/clothilde/Desktop/unicorn/unicorn_pci/../msw/msw.o
  CC      /home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pci_atm.mod.o
  LD [M]  /home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pci_atm.ko
  CC      /home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pci_eth.mod.o
  LD [M]  /home/clothilde/Desktop/unicorn/unicorn_pci/unicorn_pci_eth.ko
make[2]: quittant le répertoire « /usr/src/linux-headers-2.6.17-10-386 »
make[1]: quittant le répertoire « /home/clothilde/Desktop/unicorn/unicorn_pci »
make[1]: entrant dans le répertoire « /home/clothilde/Desktop/unicorn/unicorn_usb »
make CC=gcc -C /usr/src/linux-headers-2.6.17-10-386 SUBDIRS=/home/clothilde/Desktop/unicorn/unicorn_usb modules
make[2]: entrant dans le répertoire « /usr/src/linux-headers-2.6.17-10-386 »
  CC [M]  /home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.o
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check_ActivationMode’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2292: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check_ActTimeout’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2294: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check_AutoActivation’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2295: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check_DownstreamRate’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2297: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check_eocTrace’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2298: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check_ExchangeDelay’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2299: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check_FmPollingRate’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2300: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check_g_RefGain’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2301: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check_g_TeqMode’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2302: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check_InitTimeout’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2303: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check_Interoperability’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2304: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check_LCD_Trig’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2305: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check_LOS_LOF_Trig’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2306: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check_LoopbackMode’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2307: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check_MswDebugLevel’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2308: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check_RetryTime’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2309: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check_TrainingDelay’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2311: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check_useAFE’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2313: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check_useRFC019v’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2314: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check_useRFC029v’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2315: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check_useRFC040v’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2317: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check_useRFC041v’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2318: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check_useVCXO’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2320: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check__no_TS652’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2321: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: In function ‘__check_DebugLevel’:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:2324: warning: return from incompatible pointer type
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c: At top level:
/home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usbdrv.c:118: warning: ‘dump_urb’ defined but not used
  CC [M]  /home/clothilde/Desktop/unicorn/unicorn_usb/../msw/linrapi.o
  CC [M]  /home/clothilde/Desktop/unicorn/unicorn_usb/../msw/crc.o
g++ -fno-rtti -fno-exceptions -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fno-stack-protector -O2 -fomit-frame-pointer -fasynchronous-unwind-tables -pipe -msoft-float -mpreferred-stack-boundary=2  -march=i486 -mtune=generic -mregparm=3 -ffreestanding -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -Wno-pointer-sign -DVERS=0x093 -D_USB_DRIVER -DDEBUG=1 -I/home/clothilde/Desktop/unicorn/unicorn_usb/../include -I/home/clothilde/Desktop/unicorn/unicorn_usb/../  -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h  -c -o /home/clothilde/Desktop/unicorn/unicorn_usb/../amu/bsp_usb.o /home/clothilde/Desktop/unicorn/unicorn_usb/../amu/bsp_usb.cpp
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wno-pointer-sign" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-ffreestanding" is valid for C/ObjC but not for C++
  CC [M]  /home/clothilde/Desktop/unicorn/unicorn_usb/../unicorn_atm/unicorn_atmdrv.o
/home/clothilde/Desktop/unicorn/unicorn_usb/../unicorn_atm/unicorn_atmdrv.c: In function ‘__check_mac_address’:
/home/clothilde/Desktop/unicorn/unicorn_usb/../unicorn_atm/unicorn_atmdrv.c:1296: warning: return from incompatible pointer type
  CC [M]  /home/clothilde/Desktop/unicorn/unicorn_usb/../unicorn_eth/unicorn_ethdrv.o
/home/clothilde/Desktop/unicorn/unicorn_usb/../unicorn_eth/unicorn_ethdrv.c: In function ‘__check_mac_address’:
/home/clothilde/Desktop/unicorn/unicorn_usb/../unicorn_eth/unicorn_ethdrv.c:1359: warning: return from incompatible pointer type
  LD [M]  /home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usb_atm.o
  LD [M]  /home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usb_eth.o
  Building modules, stage 2.
  MODPOST
WARNING: could not find /home/clothilde/Desktop/unicorn/unicorn_usb/../msw/.msw.o.cmd for /home/clothilde/Desktop/unicorn/unicorn_usb/../msw/msw.o
WARNING: could not find /home/clothilde/Desktop/unicorn/unicorn_usb/../msw/.msw.o.cmd for /home/clothilde/Desktop/unicorn/unicorn_usb/../msw/msw.o
  CC      /home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usb_atm.mod.o
  LD [M]  /home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usb_atm.ko
  CC      /home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usb_eth.mod.o
  LD [M]  /home/clothilde/Desktop/unicorn/unicorn_usb/unicorn_usb_eth.ko
make[2]: quittant le répertoire « /usr/src/linux-headers-2.6.17-10-386 »
make[1]: quittant le répertoire « /home/clothilde/Desktop/unicorn/unicorn_usb »

Après avoir copié unicorn_usb_atm.ko dans /lib/modules/`uname -r`/, je fais un sudo depmod -ae puis je branche l'adsl et là le pc speaker s'emballe et la console m'affiche une flopée de messages:

Message from syslogd@localhost at Thu Oct 26 13:59:20 2006 ...
localhost kernel: [17180963.820000] CPU:    0

Message from syslogd@localhost at Thu Oct 26 13:59:21 2006 ...
localhost kernel: [17180963.820000] EIP is at xsm_ident+0xd/0xb0 [unicorn_usb_atm]
Message from syslogd@localhost at Thu Oct 26 13:59:21 2006 ...
localhost kernel: [17180963.820000] eax: 00000001   ebx: 00000000   ecx: 00000000   edx: 00000001

Message from syslogd@localhost at Thu Oct 26 13:59:21 2006 ...
localhost kernel: [17180963.820000] esi: d0d11414   edi: 00000000   ebp: cf905d74   esp: cf905d34

Message from syslogd@localhost at Thu Oct 26 13:59:21 2006 ...
localhost kernel: [17180963.820000] ds: 007b   es: 007b   ss: 0068

Message from syslogd@localhost at Thu Oct 26 13:59:21 2006 ...
localhost kernel: [17180963.820000] Process khubd (pid: 1733, threadinfo=cf904000 task=cfe0a560)

Message from syslogd@localhost at Thu Oct 26 13:59:21 2006 ...
localhost kernel: [17180963.820000] Stack: cf905d44 cf905d44 d0cc4fed d0cd9cec 00000001 00000000 d0d11414 00000000 

Message from syslogd@localhost at Thu Oct 26 13:59:21 2006 ...
localhost kernel: [17180963.820000]        cf905d74 d0ca43a6 d0cd6b1e 00000000 00000000 00000000 00000000 00000000 

Message from syslogd@localhost at Thu Oct 26 13:59:21 2006 ...
localhost kernel: [17180963.820000]        cf905db4 d0c7a7f8 00000000 cf905da8 d0ccdd40 d0ccdeaf c99933a0 c99933a0 

Message from syslogd@localhost at Thu Oct 26 13:59:21 2006 ...
localhost kernel: [17180963.820000] Call Trace:

Message from syslogd@localhost at Thu Oct 26 13:59:21 2006 ...
localhost kernel: [17180963.820000]  <d0cc4fed> alloc_obj+0x15d/0x170 [unicorn_usb_atm]  <d0ca43a6> _ZN19InterfaceProtectionC1Ev+0x16/0x50 [unicorn_usb_atm]

Message from syslogd@localhost at Thu Oct 26 13:59:21 2006 ...
localhost kernel: [17180963.820000]  <d0c7a7f8> AMSW_Modem_SW_Init+0x28/0x180 [unicorn_usb_atm]  <d0cca90d> unicorn_atm_startdevice+0x1d/0x80 [unicorn_usb_atm]

Message from syslogd@localhost at Thu Oct 26 13:59:21 2006 ...
localhost kernel: [17180963.820000]  <d0cc7554> msw_init+0x14/0x140 [unicorn_usb_atm]  <d0ccaae4> unicorn_attach+0xa4/0x1b0 [unicorn_usb_atm]

Message from syslogd@localhost at Thu Oct 26 13:59:21 2006 ...
localhost kernel: [17180963.820000]  <d0cc29c6> probe_unicorn_usb+0x516/0x870 [unicorn_usb_atm]  <d08b5577> usb_probe_interface+0x67/0xa0 [usbcore]

Message from syslogd@localhost at Thu Oct 26 13:59:21 2006 ...
localhost kernel: [17180963.820000]  <c022aaa4> driver_probe_device+0x44/0xc0  <c02c4ec1> klist_next+0x31/0x50

Message from syslogd@localhost at Thu Oct 26 13:59:21 2006 ...
localhost kernel: [17180963.820000]  <c022a334> bus_for_each_drv+0x44/0x70  <c022ab96> device_attach+0x66/0x70

Message from syslogd@localhost at Thu Oct 26 13:59:21 2006 ...
localhost kernel: [17180963.820000]  <c022ab20> __device_attach+0x0/0x10  <c022a208> bus_add_device+0x28/0x110

Message from syslogd@localhost at Thu Oct 26 13:59:21 2006 ...
localhost kernel: [17180963.820000]  <c02293e4> device_add+0xf4/0x150  <d08b46fe> usb_set_configuration+0x31e/0x4d0 [usbcore]

Message from syslogd@localhost at Thu Oct 26 13:59:21 2006 ...
localhost kernel: [17180963.820000]  <d08af6e1> usb_new_device+0x201/0x2c0 [usbcore]  <d08b0cdd> hub_thread+0x74d/0xc20 [usbcore]

Message from syslogd@localhost at Thu Oct 26 13:59:21 2006 ...
localhost kernel: [17180963.820000]  <c02c5579> schedule+0x2a9/0x5d0  <c012a640> autoremove_wake_function+0x0/0x50

Message from syslogd@localhost at Thu Oct 26 13:59:21 2006 ...
localhost kernel: [17180963.820000]  <c012a2d7> kthread+0xa7/0xe0  <d08b0590> hub_thread+0x0/0xc20 [usbcore]

Message from syslogd@localhost at Thu Oct 26 13:59:21 2006 ...
localhost kernel: [17180963.820000]  <c012a230> kthread+0x0/0xe0  <c0101005> kernel_thread_helper+0x5/0x10

Message from syslogd@localhost at Thu Oct 26 13:59:21 2006 ...
localhost kernel: [17180963.820000] Code: 45 ef 89 5c 24 04 c7 04 24 2c 79 cd d0 e8 7c 3d 45 ef eb b9 8d 76 00 8d bc 27 00 00 00 00 55 57 56 53 89 cb 83 ec 14 89 44 24 10 <c7> 01 00 00 00 00 9c 5d fa a1 a8 16 d1 d0 3d a8 16 d1 d0 89 44 

Message from syslogd@localhost at Thu Oct 26 13:59:21 2006 ...
localhost kernel: [17180963.820000] EIP: [pg0+277163661/1069069312] xsm_ident+0xd/0xb0 [unicorn_usb_atm] SS:ESP 0068:cf905d34

Et à ce moment là l'adsl ne fonctionne pas, elle n'arrive même pas à s'initialiser (il y a trois voyants sur l'adsl, normalement il n'y en a que un ou deux allumés sur les trois mais là ils sont tous allumés en continu). C'est peut-êtr dû à un problème dans ma conversion MODULE_PARM=>module_param, mais je vois pas trop où sad.

#2 Le 27/10/2006, à 00:23

Bugage

Re : Pb de compilation à cause de "module_parm"

up?

#3 Le 28/10/2006, à 20:13

narnat

Re : Pb de compilation à cause de "module_parm"

J'ai exactement le meme probleme que toi.
Une fois le module unicorn_usb_atm.ko chargé, les 3 voyants s'allument, et puis c'est tout !
Ensuite, je n'arrive meme pas a redecharger le module.
Je ne comprend pas, cela fonctionnait trés bien sous Dapper.
Je vais continuer a investiguer...

#4 Le 29/10/2006, à 12:22

titioz

Re : Pb de compilation à cause de "module_parm"

Bonjour,

j'ai exactement les mêmes problèmes.

J'ai trouvé dans le package "dkms-unicorn-0.9.3-1mdv2007.0.i586.rpm" de mandriva 2007 un fichier "module_param.patch" qui confirme le remplacement des commandes "MODULE_PARM(param, 'i')" par "module_param(param, int, 0)" et "MODULE_PARM(param, 's')" par "module_param(param, charp, 0)".

Après les modifs, la compilation est OK, mais dès que je connecte le modem sur un port USB les 3 diodes s'allument et impossible de recharger le module.

La seule solution que j'ai trouvé par avoir accès au net est de booter Edgy sur le dernier kernel 2.6.15 que j'avais sous Dapper ;o(.

La bonne nouvelle, firefox 2 fonctionne....

Hors ligne

#5 Le 16/12/2006, à 17:31

www.rzr.online.fr

Re : Pb de compilation à cause de "module_parm"

titioz a écrit :

J'ai trouvé dans le package "dkms-unicorn-0.9.3-1mdv2007.0.i586.rpm" de mandriva 2007

Peut tu me dire ou trouver les sources du package chez mandriva ?
ont ils un gestionnaire de sources  ouvert (cvs, svn etc) ?

Je suis en train de bricoler un patch si ca peut aider
@ http://rzr.online.fr/docs/contribs/patches/


# http://identi.ca/rzr # tel mobiles sous linux ca rulez ! (maemo, openmoko, android etc)
# http://rzr.online.fr/q/apt # svp testez mes .deb's         
# http://rzr.online.fr/q/unicorn.fr # BeWan USB gris : (marche sur dapper)
# http://go.cur.lv/files# files to be shared or email me

Hors ligne