Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: Problém s kompilací cxacru  (Přečteno 2750 krát)

Iškuda

  • Návštěvník
  • Příspěvků: 8
Problém s kompilací cxacru
« kdy: 27 Března 2007, 17:45:29 »
Snažím se naistalovat modem ZyXEL 630-C1 podle návodu na tomto webu, ale když chci zkompilovat soubrou cxacru-fw.c tak mi kompilátor oznámí spoustu chyb a zřejmě soubor nezkompiluje, protože další příkaz podle návodu (./cxacru-fw CnxEtU.sys cxacru-fw.bin) již nevezme. Nevítě někdo v čem by mohla být chyba?

carpathian

  • Aktivní člen
  • *
  • Příspěvků: 123
Problém s kompilací cxacru
« Odpověď #1 kdy: 27 Března 2007, 18:45:42 »
V otazce. Jakou spoustu chyb?

Iškuda

  • Návštěvník
  • Příspěvků: 8
Problém s kompilací cxacru
« Odpověď #2 kdy: 27 Března 2007, 19:47:23 »
Kompilátor mi napíše:

Kód: [Vybrat]
cxacru-fw.c:1: error: stray ‘\357’ in program
cxacru-fw.c:1: error: stray ‘\273’ in program
cxacru-fw.c:1: error: stray ‘\277’ in program
cxacru-fw.c:24:19: error: stdio.h: No such file or directory
cxacru-fw.c:25:19: error: fcntl.h: No such file or directory
cxacru-fw.c:26:20: error: unistd.h: No such file or directory
cxacru-fw.c:27:19: error: error.h: No such file or directory
cxacru-fw.c:28:18: error: argp.h: No such file or directory
cxacru-fw.c:29:20: error: stdint.h: No such file or directory
cxacru-fw.c:30:22: error: sys/stat.h: No such file or directory
cxacru-fw.c:31:22: error: sys/mman.h: No such file or directory
cxacru-fw.c:32:20: error: endian.h: No such file or directory
cxacru-fw.c:33:22: error: byteswap.h: No such file or directory
cxacru-fw.c:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘le16_to_cpup’
cxacru-fw.c:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘le32_to_cpup’
cxacru-fw.c:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
cxacru-fw.c:140: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘parse_opts’
cxacru-fw.c:168: error: variable ‘argp’ has initializer but incomplete type
cxacru-fw.c:168: warning: excess elements in struct initializer
cxacru-fw.c:168: warning: (near initialization for ‘argp’)
cxacru-fw.c:168: error: ‘parse_opts’ undeclared here (not in a function)
cxacru-fw.c:168: warning: excess elements in struct initializer
cxacru-fw.c:168: warning: (near initialization for ‘argp’)
cxacru-fw.c:168: warning: excess elements in struct initializer
cxacru-fw.c:168: warning: (near initialization for ‘argp’)
cxacru-fw.c:168: warning: excess elements in struct initializer
cxacru-fw.c:168: warning: (near initialization for ‘argp’)
cxacru-fw.c: In function ‘main’:
cxacru-fw.c:174: error: storage size of ‘instat’ isn’t known
cxacru-fw.c:175: error: ‘uint8_t’ undeclared (first use in this function)
cxacru-fw.c:175: error: (Each undeclared identifier is reported only once
cxacru-fw.c:175: error: for each function it appears in.)
cxacru-fw.c:175: error: ‘buf’ undeclared (first use in this function)
cxacru-fw.c:175: error: ‘fw’ undeclared (first use in this function)
cxacru-fw.c:178: error: ‘NULL’ undeclared (first use in this function)
cxacru-fw.c:180: error: ‘O_RDONLY’ undeclared (first use in this function)
cxacru-fw.c:182: error: ‘errno’ undeclared (first use in this function)
cxacru-fw.c:189: error: ‘PROT_READ’ undeclared (first use in this function)
cxacru-fw.c:189: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
cxacru-fw.c:198: error: ‘O_WRONLY’ undeclared (first use in this function)
cxacru-fw.c:198: error: ‘O_CREAT’ undeclared (first use in this function)
cxacru-fw.c:198: error: ‘O_EXCL’ undeclared (first use in this function)
cxacru-fw.c:199: error: ‘S_IRUSR’ undeclared (first use in this function)
cxacru-fw.c:199: error: ‘S_IWUSR’ undeclared (first use in this function)
cxacru-fw.c:199: error: ‘S_IRGRP’ undeclared (first use in this function)
cxacru-fw.c:199: error: ‘S_IWGRP’ undeclared (first use in this function)
cxacru-fw.c:199: error: ‘S_IROTH’ undeclared (first use in this function)
cxacru-fw.c:199: error: ‘S_IWOTH’ undeclared (first use in this function)
cxacru-fw.c:208: warning: incompatible implicit declaration of built-in function ‘printf’

carpathian

  • Aktivní člen
  • *
  • Příspěvků: 123
Problém s kompilací cxacru
« Odpověď #3 kdy: 28 Března 2007, 08:14:47 »
Pro zacatek zkuste nainstalovat balik libc6-dev. Ktety balik vam chybi vam prozradi treba apt-file:

$ apt-file update
$ apt-file search /usr/include/stdio.h
libc6-dev: usr/include/stdio.h

Iškuda

  • Návštěvník
  • Příspěvků: 8
Problém s kompilací cxacru
« Odpověď #4 kdy: 28 Března 2007, 21:43:49 »
Tak už jsem to zredukoval pouze na tyto tři:
Kód: [Vybrat]
cxacru-fw.c:1: error: stray ‘\357’ in program
cxacru-fw.c:1: error: stray ‘\273’ in program
cxacru-fw.c:1: error: stray ‘\277’ in program
Nevíte jak odstranit tyto chyby? Zkoušel jsem googlit, ale nikde nic.

carpathian

  • Aktivní člen
  • *
  • Příspěvků: 123
Problém s kompilací cxacru
« Odpověď #5 kdy: 29 Března 2007, 12:53:01 »
Jak vypada ten soubor cxacru-fw.c? Staci prvnich par radku.
Zda se, ze hned na prvnim je nejaky bordel.

Iškuda

  • Návštěvník
  • Příspěvků: 8
Problém s kompilací cxacru
« Odpověď #6 kdy: 29 Března 2007, 14:35:46 »
No, tak problém už jsem odstranil. :) A to doslova, na záčátku byl nějaký komentář tak jsem ho smazal a už to běhá.

Iškuda

  • Návštěvník
  • Příspěvků: 8
Problém s kompilací cxacru
« Odpověď #7 kdy: 29 Března 2007, 14:46:57 »
Hmm, mohl bych ještě jednu, snad už poslední otázečku:

Modem už běží, obě ledky svítí, ale když se chci připojit tak na výpisu z jádra vidím:

Kód: [Vybrat]
[17180394.032000] ATM dev 0: usbatm_extract_one_cell: OAM not supported (vpi 8, vci 48)!Má s tím někdo zkušenosti? Můj internetový provider je NEXTRA.

Skeletonix

  • Host
Problém s kompilací cxacru
« Odpověď #8 kdy: 29 Března 2007, 22:36:33 »
jo  ... podrobný návod najdeš na wiki !!!!

Iškuda

  • Návštěvník
  • Příspěvků: 8
Problém s kompilací cxacru
« Odpověď #9 kdy: 30 Března 2007, 22:31:52 »
Děkuji za odpověď, ale moc mi nepomohla. Modem jsem instaloval podle návodu a použil jsem i nastavení co je popsáno ve wiki. Podle mého soudu totiž NEXTRA nemá tu samou konfiguraci jako GTS Novera, i když byla odkoupena Noverou.

Skeletonix

  • Host
Problém s kompilací cxacru
« Odpověď #10 kdy: 31 Března 2007, 16:35:48 »
můžete sem dát výpis z /var/log/pppd

 

Provoz zaštiťuje spolek OpenAlt.