Um dia a todos,

Instalei os pacotes de foi sugerido pelo nosso amigo Junior Polegato  e
tambem o linux-source 'uname -r'
Verifique se o sistema já tinha identificado o dispositivos, no caso 2
portas serias e uma paralela e nada.
O erro continua na instalação do módulo.. O comando make clean vai sem
problemas, mas o make install dá erros, segue a saída do comando:


*  "  make install
make[1]: Entering directory `/temp/WCH_2S1P/LINUX/wchterm'
gcc -Wall -O2 -pthread -pipe -o wchterm wchterm.c -lncurses
wchterm.c:12:21: error: ncurses.h: No such file or directory
wchterm.c:86: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘*’ token
wchterm.c:87: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘*’ token
wchterm.c:88: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘*’ token
wchterm.c:89: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘*’ token
wchterm.c:90: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘*’ token
wchterm.c:91: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘*’ token
wchterm.c:92: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘*’ token
wchterm.c: In function ‘main’:
wchterm.c:123: warning: implicit declaration of function ‘initscr’
wchterm.c:124: warning: implicit declaration of function ‘noecho’
wchterm.c:125: warning: implicit declaration of function ‘cbreak’
wchterm.c:129: warning: implicit declaration of function ‘endwin’
wchterm.c: In function ‘windowsInit’:
wchterm.c:137: error: ‘menu_win’ undeclared (first use in this function)
wchterm.c:137: error: (Each undeclared identifier is reported only once
wchterm.c:137: error: for each function it appears in.)
wchterm.c:137: warning: implicit declaration of function ‘newwin’
wchterm.c:138: error: ‘port_win’ undeclared (first use in this function)
wchterm.c:139: error: ‘comm_win’ undeclared (first use in this function)
wchterm.c:140: error: ‘mesg_win’ undeclared (first use in this function)
wchterm.c:141: error: ‘term_win’ undeclared (first use in this function)
wchterm.c:142: error: ‘eror_win’ undeclared (first use in this function)
wchterm.c:143: error: ‘daut_win’ undeclared (first use in this function)
wchterm.c:146: warning: implicit declaration of function ‘keypad’
wchterm.c:146: error: ‘TRUE’ undeclared (first use in this function)
wchterm.c: In function ‘mainFunction’:
wchterm.c:162: warning: implicit declaration of function ‘box’
wchterm.c:162: error: ‘mesg_win’ undeclared (first use in this function)
wchterm.c:163: warning: implicit declaration of function ‘mvwprintw’
wchterm.c:164: error: ‘term_win’ undeclared (first use in this function)
wchterm.c:165: warning: implicit declaration of function ‘wrefresh’
wchterm.c:197: warning: implicit declaration of function ‘werase’
wchterm.c:197: error: ‘menu_win’ undeclared (first use in this function)
wchterm.c:260: warning: implicit declaration of function ‘clear’
wchterm.c: In function ‘serialPortSetup’:
wchterm.c:272: warning: implicit declaration of function ‘wgetch’
wchterm.c:272: error: ‘port_win’ undeclared (first use in this function)
wchterm.c: In function ‘commPamSetup’:
wchterm.c:351: error: ‘comm_win’ undeclared (first use in this function)
wchterm.c:560: error: ‘mesg_win’ undeclared (first use in this function)
wchterm.c:562: error: ‘term_win’ undeclared (first use in this function)
wchterm.c: In function ‘scanDeviceName’:
wchterm.c:576: warning: implicit declaration of function ‘wmove’
wchterm.c:576: error: ‘port_win’ undeclared (first use in this function)
wchterm.c:583: error: ‘KEY_LEFT’ undeclared (first use in this function)
wchterm.c:593: error: ‘KEY_RIGHT’ undeclared (first use in this function)
wchterm.c:611: warning: implicit declaration of function ‘getyx’
wchterm.c: In function ‘sentTerm’:
wchterm.c:768: warning: implicit declaration of function ‘curs_set’
wchterm.c:781: error: ‘mesg_win’ undeclared (first use in this function)
wchterm.c: In function ‘readTerm’:
wchterm.c:808: error: ‘term_win’ undeclared (first use in this function)
wchterm.c: In function ‘dumbTerm1’:
wchterm.c:924: error: ‘term_win’ undeclared (first use in this function)
wchterm.c:950: error: ‘mesg_win’ undeclared (first use in this function)
wchterm.c: In function ‘dumbTerm2’:
wchterm.c:979: error: ‘term_win’ undeclared (first use in this function)
wchterm.c: In function ‘sendPattern’:
wchterm.c:1040: error: ‘mesg_win’ undeclared (first use in this function)
wchterm.c: In function ‘printMainMenu’:
wchterm.c:1060: error: ‘menu_win’ undeclared (first use in this function)
wchterm.c:1063: error: ‘KEY_UP’ undeclared (first use in this function)
wchterm.c:1077: error: ‘KEY_DOWN’ undeclared (first use in this function)
wchterm.c: In function ‘printMainMenu_L’:
wchterm.c:1121: error: ‘menu_win’ undeclared (first use in this function)
wchterm.c:1135: warning: implicit declaration of function ‘wattron’
wchterm.c:1135: error: ‘A_REVERSE’ undeclared (first use in this function)
wchterm.c:1137: warning: implicit declaration of function ‘wattroff’
wchterm.c: In function ‘printPortBasic’:
wchterm.c:1151: error: ‘port_win’ undeclared (first use in this function)
wchterm.c:1170: warning: implicit declaration of function ‘wprintw’
wchterm.c: In function ‘printCommPam’:
wchterm.c:1196: error: ‘comm_win’ undeclared (first use in this function)
wchterm.c: In function ‘printMessage’:
wchterm.c:1225: error: ‘mesg_win’ undeclared (first use in this function)
wchterm.c: In function ‘printErrMsg’:
wchterm.c:1265: error: ‘eror_win’ undeclared (first use in this function)
wchterm.c: In function ‘printDefaultPattern’:
wchterm.c:1309: error: ‘mesg_win’ undeclared (first use in this function)
wchterm.c:1313: error: ‘term_win’ undeclared (first use in this function)
wchterm.c:1316: error: ‘daut_win’ undeclared (first use in this function)
wchterm.c:1321: error: ‘A_REVERSE’ undeclared (first use in this function)
make[1]: *** [wchterm] Error 1
make[1]: Leaving directory `/temp/WCH_2S1P/LINUX/wchterm'
make: *** [wchterm_install] Error 2

"*

Pacotes já instalados, gcc, g++, make, linux-source-'uname -r',
linux-hearders-'uname -r", build-essential



Obrigado,
  ~    *| Fábio de
Sousa
*
.ºvº. *| *
/(_)\ | *Seja livre, use LINUX*
.^.^. | *Socialmente justo, economicamente viável e tecnologicamente
sustentável*








Em 20 de agosto de 2012 14:40, Linux - Junior Polegato <
[email protected]> escreveu:

>  Em 20-08-2012 11:33, Fábio de Sousa escreveu:
>
> Bom dia Amigos,
> Estou tentando instalar um PCI CARD Sky Media com duas portas Seriais e um
> porta paralela
> Tem um Cd cotendo os drivers para linux!
> Quem quiser conferir eles estão no link:
> http://purwodadi.ptpn-xi.com/download/Drivers/PCI%20IO/WCH%20card/CH35XDRV/WCH_2S1P/
> Seguindo as instruções que estão no arquivo README q são estas aqui:
> [...]
>
> e quando executo o comando make install retorna isso:
> root@debian:/tmp/WCH_2S1P/LINUX# make install
> cd driver;\
>         make install
> make[1]: Entering directory `/tmp/WCH_2S1P/LINUX/driver'
> make -C /lib/modules/2.6.32-5-686/build SUBDIRS=/tmp/WCH_2S1P/LINUX/driver
> modules
> make: Entering an unknown directory
> make: *** /lib/modules/2.6.32-5-686/build: No such file or directory.
> Stop.
> make: Leaving an unknown directory
> make[1]: *** [modules] Error 2
> make[1]: Leaving directory `/tmp/WCH_2S1P/LINUX/driver'
> make: *** [driver_install] Error 2
> Alguem saberia me dizer o que está errado?
>
>
> Olá!
>
>         Primeiramente verifique se já não tem o driver instalado e
> operante com "lspci -vvnn", procurando por especificações da placa/portas.
> Procure também no /dev/lpX ou /dev/ttySn se já não detectou as portas.
>
>         Se não tiver, tem que instalar as ferramentas necessárias para
> compilar um módulo com "apt-get install build-essential
> linux-headers-`uname -r`", aí sim roda o make install.
>
> --
> []'s
>
> Junior Polegato
>
>

Responder a