[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

inicialización de tipo de puntero incompatible compilando fuente, porque????



Hola a todos..

Tengo un problema compilando los fuentes para el modem intel 537 en debian sarge 64 bits. Ya me asegure de instalar los paquetes de los fuentes y los headers del kernel. Estos estan en /usr/scr/

el kernel que tengo el 2.6.8.11 para amd k8.
La version del gcc es la 3.3.2


Aqui copio los errores generados en la salida del comando "make 537" que ejecuto como root cuando trato de compilar el modem:

Discovery:/tmp/intel-537EP_secure-2.60.80.0# make 537
 Module precompile check
 Current running kernel is: 2.6.8-11-amd64-k8
 /lib/modules...   autoconf.h exists
diff: /boot/vmlinuz.autoconf.h: No existe el fichero o el directorio
 autoconf.h matches running kernel
diff: /boot/vmlinuz.version.h: No existe el fichero o el directorio
 version.h matches running kernel
2.6.8-11-amd64-k8
make[1]: Entering directory `/tmp/intel-537EP_secure-2.60.80.0/coredrv'
make -C /lib/modules/2.6.8-11-amd64-k8/build SUBDIRS=/tmp/intel-537EP_secure-2.6
0.80.0/coredrv modules
make[2]: Entering directory `/usr/src/kernel-headers-2.6.8-11-amd64-k8'
CC [M]  /tmp/intel-537EP_secure-2.60.80.0/coredrv/coredrv.o
/tmp/intel-537EP_secure-2.60.80.0/coredrv/coredrv.c:754: aviso: inicialización d
e tipo de puntero incompatible
/tmp/intel-537EP_secure-2.60.80.0/coredrv/coredrv.c:755: aviso: inicialización d
e tipo de puntero incompatible
/tmp/intel-537EP_secure-2.60.80.0/coredrv/coredrv.c: En la función `dspdrv_CommR
amISR':
/tmp/intel-537EP_secure-2.60.80.0/coredrv/coredrv.c:877: aviso: function declara
tion isn't a prototype
CC [M]  /tmp/intel-537EP_secure-2.60.80.0/coredrv/clmmain.o
CC [M]  /tmp/intel-537EP_secure-2.60.80.0/coredrv/rts.o
CC [M]  /tmp/intel-537EP_secure-2.60.80.0/coredrv/task.o
CC [M]  /tmp/intel-537EP_secure-2.60.80.0/coredrv/uart.o
CC [M]  /tmp/intel-537EP_secure-2.60.80.0/coredrv/wwh_dflt.o
CC [M]  /tmp/intel-537EP_secure-2.60.80.0/coredrv/locks.o
CC [M]  /tmp/intel-537EP_secure-2.60.80.0/coredrv/softserial_io.o
CC [M]  /tmp/intel-537EP_secure-2.60.80.0/coredrv/softserial_ioctl.o
CC [M]  /tmp/intel-537EP_secure-2.60.80.0/coredrv/softserial.o
CC [M]  /tmp/intel-537EP_secure-2.60.80.0/coredrv/afedsp_int.o
/tmp/intel-537EP_secure-2.60.80.0/coredrv/afedsp_int.c:48: aviso: function decla
ration isn't a prototype
/tmp/intel-537EP_secure-2.60.80.0/coredrv/afedsp_int.c:61: aviso: inicialización
de tipo de puntero incompatible
/tmp/intel-537EP_secure-2.60.80.0/coredrv/afedsp_int.c:65: aviso: function decla
ration isn't a prototype
/tmp/intel-537EP_secure-2.60.80.0/coredrv/afedsp_int.c: En la función `modem_ini
t':
/tmp/intel-537EP_secure-2.60.80.0/coredrv/afedsp_int.c:207: aviso: cast from pointer to integer of different size /tmp/intel-537EP_secure-2.60.80.0/coredrv/afedsp_int.c:212: aviso: cast from pointer to integer of different size /tmp/intel-537EP_secure-2.60.80.0/coredrv/afedsp_int.c:230: aviso: cast from pointer to integer of different size /tmp/intel-537EP_secure-2.60.80.0/coredrv/afedsp_int.c: En la función `modem_kill': /tmp/intel-537EP_secure-2.60.80.0/coredrv/afedsp_int.c:313: aviso: cast to pointer from integer of different size /tmp/intel-537EP_secure-2.60.80.0/coredrv/afedsp_int.c: En el nivel principal: /tmp/intel-537EP_secure-2.60.80.0/coredrv/afedsp_int.c:454: aviso: inicialización de tipo de puntero incompatible
{entrada estándar}: Mensajes del ensamblador:
{entrada estándar}:590: Error: sufijo u operandos inválidos para `mov'
{entrada estándar}:603: Error: sufijo u operandos inválidos para `mov'
make[3]: *** [/tmp/intel-537EP_secure-2.60.80.0/coredrv/afedsp_int.o] Error 1
make[2]: *** [_module_/tmp/intel-537EP_secure-2.60.80.0/coredrv] Error 2
make[2]: Leaving directory `/usr/src/kernel-headers-2.6.8-11-amd64-k8'
make[1]: *** [537core_26] Error 2
make[1]: Leaving directory `/tmp/intel-537EP_secure-2.60.80.0/coredrv'
2.6.8-11-amd64-k8
Failed to build driver




Vale anotar que el mismo driver lo puedo instalar en el red hat enterprice linux v3 para 32 bits. Aqui pongo la salida del mismo comando ejecutado en el RedHat de manera exitosa:

[root@localhost intel-537EP_secure-2.60.80.0]# make 537
 Module precompile check
 Current running kernel is: 2.4.21-27.EL
 /lib/modules...   autoconf.h exists
diff: /boot/vmlinuz.autoconf.h: No existe el fichero o el directorio
 autoconf.h matches running kernel
diff: /boot/vmlinuz.version.h: No existe el fichero o el directorio
 version.h matches running kernel
make[1]: Cambiando a directorio `/tmp/intel-537EP_secure-2.60.80.0/coredrv'
cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o coredrv.o coredrv.c cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o clmmain.o clmmain.c cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o rts.o rts.c cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o task.o task.c cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o uart.o uart.c cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o wwh_dflt.o wwh_dflt.c cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o locks.o locks.c cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o softserial_io.o softserial_io.c cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o softserial_ioctl.o softserial_ioctl.c cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o softserial.o softserial.c cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o afedsp_int.o afedsp_int.c afedsp_int.c:454: aviso: asignación de valores iniciales de tipo de apuntador incompatible
strip --strip-debug 537core.lib
ld -r coredrv.o clmmain.o rts.o task.o uart.o wwh_dflt.o locks.o softserial_io.o softserial_ioctl.o softserial.o afedsp_int.o 537core.lib -o Intel537.o
make[1]: Saliendo directorio `/tmp/intel-537EP_secure-2.60.80.0/coredrv'
[root@localhost intel-537EP_secure-2.60.80.0]# make install
rm -f /etc/hamregistry.bin
bash 537_inst
running kernel 2.4.21-27.EL
installing hamregistry, used for persistant storage
installing usrsound, a soft buzzer
installing 537 module
redhat 537_boot rc2.d, rc3.d and rc5.d scripts
starting module and utilities
depmod: *** Unresolved symbols in /lib/modules/2.4.21-27.EL/kernel/drivers/char/Intel537.o
done


Agradeceria cualquier ayuda que me puedan dar porque soy nuevo en esto y mi interes es trabajar 100% con el debian, pero sin internet no podria hacerlo... :(
Juan




Reply to: