Tutorial para HSP56 MR driver Smartlink

Iniciado por alarcon, 05 de Março de 2006, 11:59

tópico anterior - próximo tópico

fernando_gomes29

Valeu Alarcon , vou instalar agora mesmo, assim que tiver resultados Negativos ou positivos , responderei.


Valeu...!

fernando_gomes29

Alarcon mais uma vez levei uma surra do meu modem , dá só uma olhada:

modem_main.c:453: error: dereferencing pointer to incomplete type
modem_main.c:456: error: dereferencing pointer to incomplete type
modem_main.c:459: error: dereferencing pointer to incomplete type
modem_main.c:460: error: dereferencing pointer to incomplete type
modem_main.c:460: error: dereferencing pointer to incomplete type
modem_main.c:462: error: 'SND_PCM_FORMAT_S16_LE' undeclared (first use in this function)
modem_main.c:468: error: dereferencing pointer to incomplete type
modem_main.c:473: error: dereferencing pointer to incomplete type
modem_main.c:474: error: dereferencing pointer to incomplete type
modem_main.c:475: warning: implicit declaration of function 'snd_pcm_link'
modem_main.c:475: error: dereferencing pointer to incomplete type
modem_main.c:475: error: dereferencing pointer to incomplete type
modem_main.c:477: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
modem_main.c:480: error: dereferencing pointer to incomplete type
modem_main.c:482: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
modem_main.c:485: error: dereferencing pointer to incomplete type
modem_main.c: In function 'alsa_stop':
modem_main.c:493: error: dereferencing pointer to incomplete type
modem_main.c:494: warning: implicit declaration of function 'snd_pcm_drop'
modem_main.c:494: error: dereferencing pointer to incomplete type
modem_main.c:495: warning: implicit declaration of function 'snd_pcm_nonblock'
modem_main.c:495: error: dereferencing pointer to incomplete type
modem_main.c:496: warning: implicit declaration of function 'snd_pcm_drain'
modem_main.c:496: error: dereferencing pointer to incomplete type
modem_main.c:497: error: dereferencing pointer to incomplete type
modem_main.c:498: warning: implicit declaration of function 'snd_pcm_unlink'
modem_main.c:498: error: dereferencing pointer to incomplete type
modem_main.c:499: warning: implicit declaration of function 'snd_pcm_hw_free'
modem_main.c:499: error: dereferencing pointer to incomplete type
modem_main.c:500: error: dereferencing pointer to incomplete type
modem_main.c: In function 'alsa_ioctl':
modem_main.c:513: error: dereferencing pointer to incomplete type
modem_main.c:515: error: dereferencing pointer to incomplete type
modem_main.c:518: error: dereferencing pointer to incomplete type
modem_main.c:519: warning: implicit declaration of function 'snd_mixer_selem_set_playback_volume_all'
modem_main.c:520: error: dereferencing pointer to incomplete type
modem_main.c:524: error: dereferencing pointer to incomplete type
modem_main.c:525: error: dereferencing pointer to incomplete type
modem_main.c: In function 'modemap_start':
modem_main.c:554: error: dereferencing pointer to incomplete type
modem_main.c:555: error: dereferencing pointer to incomplete type
modem_main.c:560: error: dereferencing pointer to incomplete type
modem_main.c:562: error: dereferencing pointer to incomplete type
modem_main.c:565: error: dereferencing pointer to incomplete type
modem_main.c: In function 'modemap_stop':
modem_main.c:573: error: dereferencing pointer to incomplete type
modem_main.c: In function 'modemap_ioctl':
modem_main.c:583: error: dereferencing pointer to incomplete type
modem_main.c:586: error: dereferencing pointer to incomplete type
modem_main.c: In function 'mdm_device_read':
modem_main.c:602: error: dereferencing pointer to incomplete type
modem_main.c: In function 'mdm_device_write':
modem_main.c:609: error: dereferencing pointer to incomplete type
modem_main.c: In function 'mdm_device_setup':
modem_main.c:618: error: dereferencing pointer to incomplete type
modem_main.c:634: error: dereferencing pointer to incomplete type
modem_main.c:635: error: dereferencing pointer to incomplete type
modem_main.c: In function 'mdm_device_release':
modem_main.c:641: error: dereferencing pointer to incomplete type
modem_main.c: In function 'modem_run':
modem_main.c:777: error: dereferencing pointer to incomplete type
modem_main.c:777: error: dereferencing pointer to incomplete type
modem_main.c:779: error: dereferencing pointer to incomplete type
modem_main.c:779: error: dereferencing pointer to incomplete type
modem_main.c:780: error: dereferencing pointer to incomplete type
modem_main.c:804: error: dereferencing pointer to incomplete type
modem_main.c:804: error: dereferencing pointer to incomplete type
modem_main.c:813: error: dereferencing pointer to incomplete type
modem_main.c:822: error: dereferencing pointer to incomplete type
modem_main.c:822: error: dereferencing pointer to incomplete type
modem_main.c:836: error: dereferencing pointer to incomplete type
modem_main.c:843: error: dereferencing pointer to incomplete type
modem_main.c:870: error: dereferencing pointer to incomplete type
modem_main.c: In function 'modem_main':
modem_main.c:935: error: storage size of 'device' isn't known
modem_main.c:935: warning: unused variable 'device'
make[1]: ** [modem_main.o] Erro 1
make[1]: Saindo do diretório `/home/fernando/Modem/modem-arquivos-v14/slmodem-2.9.11-20061021/modem'
make: ** [modem] Erro 2
make -C modem all
make[1]: Entrando no diretório `/home/fernando/Modem/modem-arquivos-v14/slmodem-2.9.11-20061021/modem'
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1   -o modem_main.o -c modem_main.c
modem_main.c:64:28: error: alsa/asoundlib.h: Arquivo ou diretório não encontrado
modem_main.c:106: error: syntax error before 'snd_pcm_t'
modem_main.c:106: warning: no semicolon at end of struct or union
modem_main.c:107: warning: type defaults to 'int' in declaration of 'chandle'
modem_main.c:107: warning: data definition has no type or storage class
modem_main.c:108: error: syntax error before '*' token
modem_main.c:108: warning: type defaults to 'int' in declaration of 'mhandle'
modem_main.c:108: warning: data definition has no type or storage class
modem_main.c:109: error: syntax error before '*' token
modem_main.c:109: warning: type defaults to 'int' in declaration of 'hook_off_elem'
modem_main.c:109: warning: data definition has no type or storage class
modem_main.c:110: error: syntax error before '*' token
modem_main.c:110: warning: type defaults to 'int' in declaration of 'cid_elem'
modem_main.c:110: warning: data definition has no type or storage class
modem_main.c:111: error: syntax error before '*' token
modem_main.c:111: warning: type defaults to 'int' in declaration of 'speaker_elem'
modem_main.c:111: warning: data definition has no type or storage class
modem_main.c:117: error: syntax error before '}' token
modem_main.c:134: error: syntax error before '*' token
modem_main.c:134: warning: type defaults to 'int' in declaration of 'dbg_out'
modem_main.c:134: warning: data definition has no type or storage class
modem_main.c: In function 'alsa_mixer_setup':
modem_main.c:141: error: 'snd_mixer_elem_t' undeclared (first use in this function)
modem_main.c:141: error: (Each undeclared identifier is reported only once
modem_main.c:141: error: for each function it appears in.)
modem_main.c:141: error: 'elem' undeclared (first use in this function)
modem_main.c:148: warning: implicit declaration of function 'snd_mixer_open'
modem_main.c:148: error: dereferencing pointer to incomplete type
modem_main.c:150: warning: implicit declaration of function 'snd_strerror'
modem_main.c:150: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
modem_main.c:153: warning: implicit declaration of function 'snd_mixer_attach'
modem_main.c:153: error: dereferencing pointer to incomplete type
modem_main.c:155: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
modem_main.c:158: warning: implicit declaration of function 'snd_mixer_selem_register'
modem_main.c:158: error: dereferencing pointer to incomplete type
modem_main.c:160: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
modem_main.c:163: warning: implicit declaration of function 'snd_mixer_load'
modem_main.c:163: error: dereferencing pointer to incomplete type
modem_main.c:165: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
modem_main.c:169: warning: implicit declaration of function 'snd_mixer_first_elem'
modem_main.c:169: error: dereferencing pointer to incomplete type
modem_main.c:169: warning: implicit declaration of function 'snd_mixer_elem_next'
modem_main.c:170: warning: implicit declaration of function 'snd_mixer_selem_get_name'
modem_main.c:170: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast
modem_main.c:170: warning: cast to pointer from integer of different size
modem_main.c:170: warning: cast to pointer from integer of different size
modem_main.c:170: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast
modem_main.c:170: warning: cast to pointer from integer of different size
modem_main.c:170: warning: cast to pointer from integer of different size
modem_main.c:170: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast
modem_main.c:170: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast
modem_main.c:170: warning: cast to pointer from integer of different size
modem_main.c:170: warning: cast to pointer from integer of different size
modem_main.c:170: warning: cast to pointer from integer of different size
modem_main.c:170: warning: cast to pointer from integer of different size
modem_main.c:170: warning: cast to pointer from integer of different size
modem_main.c:170: warning: cast to pointer from integer of different size
modem_main.c:170: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast
modem_main.c:170: warning: cast to pointer from integer of different size
modem_main.c:170: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast
modem_main.c:171: error: dereferencing pointer to incomplete type
modem_main.c:172: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast
modem_main.c:172: warning: cast to pointer from integer of different size
modem_main.c:172: warning: cast to pointer from integer of different size
modem_main.c:172: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast
modem_main.c:172: warning: cast to pointer from integer of different size
modem_main.c:172: warning: cast to pointer from integer of different size
modem_main.c:172: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast
modem_main.c:172: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast
modem_main.c:172: warning: cast to pointer from integer of different size
modem_main.c:172: warning: cast to pointer from integer of different size
modem_main.c:172: warning: cast to pointer from integer of different size
modem_main.c:172: warning: cast to pointer from integer of different size
modem_main.c:172: warning: cast to pointer from integer of different size
modem_main.c:172: warning: cast to pointer from integer of different size
modem_main.c:172: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast
modem_main.c:172: warning: cast to pointer from integer of different size
modem_main.c:172: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast
modem_main.c:173: error: dereferencing pointer to incomplete type
modem_main.c:174: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast
modem_main.c:174: warning: cast to pointer from integer of different size
modem_main.c:174: warning: cast to pointer from integer of different size
modem_main.c:174: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast
modem_main.c:174: warning: cast to pointer from integer of different size
modem_main.c:174: warning: cast to pointer from integer of different size
modem_main.c:174: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast
modem_main.c:174: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast
modem_main.c:174: warning: cast to pointer from integer of different size
modem_main.c:174: warning: cast to pointer from integer of different size
modem_main.c:174: warning: cast to pointer from integer of different size
modem_main.c:174: warning: cast to pointer from integer of different size
modem_main.c:174: warning: cast to pointer from integer of different size
modem_main.c:174: warning: cast to pointer from integer of different size
modem_main.c:174: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast
modem_main.c:174: warning: cast to pointer from integer of different size
modem_main.c:174: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast
modem_main.c:175: error: dereferencing pointer to incomplete type
modem_main.c:178: error: dereferencing pointer to incomplete type
modem_main.c:182: warning: implicit declaration of function 'snd_mixer_close'
modem_main.c:182: error: dereferencing pointer to incomplete type
modem_main.c:183: error: dereferencing pointer to incomplete type
modem_main.c: In function 'alsa_device_setup':
modem_main.c:193: error: storage size of 'pfd' isn't known
modem_main.c:195: error: dereferencing pointer to incomplete type
modem_main.c:199: warning: format '%s' expects type 'char *', but argument 2 has type 'int'
modem_main.c:201: warning: implicit declaration of function 'snd_pcm_open'
modem_main.c:201: error: dereferencing pointer to incomplete type
modem_main.c:201: error: 'SND_PCM_STREAM_PLAYBACK' undeclared (first use in this function)
modem_main.c:201: error: 'SND_PCM_NONBLOCK' undeclared (first use in this function)
modem_main.c:203: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
modem_main.c:207: error: dereferencing pointer to incomplete type
modem_main.c:207: error: 'SND_PCM_STREAM_CAPTURE' undeclared (first use in this function)
modem_main.c:209: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
modem_main.c:213: warning: implicit declaration of function 'snd_pcm_poll_descriptors'
modem_main.c:213: error: dereferencing pointer to incomplete type
modem_main.c:215: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
modem_main.c:219: error: dereferencing pointer to incomplete type
modem_main.c:220: error: dereferencing pointer to incomplete type
modem_main.c:223: warning: implicit declaration of function 'snd_output_stdio_attach'
modem_main.c:193: warning: unused variable 'pfd'
modem_main.c: In function 'alsa_device_release':
modem_main.c:230: warning: implicit declaration of function 'snd_pcm_close'
modem_main.c:230: error: dereferencing pointer to incomplete type
modem_main.c:231: error: dereferencing pointer to incomplete type
modem_main.c:232: error: dereferencing pointer to incomplete type
modem_main.c:233: error: dereferencing pointer to incomplete type
modem_main.c:234: warning: implicit declaration of function 'snd_mixer_selem_set_playback_switch_all'
modem_main.c:234: error: dereferencing pointer to incomplete type
modem_main.c:235: error: dereferencing pointer to incomplete type
modem_main.c:236: error: dereferencing pointer to incomplete type
modem_main.c:237: error: dereferencing pointer to incomplete type
modem_main.c:238: error: dereferencing pointer to incomplete type
modem_main.c:239: error: dereferencing pointer to incomplete type
modem_main.c: In function 'alsa_xrun_recovery':
modem_main.c:250: warning: implicit declaration of function 'snd_pcm_prepare'
modem_main.c:250: error: dereferencing pointer to incomplete type
modem_main.c:252: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
modem_main.c:255: error: dereferencing pointer to incomplete type
modem_main.c:256: warning: implicit declaration of function 'snd_pcm_format_set_silence'
modem_main.c:256: error: 'SND_PCM_FORMAT_S16_LE' undeclared (first use in this function)
modem_main.c:257: warning: implicit declaration of function 'snd_pcm_writei'
modem_main.c:257: error: dereferencing pointer to incomplete type
modem_main.c:259: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
modem_main.c:262: warning: implicit declaration of function 'snd_pcm_start'
modem_main.c:262: error: dereferencing pointer to incomplete type



fernando_gomes29

e tem mais:
modem_main.c:262: error: dereferencing pointer to incomplete type
modem_main.c:264: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
modem_main.c: In function 'alsa_device_read':
modem_main.c:276: warning: implicit declaration of function 'snd_pcm_readi'
modem_main.c:276: error: dereferencing pointer to incomplete type
modem_main.c: In function 'alsa_device_write':
modem_main.c:292: error: dereferencing pointer to incomplete type
modem_main.c:295: error: dereferencing pointer to incomplete type
modem_main.c: At top level:
modem_main.c:317: error: syntax error before 'mdm2snd_format'
modem_main.c:318: warning: return type defaults to 'int'
modem_main.c: In function 'mdm2snd_format':
modem_main.c:320: error: 'SND_PCM_FORMAT_S16_LE' undeclared (first use in this function)
modem_main.c:321: error: 'SND_PCM_FORMAT_UNKNOWN' undeclared (first use in this function)
modem_main.c:322: warning: control reaches end of non-void function
modem_main.c: At top level:
modem_main.c:325: error: syntax error before '*' token
modem_main.c: In function 'setup_stream':
modem_main.c:327: error: 'm' undeclared (first use in this function)
modem_main.c:328: error: 'snd_pcm_hw_params_t' undeclared (first use in this function)
modem_main.c:328: error: 'hw_params' undeclared (first use in this function)
modem_main.c:329: error: 'snd_pcm_sw_params_t' undeclared (first use in this function)
modem_main.c:329: error: 'sw_params' undeclared (first use in this function)
modem_main.c:330: error: 'snd_pcm_format_t' undeclared (first use in this function)
modem_main.c:330: error: syntax error before 'format'
modem_main.c:332: error: 'snd_pcm_uframes_t' undeclared (first use in this function)
modem_main.c:332: error: syntax error before 'size'
modem_main.c:335: warning: implicit declaration of function 'snd_pcm_hw_params_malloc'
modem_main.c:337: error: 'stream_name' undeclared (first use in this function)
modem_main.c:337: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
modem_main.c:340: warning: implicit declaration of function 'snd_pcm_hw_params_any'
modem_main.c:340: error: 'handle' undeclared (first use in this function)
modem_main.c:342: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
modem_main.c:345: warning: implicit declaration of function 'snd_pcm_hw_params_set_access'
modem_main.c:345: error: 'SND_PCM_ACCESS_RW_INTERLEAVED' undeclared (first use in this function)
modem_main.c:347: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
modem_main.c:350: error: 'format' undeclared (first use in this function)
modem_main.c:351: error: 'SND_PCM_FORMAT_UNKNOWN' undeclared (first use in this function)
modem_main.c:355: warning: implicit declaration of function 'snd_pcm_hw_params_set_format'
modem_main.c:357: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
modem_main.c:360: warning: implicit declaration of function 'snd_pcm_hw_params_set_channels'
modem_main.c:362: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
modem_main.c:366: warning: implicit declaration of function 'snd_pcm_hw_params_set_rate_near'
modem_main.c:368: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
modem_main.c:376: error: 'rsize' undeclared (first use in this function)
modem_main.c:376: error: 'size' undeclared (first use in this function)
modem_main.c:376: error: dereferencing pointer to incomplete type
modem_main.c:377: warning: implicit declaration of function 'snd_pcm_hw_params_set_period_size_near'
modem_main.c:379: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
modem_main.c:387: error: dereferencing pointer to incomplete type
modem_main.c:388: warning: implicit declaration of function 'snd_pcm_hw_params_set_buffer_size_near'
modem_main.c:390: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
modem_main.c:397: warning: implicit declaration of function 'snd_pcm_hw_params'
modem_main.c:399: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
modem_main.c:404: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
modem_main.c:407: warning: implicit declaration of function 'snd_pcm_hw_params_free'
modem_main.c:409: warning: implicit declaration of function 'snd_pcm_sw_params_malloc'
modem_main.c:411: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
modem_main.c:414: warning: implicit declaration of function 'snd_pcm_sw_params_current'
modem_main.c:416: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
modem_main.c:419: warning: implicit declaration of function 'snd_pcm_sw_params_set_start_threshold'
modem_main.c:421: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
modem_main.c:424: warning: implicit declaration of function 'snd_pcm_sw_params_set_avail_min'
modem_main.c:426: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
modem_main.c:429: warning: implicit declaration of function 'snd_pcm_sw_params_set_xfer_align'
modem_main.c:431: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
modem_main.c:434: warning: implicit declaration of function 'snd_pcm_sw_params'
modem_main.c:436: warning: format '%s' expects type 'char *', but argument 4 has type 'int'
modem_main.c:439: warning: implicit declaration of function 'snd_pcm_sw_params_free'
modem_main.c:442: warning: implicit declaration of function 'snd_pcm_dump'
modem_main.c: In function 'alsa_start':
modem_main.c:451: error: dereferencing pointer to incomplete type
modem_main.c:452: error: dereferencing pointer to incomplete type
modem_main.c:453: error: dereferencing pointer to incomplete type
modem_main.c:456: error: dereferencing pointer to incomplete type
modem_main.c:459: error: dereferencing pointer to incomplete type
modem_main.c:460: error: dereferencing pointer to incomplete type
modem_main.c:460: error: dereferencing pointer to incomplete type
modem_main.c:462: error: 'SND_PCM_FORMAT_S16_LE' undeclared (first use in this function)
modem_main.c:468: error: dereferencing pointer to incomplete type
modem_main.c:473: error: dereferencing pointer to incomplete type
modem_main.c:474: error: dereferencing pointer to incomplete type
modem_main.c:475: warning: implicit declaration of function 'snd_pcm_link'
modem_main.c:475: error: dereferencing pointer to incomplete type
modem_main.c:475: error: dereferencing pointer to incomplete type
modem_main.c:477: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
modem_main.c:480: error: dereferencing pointer to incomplete type
modem_main.c:482: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
modem_main.c:485: error: dereferencing pointer to incomplete type
modem_main.c: In function 'alsa_stop':
modem_main.c:493: error: dereferencing pointer to incomplete type
modem_main.c:494: warning: implicit declaration of function 'snd_pcm_drop'
modem_main.c:494: error: dereferencing pointer to incomplete type
modem_main.c:495: warning: implicit declaration of function 'snd_pcm_nonblock'
modem_main.c:495: error: dereferencing pointer to incomplete type
modem_main.c:496: warning: implicit declaration of function 'snd_pcm_drain'
modem_main.c:496: error: dereferencing pointer to incomplete type
modem_main.c:497: error: dereferencing pointer to incomplete type
modem_main.c:498: warning: implicit declaration of function 'snd_pcm_unlink'
modem_main.c:498: error: dereferencing pointer to incomplete type
modem_main.c:499: warning: implicit declaration of function 'snd_pcm_hw_free'
modem_main.c:499: error: dereferencing pointer to incomplete type
modem_main.c:500: error: dereferencing pointer to incomplete type
modem_main.c: In function 'alsa_ioctl':
modem_main.c:513: error: dereferencing pointer to incomplete type
modem_main.c:515: error: dereferencing pointer to incomplete type
modem_main.c:518: error: dereferencing pointer to incomplete type
modem_main.c:519: warning: implicit declaration of function 'snd_mixer_selem_set_playback_volume_all'
modem_main.c:520: error: dereferencing pointer to incomplete type
modem_main.c:524: error: dereferencing pointer to incomplete type
modem_main.c:525: error: dereferencing pointer to incomplete type
modem_main.c: In function 'modemap_start':
modem_main.c:554: error: dereferencing pointer to incomplete type
modem_main.c:555: error: dereferencing pointer to incomplete type
modem_main.c:560: error: dereferencing pointer to incomplete type
modem_main.c:562: error: dereferencing pointer to incomplete type
modem_main.c:565: error: dereferencing pointer to incomplete type
modem_main.c: In function 'modemap_stop':
modem_main.c:573: error: dereferencing pointer to incomplete type
modem_main.c: In function 'modemap_ioctl':
modem_main.c:583: error: dereferencing pointer to incomplete type
modem_main.c:586: error: dereferencing pointer to incomplete type
modem_main.c: In function 'mdm_device_read':
modem_main.c:602: error: dereferencing pointer to incomplete type
modem_main.c: In function 'mdm_device_write':
modem_main.c:609: error: dereferencing pointer to incomplete type
modem_main.c: In function 'mdm_device_setup':
modem_main.c:618: error: dereferencing pointer to incomplete type
modem_main.c:634: error: dereferencing pointer to incomplete type
modem_main.c:635: error: dereferencing pointer to incomplete type
modem_main.c: In function 'mdm_device_release':
modem_main.c:641: error: dereferencing pointer to incomplete type
modem_main.c: In function 'modem_run':
modem_main.c:777: error: dereferencing pointer to incomplete type
modem_main.c:777: error: dereferencing pointer to incomplete type
modem_main.c:779: error: dereferencing pointer to incomplete type
modem_main.c:779: error: dereferencing pointer to incomplete type
modem_main.c:780: error: dereferencing pointer to incomplete type
modem_main.c:804: error: dereferencing pointer to incomplete type
modem_main.c:804: error: dereferencing pointer to incomplete type
modem_main.c:813: error: dereferencing pointer to incomplete type
modem_main.c:822: error: dereferencing pointer to incomplete type
modem_main.c:822: error: dereferencing pointer to incomplete type
modem_main.c:836: error: dereferencing pointer to incomplete type
modem_main.c:843: error: dereferencing pointer to incomplete type
modem_main.c:870: error: dereferencing pointer to incomplete type
modem_main.c: In function 'modem_main':
modem_main.c:935: error: storage size of 'device' isn't known
modem_main.c:935: warning: unused variable 'device'
make[1]: ** [modem_main.o] Erro 1
make[1]: Saindo do diretório `/home/fernando/Modem/modem-arquivos-v14/slmodem-2.9.11-20061021/modem'
make: ** [modem] Erro 2
Make|Gcc|Build-Essential|Linux-Headers-2.6.15-23-amd64-generic|Libasound2|Gnome-PPP|Ungrab-Winmodem|Slmodem-2.9.11-20061021|Sl-Modem-Daemon|Dialup
dpkg - aviso, ignorando problema porque --force foi habilitado:
arquitetura do pacote (i386) não é a mesma do sistema (amd64)
(Lendo banco de dados ... 86941 arquivos e diretórios atualmente instalados.)
Preparando para substituir sl-modem-daemon 2.9.10+2.9.9d+e-pre2-5build1 (usando sl-modem-daemon_2.9.10+2.9.9d+e-pre2-5build1_i386.deb) ...
Descompactando substituto sl-modem-daemon ...
Instalando sl-modem-daemon (2.9.10+2.9.9d+e-pre2-5build1) ...
1 [Modem          ]: ICH-MODEM - SiS SI7013 Modem
Starting SmartLink Modem driver for: modem:1.
Creating /dev/modem symlink, pointing to: /dev/ttySL0.

Shutting down SmartLink Modem driver normally ... no slmodemd daemon running.
Unloading modem driver from kernel ... failed.

Shutting down SmartLink Modem driver normally ... no slmodemd daemon running.
Unloading modem driver from kernel ... failed.
1 [Modem          ]: ICH-MODEM - SiS SI7013 Modem
Starting SmartLink Modem driver for: modem:1.
Creating /dev/modem symlink, pointing to: /dev/ttySL0.
Make|Gcc|Build-Essential|Linux-Headers-2.6.15-23-amd64-generic|Libasound2|Gnome-PPP|Ungrab-Winmodem|Slmodem-2.9.11-20061021|Sl-Modem-Daemon|Dialup


root@Whitebox:/home/fernando/Modem/modem-arquivos-v14# /etc/init.d/sl-modem-daemon restart
Shutting down SmartLink Modem driver normally ... no slmodemd daemon running.
Unloading modem driver from kernel ... failed.
1 [Modem          ]: ICH-MODEM - SiS SI7013 Modem
Starting SmartLink Modem driver for: modem:1.
Creating /dev/modem symlink, pointing to: /dev/ttySL0.
root@Whitebox:/home/fernando/Modem/modem-arquivos-v14#

alarcon

#319
Citação de: fernando_gomes29 online 31 de Dezembro de 2006, 00:28
Valeu Alarcon , vou instalar agora mesmo, assim que tiver resultados Negativos ou positivos , responderei.


Valeu...!

Você leu o arquivo chamado de Leia-me que se encontra dentro do pacote que fiz lá dá as instruções de como instalá-lo. Acho que deu erro pq vc não seguiu direito as instruções e os pacotes necessários para se compilar o driver não foram instalados.

Siga corretamente o que diz o arquivo Leia-me e também deixe o LiveCd do Ubuntu 6.06 no driver de CD-Rom pois o instalador vai precisar de alguns arquivos que estão dentro dele.

Para finalizar, é melhor vc reinstalar o seu Ubuntu 6.06 antes de tentar novamente, pois como anteriormente vc usou o pacote errado (modem-arquivos-v15.tar.gz), talvez os arquivos que ele instalou estejam dando conflito com o que falei para vc usar. São de versões diferentes e ocorre problema de depedências.

OBS: Vendo com mais detalhe sua resposta aqui percebi isso Linux-Headers-2.6.15-23-amd64, ou seja, vc usa o Ubuntu 6.06 64bit e o mesmo não funciona com o driver de modem usado pq ele foi feito apenas para 32bit e não sei se existe o driver em versão 64bit, portanto a sua única opção é usar o Ubuntu 6.06 32bit e usar este pacote modem-arquivos-v14.tar.gz novamente.

aliine

olá pessoal.
belo trabalho que estão fazendo aqui.

eu instalei o pacote "modem-arquivos-v12.tar"
e corrigi os arquivos.

mas quando tento conectar aparece a seguinte mensagem:

--> Ignoring malformed input line: ";Do NOT edit this file by hand!"
--> WvDial: Internet dialer version 1.55
--> Cannot set information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.

qual é o erro?
será que podem me ajudar a solucioná-lo?

Muito obrigada.
Aline.
[/b]

alarcon

Citação de: aliine online 04 de Janeiro de 2007, 18:01
olá pessoal.
belo trabalho que estão fazendo aqui.

eu instalei o pacote "modem-arquivos-v12.tar"
e corrigi os arquivos.

mas quando tento conectar aparece a seguinte mensagem:

--> Ignoring malformed input line: ";Do NOT edit this file by hand!"
--> WvDial: Internet dialer version 1.55
--> Cannot set information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.

qual é o erro?
será que podem me ajudar a solucioná-lo?

Muito obrigada.
Aline.
[/b]

Por favor use o pacote modem-arquivos-v14.tar.gz se vc usa o ubuntu dapper (versão 6.06 ou 6.06.1).
Caso vc use o Ubuntu Edgy (Versão 6.10) use o pacote modem-arquivos-v15.tar.gz.

É que estes pacotes aí que falei trazem o driver mais recente da Smartlink que corrige alguns bugs, principalmente para os modems HSP56 MR SiS.

alarcon

#322
Citação de: aliine online 04 de Janeiro de 2007, 18:01
olá pessoal.
belo trabalho que estão fazendo aqui.

eu instalei o pacote "modem-arquivos-v12.tar"
e corrigi os arquivos.

mas quando tento conectar aparece a seguinte mensagem:

--> Ignoring malformed input line: ";Do NOT edit this file by hand!"
--> WvDial: Internet dialer version 1.55
--> Cannot set information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.

qual é o erro?
será que podem me ajudar a solucioná-lo?

Muito obrigada.
Aline.
[/b]

Bem analisando com mais calma aqui os dois pacotes, modem-arquivos-v12.tar.gz e modem-arquivos-v14.tar.gz, pude perceber ou melhor relembrar que em ambos já existe o driver mais recente da Smartlink. A única diferença é que fiz umas correções no script de instalação install-modem.sh sobre alguns problemas de permissões.

Estou escrevendo um tutorial em pdf para o pacote modem-arquivos-v14.tar.gz explicando com ilustrações como é que se usa este pacote para a instalação do driver e ativação do modem. Não está acabado ainda mais já dá para saber como usar o pacote que fiz. Se vc quiser posso lhe enviar por email o arquivo guia_instalação.pdf que possue até agora 849KB de tamanho.

aliine

sim. ficaria muito grata  :D

L1R1NE@hotmail.com


aliine


MaRxMR

Esses drivers não são atualizados diretamente pelo Ubuntu, né?
E o gnome ppp só reconecta quando tá de bom humor ou é só comigo? >:(

alarcon

Citação de: MaRxMR online 05 de Janeiro de 2007, 01:13
Esses drivers não são atualizados diretamente pelo Ubuntu, né?
E o gnome ppp só reconecta quando tá de bom humor ou é só comigo? >:(

Somente os pacotes .deb é que podem ser atualizados pelo gerenciador de atualizações do Ubuntu. O driver do modem é um arquivo de codigo fonte, os em .tar.gz, ainda para ser compilado. Portanto o meu pacote não é atualizado pelo ubuntu.

Bom com relação ao gnome-ppp só conectar com vc quando está de bom humor, isso nunca ocorreu comigo. saber quais as causas disto está ocorrendo é difícil, mais o driver da smartlink funciona para uma grande variedade de softmodems daí ele ser considerado um driver "coringa' quando não se sabe qual driver usar para o seu modem, ou seja, ele serve como um grande chute e possibilidade de acerto.

Acontece que para alguns tipos de modems que ele dá suporte, pode este suporte não ser assim tão legal. Os modems HSP56 MR da SiS são uns dos mais problemáticos. Já os HSP56 MR da VIA e os Lg neto dragon me parece os menos problemáticos.

Pode ser também a sua versão do Ubuntu que se for a Edgy me parece que ela não é assim tão estável e pode estar influenciando na sua conexão discada, mas é muito complexo para se dar uma resposta sobre isso.

aliine

Ola pessoal.

me desculpem pela demora para postar o resultado ::)..
mas o arquivo que o Alarcon está desenvolvendo, e que me enviou,
é bem esclarecedor..
cheguei a pensar que no meu caso era um probleminha de b.i.o.s.
[bichinhu ignorantih operandu o sistema]
hAUahuaHAuhaUahuaH..
mas naaaaum era.

era um plobleminha com a rede.

mas depois de instalar algumas vezes vc pega pratica!

parabens pela inicitiva.. sem este arquivo pra fazer o trabalho duro..
seria mais complicado.

abraços!

aleksandre

Olá a todos!

Alarcon, aqui estou experimentando o 6.10 através do seu pacote v.15; fiz como qualquer um faria e tudo transcorreu perfeitamente! Parabéns! Seu pacote está cada vez melhor! Mas como sou chato sugeriria colocar uma opção para marcar/desmarcar a inclusão do CD de instalação. Não que atrapalhe qualquer coisa, mas apenas para que seu pacote fique bem redondinho!
Aqui estão meus dados para seu registro:

Citaraleksandre@shallom:~$ lspci | grep Modem
00:0f.0 Modem: ALi Corporation SmartLink SmartPCI561 56K Modem (Meu Modem)

aleksandre@shallom:~$ lspci -n | grep 00:0f.0
00:0f.0 0703: 10b9:5459       (ID's VENDOR e PCI)

aleksandre@shallom:~$ dmesg | grep slamr
[17179594.064000] slamr: module license 'Smart Link Ltd.' taints kernel.
[17179594.064000] slamr: SmartLink AMRMO modem.
[17179594.064000] slamr: probe 10b9:5459 SL1800 card...
[17179594.068000] slamr: mc97 codec is SIL26
[17179594.068000] slamr: slamr0 is SL1800 card.

Quantos às ID's, gostaria de saber se você já tem um registro dos modens que usam ou não o ungrab-winmodem?
Lembro que no Projeto Messias você tinha esse grupo de ID's de cada modem para determinado tipo de driver, mas creio que não havia nada relativo ao ungrab-winmodem, não? Pode me ceder esses registros por email?

Novamente parabéns!
Ateh!

clcampos

Boa tarde a todos!!!

Tentei ler o máximo de mensagens deste tópico e não encontrei meu problema então irei reportar minha situação. Instalei o Dapper no PC do meu Pai (Asus P4V8X-X, Proc. Intel 2,67 Ghz, 756 RAM, Hd 80 GB, Modem LM-I56N) e ele adorou sentindo falta da conexão com a internet, no caso dele discada, e como sempre usei internet pela rede nem me preocupei ao início em configurar seu modem.

Hoje realizei a instalação do modem conforme a primeira mensagem do tópico e não encontrei nenhuma mensagem de erro, sendo que tudo ocorreu perfeitamente.  Criei um atalho para ele para poder conectar (ele usa o IG) e o modem é reconhecido, faz a ligação e depois desconecta e volta a tela de conexão, postarei abaixo as mensagens que ocorrem na tentativa de conexão, bem como algumas informações que já vi serem solicitadas.

Mensagens na tentativa de Conexão:

--> Ignoring malformed input line: ";Do NOT edit this file by hand!"
--> WvDial: Internet dialer version 1.55
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATM1L3DT15002000
--> Waiting for carrier.
ATM1L3DT15002000
CONNECT 16800
--> Carrier detected.  Waiting for prompt.
--> Connected, but carrier signal lost!  Retrying...
--> Sending: ATM1L3DT15002000
--> Waiting for carrier.
~[7f]}#@!}!}3} }8}"}&} }*} } }#}$@#}%}&905H}'}"}(}"1[03]~~[7f]}#@!}!}4} }8}"}&} }*} } }#}$@#}%}&905H}'}"}(}"}&~~[7f]}#@!}!}5} }8}"}&} }*} } }#}$@#}%}&905H}'}"}(}"4/~~[7f]}#@!}!}6} }8}"}&} }*} } }#}$@#}%}&905H}'}"}(}"}^=~~[7f]}#@!}!}7} }8}"}&} }*} } }#}$@#}%}&905H}'}"}(}"74~~[7f]}#@!}!}8} }8}"}&} }*} } }#}$@#}%}&905H}'}"}(}"w[7f]~~[7f]}#@!}!}9} }8}"}&} }*} } }#}$@#}%}&905H}'}"}(}">v~~[7f]}#@!}!}:} }8}"}&} }*} } }#}$@#}%}&905H}'}"}(}"td~~[7f]}#@!}!};} }8}"}&} }*} } }#}$@#}%}&905H}'}"}(}"=m~~[7f]}#@!}!}<} }8}"}&} }*} } }#}$@#}%}&905H}'}"}(}"qH~NO CARRIER
--> No Carrier!  Trying again.
--> Maximum Attempts Exceeded..Aborting!!
--> Disconnecting at Tue Jan 23 19:06:48 2007


Resultado do Comando:  ps -aux | grep slmodemd

Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root      4364  1.1  0.7   3712  3712 ?        SLs  18:51   0:08 /usr/sbin/slmodemd -c USA /dev/slamr0
root      5894  0.0  0.1   2892   828 pts/2    S+   19:03   0:00 grep slmodemd


Resultado do Comando:  dmesg | grep slamr

[17179592.288000] slamr: module license 'Smart Link Ltd.' taints kernel.
[17179592.288000] slamr: SmartLink AMRMO modem.
[17179592.288000] slamr: probe 10b9:5459 SL1800 card...
[17179592.288000] slamr: mc97 codec is SIL26
[17179592.292000] slamr: slamr0 is SL1800 card.


Resultado do Comando:  lsmod

Module                  Size  Used by
nls_cp437               5888  1
isofs                  37688  2
udf                    88580  0
ipv6                  265856  6
rfcomm                 40216  0
l2cap                  26244  5 rfcomm
bluetooth              50020  4 rfcomm,l2cap
ppdev                   9220  0
speedstep_lib           4484  0
cpufreq_powersave       1920  0
cpufreq_stats           5636  0
cpufreq_userspace       4696  0
cpufreq_ondemand        6428  0
cpufreq_conservative     7332  0
freq_table              4740  1 cpufreq_stats
tc1100_wmi              6916  0
video                  16260  0
acpi_sbs               19980  0
battery                 9988  1 acpi_sbs
i2c_acpi_ec             5120  1 acpi_sbs
container               4608  0
button                  6672  0
pcc_acpi               12416  0
sony_acpi               5644  0
ac                      5252  1 acpi_sbs
dev_acpi               11140  0
hotkey                 11556  0
nls_utf8                2176  4
ntfs                  103536  3
dm_mod                 58936  1
md_mod                 72532  0
af_packet              22920  2
lp                     11844  0
snd_seq_dummy           3844  0
snd_seq_oss            33536  0
snd_seq_midi            9376  0
snd_seq_midi_event      7552  2 snd_seq_oss,snd_seq_midi
snd_seq                51984  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
tsdev                   8000  0
rtc                    13492  0
parport_pc             35780  1
parport                36296  3 ppdev,lp,parport_pc
snd_via82xx            28824  1
gameport               15496  1 snd_via82xx
snd_ac97_codec         93216  1 snd_via82xx
snd_ac97_bus            2304  1 snd_ac97_codec
via_rhine              23940  0
snd_pcm_oss            53664  0
snd_mixer_oss          18688  1 snd_pcm_oss
snd_pcm                89864  3 snd_via82xx,snd_ac97_codec,snd_pcm_oss
snd_timer              25220  2 snd_seq,snd_pcm
snd_page_alloc         10632  2 snd_via82xx,snd_pcm
snd_mpu401_uart         7808  1 snd_via82xx
snd_rawmidi            25504  2 snd_seq_midi,snd_mpu401_uart
snd_seq_device          8716  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq,snd_rawmidi
mii                     5888  1 via_rhine
i2c_viapro              8980  0
floppy                 62148  0
psmouse                36100  0
snd                    55268  13 snd_seq_oss,snd_seq,snd_via82xx,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore              10208  1 snd
nvidia               4551028  12
i2c_core               21904  3 i2c_acpi_ec,i2c_viapro,nvidia
serio_raw               7300  0
pcspkr                  2180  0
slamr                 434344  2
ungrab_winmodem         2432  0
via_agp                 9856  1
agpgart                34888  2 nvidia,via_agp
shpchp                 45632  0
pci_hotplug            29236  1 shpchp
evdev                   9856  1
reiserfs              268016  1
ide_generic             1536  0
ehci_hcd               34184  0
uhci_hcd               33808  0
usbcore               130820  3 ehci_hcd,uhci_hcd
ide_cd                 33028  2
cdrom                  38560  1 ide_cd
ide_disk               17664  7
generic                 5124  0
via82cxxx               9988  0 [permanent]
sata_via               10116  0
libata                 78992  1 sata_via
scsi_mod              139496  1 libata
thermal                13576  0
processor              23360  1 thermal
fan                     4868  0
capability              5000  0
commoncap               7296  1 capability
vga16fb                13704  1
vgastate               10368  1 vga16fb
fbcon                  42784  72
tileblit                2816  1 fbcon
font                    8320  1 fbcon
bitblit                 6272  1 fbcon
softcursor              2304  1 bitblit


Conto com a colaboração para poder colocar meu Pai usando apenas o Ubuntu!!!!!
Cristiano/Timóteo - MG
.: Como Fazer Perguntas de Forma Inteligente :.                
Com dúvida? pesquise!