[SOLVED] neostrada
: 26 marca 2007, 21:22
Witam !
Mam problem z zainstalowanie neostrady na Debianie etch, modem ST330, kierowałem się w/g tego opisu:
http://www.szarp.com.pl/howto/howto/htm ... a-usb.html
Błąd pojawia sie, kiedy mam skompilować 'firmware.c', a konkretnie to wywala sporo błędów, oto one:
Dodam jeszcze, ze kiedy doinstalowywałem gcc, to zajmowało ono tylko 65 KB.
Pozdro.
Mam problem z zainstalowanie neostrady na Debianie etch, modem ST330, kierowałem się w/g tego opisu:
http://www.szarp.com.pl/howto/howto/htm ... a-usb.html
Błąd pojawia sie, kiedy mam skompilować 'firmware.c', a konkretnie to wywala sporo błędów, oto one:
Kod: Zaznacz cały
debian:/home/bi3gan# gcc -o firmware firmware.c -DSTANDALONE_EXTRACTER
firmware.c:40:19: error: modem.h: Nie ma takiego pliku ani katalogu
firmware.c:41:20: error: pppoa3.h: Nie ma takiego pliku ani katalogu
firmware.c:42:17: error: crc.h: Nie ma takiego pliku ani katalogu
firmware.c:43:22: error: firmware.h: Nie ma takiego pliku ani katalogu
firmware.c:45:19: error: stdio.h: Nie ma takiego pliku ani katalogu
firmware.c:46:20: error: stdlib.h: Nie ma takiego pliku ani katalogu
firmware.c:47:20: error: string.h: Nie ma takiego pliku ani katalogu
firmware.c:48:20: error: unistd.h: Nie ma takiego pliku ani katalogu
firmware.c:49:19: error: fcntl.h: Nie ma takiego pliku ani katalogu
firmware.c:50:22: error: sys/stat.h: Nie ma takiego pliku ani katalogu
firmware.c:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*
’ token
firmware.c:201: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘
*’ token
firmware.c:291: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘
*’ token
firmware.c: In function ‘load_file’:
firmware.c:404: error: storage size of ‘statbuf’ isn’t known
firmware.c:412: error: ‘O_RDONLY’ undeclared (first use in this function)
firmware.c:412: error: (Each undeclared identifier is reported only once
firmware.c:412: error: for each function it appears in.)
firmware.c:414: error: ‘NULL’ undeclared (first use in this function)
firmware.c:427: warning: incompatible implicit declaration of built-in function ‘malloc’
firmware.c: At top level:
firmware.c:505: error: expected ‘ ;) ’ before ‘*’ token
firmware.c:528:17: error: crc.c: Nie ma takiego pliku ani katalogu
firmware.c: In function ‘usage’:
firmware.c:532: warning: incompatible implicit declaration of built-in function ‘fprintf’
firmware.c:532: error: ‘stderr’ undeclared (first use in this function)
firmware.c: In function ‘main’:
firmware.c:540: error: ‘NULL’ undeclared (first use in this function)
firmware.c:542: error: ‘stusb_firmware_t’ undeclared (first use in this function )
firmware.c:542: error: ‘firmware’ undeclared (first use in this function)
firmware.c:558: warning: incompatible implicit declaration of built-in function ‘printf’
firmware.c:563: error: ‘O_CREAT’ undeclared (first use in this function)
firmware.c:563: error: ‘O_WRONLY’ undeclared (first use in this function)
firmware.c:563: error: ‘O_TRUNC’ undeclared (first use in this function)
Pozdro.