1.
2. Automatize o carregamento do módulo do modem
Segue abaixo o erro que estou recebendo ao tentar instalar o driver slmodem 2.9.10
root@cazon:~/Downloads/modem/slmodem-2.9.10# make
make -C modem all
make[1]: Entering directory `/root/Downloads/modem/slmodem-2.9.10/modem'
rebuild profile...
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_main.o -c modem_main.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_cmdline.o -c modem_cmdline.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem.o -c modem.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_datafile.o -c modem_datafile.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_at.o -c modem_at.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_timer.o -c modem_timer.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_pack.o -c modem_pack.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_ec.o -c odem_ec.c
modem_ec.c:689: warning: 't403_timeout' defined but not used
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_comp.o -c modem_comp.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_param.o -c modem_param.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_debug.o -c modem_debug.c
modem_debug.c: In function `modem_debug_log_data':
modem_debug.c:75: warning: cast from pointer to integer of different size
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o homolog_data.o -c homolog_data.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o dp_sinus.o -c dp_sinus.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o dp_dummy.o -c dp_dummy.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o sysdep_common.o -c sysdep_common.c
gcc -o slmodemd modem_main.o modem_cmdline.o modem.o modem_datafile.o
modem_at.o modem_timer.o modem_pack.o modem_ec.o modem_comp.o modem_param.o modem_debug.o homolog_data.o dp_sinus.o dp_dummy.o dsplibs.o sysdep_common.o
/usr/lib/gcc/x86_64-slackware-linux/3.4.4/../../../../x86_64-slackware-linux/bin/ld: warning: i386 architecture of input file `dsplibs.o' is incompatible
with i386:x86-64 output
dsplibs.o(.text+0x2b61b): In function `ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to
`__moddi3'
dsplibs.o(.text+0x2b649): In function `ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x2b668): In function `ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x2b697): In function `ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x2b6b6): In function `ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x2b6e3): In function `ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x2b706): In function `ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x2b731): In function `ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x2b754): In function `ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x2b77f): In function `ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x36038): In function `V90ConstellationPower::calcModulusParameters(V90MappingParams*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x36060): In function `V90ConstellationPower::calcModulusParameters(V90MappingParams*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x36086): In function `V90ConstellationPower::calcModulusParameters(V90MappingParams*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x360ae): In function `V90ConstellationPower::calcModulusParameters(V90MappingParams*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x360d4): In function `V90ConstellationPower::calcModulusParameters(V90MappingParams*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x360fc): In function `V90ConstellationPower::calcModulusParameters(V90MappingParams*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x36122): In function `V90ConstellationPower::calcModulusParameters(V90MappingParams*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x3614a): In function `V90ConstellationPower::calcModulusParameters(V90MappingParams*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x36170): In function `V90ConstellationPower::calcModulusParameters(V90MappingParams*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x36198): In function `V90ConstellationPower::calcModulusParameters(V90MappingParams*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x361cb): In function `V90ConstellationPower::calcModulusParameters(V90MappingParams*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x36392): In function `V90ConstellationPower::getPower(V90MappingParams*, V90TxPowerMeasurementPoint, PcmType)':
: undefined reference to
`__moddi3'
dsplibs.o(.text+0x363ba): In function `V90ConstellationPower::getPower(V90MappingParams*, V90TxPowerMeasurementPoint, PcmType)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x363e0): In function `V90ConstellationPower::getPower(V90MappingParams*, V90TxPowerMeasurementPoint,
PcmType)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x36408): In function `V90ConstellationPower::getPower(V90MappingParams*, V90TxPowerMeasurementPoint, PcmType)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x3642e): In function `V90ConstellationPower::getPower(V90MappingParams*, V90TxPowerMeasurementPoint,
PcmType)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x36456): In function `V90ConstellationPower::getPower(V90MappingParams*,
V90TxPowerMeasurementPoint, PcmType)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x3647c): In function
`V90ConstellationPower::getPower(V90MappingParams*, V90TxPowerMeasurementPoint, PcmType)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x364a4): In
function `V90ConstellationPower::getPower(V90MappingParams*, V90TxPowerMeasurementPoint, PcmType)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x364ca): In function `V90ConstellationPower::getPower(V90MappingParams*, V90TxPowerMeasurementPoint, PcmType)':
: undefined reference to
`__moddi3'
dsplibs.o(.text+0x364f2): In function `V90ConstellationPower::getPower(V90MappingParams*, V90TxPowerMeasurementPoint, PcmType)':
: undefined
reference to `__divdi3'
dsplibs.o(.text+0x36525): In function `V90ConstellationPower::getPower(V90MappingParams*, V90TxPowerMeasurementPoint, PcmType)':
:
undefined reference to `__divdi3'
dsplibs.o(.text+0x4a54c): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference
to `__divdi3'
dsplibs.o(.text+0x4a57c): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x4a70a): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x4a73c): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x4a754): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x4a7b3): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x4a815): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x4a861): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x4a8aa): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x4a8ce): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x4a901): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x4a927): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x4a958): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x4a97e): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x4a9af): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x4a9d5): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x4aa06): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x4aa2c): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x4aa5d): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x4aa83): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x4aab4): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x4aada): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x4ab0b): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x4ab31): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x4ab62): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x4ab88): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x4abb9): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x4abfb): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x4ac2e): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x4ac60): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x4acbb): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x4ad14): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x4ad44): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x4aebd): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x4aeef): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x4af09): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x4af42): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x4af74): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x4afcf): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x4b00d): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x4b03f): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x4b112): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
dsplibs.o(.text+0x4b144): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x4b20d): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__moddi3'
dsplibs.o(.text+0x4b256): In function `V92ModulusEncoder::progress(unsigned char*, unsigned int*)':
: undefined reference to `__divdi3'
collect2: ld returned 1 exit status
make[1]: *** [slmodemd]
Error 1
make[1]: Leaving directory `/root/Downloads/modem/slmodem-2.9.10/modem'
make: *** [modem] Error 2