Re: ISDN Fritz!X pro SuSE 7.2 pořád nefunguje (oprava - čtěte toto)

SuSE.Linux na seznam.cz SuSE.Linux na seznam.cz
Středa Březen 6 17:02:43 CET 2002


--- pardon, Outlook nepřipojil ten soubor bez přípony, takže znovu ---

Tak jsem postupoval takto. "fxusb-suse7.2-03.09.10.tar.gz" jsem rozbalil
klasicky do adresáře "fritz/", pak jsem v "fritz/src.drv/main.c" přepsal za
pomocí Midnight Commanderu a klávesy F4 tu hodnotu 0x2000 na 0x2800 a
uložil. Pak jsem v adresáři dal "make all 2>&1 | tee log" a zde v příloze
přikládám ten "log" soubor, jsem z toho jelen. Poradí mi prosím někdo zase
jak dál ?

PS: Co to znamená to "2>&1" tomu nerozumím a pokud to vynechám, nezapíše se
do logu skoro nic ?

Děkuji Petr Novák



> On St, 2002-03-06 at 08:26, Karel Dudasek wrote:
> > On Wed, 6 Mar 2002 SuSE.Linux na seznam.cz wrote:
> > > Ahoj,
> > > tak jsem si naschvál přinesl SuSE 7.2, zformátoval HDD a nainstaloval
> > > standardní verzi s kacelářským balíkem.
> > > Řídil jsem se podle http://ivop.regionet.cz/www/howto/fritz/ a zkoušel
jsem
> > > i vlastní experimenty, ale pořád nic :'-(((
> > > Do přílohy dávám hlášení, které umím zachytit, ale nevím, zda se v
nich
> > > neděje něco nekalého. Koukně te se prosím někdo na ně a poraďte mi, co
mám
> > > opravi, aby mi to už konečně fungovalo.
> > Ve var_log_messages.txt mate vypsano, ze USB sice naslo zarizeni,
> > ale zadny ovladac nezna tuto kombinaci vendor/product 0x57c/0x2800.
> > Uz to tady v konferenci bylo probirano - cestou upravy zdrojovych textu
> > tech ovladacu.
> > Ted se koukam na ten odkaz, ktery mate uveden v dotazu - spustil jste
ten
> > skript, ktery je az na druhe strane ?
> > Na jeho zacatku je totiz ta uprava zdrojovych textu.
> > Asi by to chtelo popsat trochu presneji, co jste jiz udelal.
> >
> >                              Karel Dudasek
>
> Tady bude trochu problem. Ja zprovoznovani zacal tim, ze jsem
> si nainstaloval SuSE 7.2 (7.3 jsem v tu chvili nemel u sebe)
> a rozjel ho na nem. Ovsem to bylo VYRAZNE JINE, nez na RedHatu !!!!
>
> Jde o to, ze v tom baliku, takto fxusb-suse7.2-...
> jsou jiz prelozene binarky a on sam by je mel umet spravne
> nainstalovat. Ale ta binarka fxusb.o neni pro tohohle fritze!!!
> Je potreba ve zdrojacich zmenit jeho identifikaci x 0x2000
> na 0x2800 (zaplat panbuh, ze to chodi).
>
> No a to mi prave na suse dalo docela zabrat, ten skript akce.sh
> rozhodne NEZAFUNGUJE. Na SuSE je trosku jinak delana prace
> se zdrojaky kernelu a s modversions. Uz si nepamatuji
> postup natolik detailne, abych se ho sem odvazil psat. Ale
> bylo to NEJAK takhle:
>
> a) rozbalit ten fxusb-suse7.2-...
> b) smazat (pro jistotu) ten fxusb.o
> c) v src.drv/main.c prepsat 0x2000 na 0x2800 (u #define PRODUCT_ID):
>    perl -pi -e 's/0x2000/0x2800/ if /^#define\s+PRODUCT_ID\s+/'
>    src.drv/main.c
> d) snazit se tak dlouho, az v projde "make"
> e) zkopirovat ten novy fxusb.o o patro vys (na misto toho smazaneho)
>    a spustit install (viz instrukce v install_passive.en)
>
> no a ten bod d) vyzaduje trochu prace, protoze je potreba
> 1. nachystat si kernel pro kompilaci - to bylo kopirovani
>    nejakeho souboru z /boot nekam jinam, ale detailne a spravne
>    to ten make napise !!! (resp. ten nevymeneny soubor)
> 2. mne se prekladalo i neco v src.sys a tam bylo potreba
>    sahnout tusim i do Makefile, ale to si opravdu uz nepamatuju
>    (a to SuSE jsem mel tehdy nainstalovano jen docasne, uz ho nemam)
>
> Proste ctete DETAILNE vse, co vam prikaz make bude vypisovat
> a zapojte vlastni invenci :)
> Ja pouzivam "make 2>&1 | tee log".
>
> ivo
------------- další část ---------------
(cd src.sys; make clean)
make[1]: Entering directory `/home/fritz/src.sys'
rm -f *.o *.C
make[1]: Leaving directory `/home/fritz/src.sys'
(cd src.sys; make)
make[1]: Entering directory `/home/fritz/src.sys'
sed -f patches kcapi.c > kcapi.C
cc -DEXPORT_SYMTAB -DMODULE -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes  -pipe -O2 -fomit-frame-pointer -fno-strict-aliasing -march=i586 -xc   -c -o kcapi.o kcapi.C
In file included from kcapi.C:116:
/usr/src/linux/include/linux/module.h:21: linux/modversions.h: No such file or directory
In file included from /usr/src/linux/include/linux/module.h:261,
                 from kcapi.C:116:
/usr/include/linux/version.h:2: #error "======================================================="
/usr/include/linux/version.h:3: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5: #error ""
/usr/include/linux/version.h:6: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10: #error "included via other system header files - user space"
/usr/include/linux/version.h:11: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13: #error ""
/usr/include/linux/version.h:14: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15: #error ""
/usr/include/linux/version.h:16: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17: #error ""
/usr/include/linux/version.h:18: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19: #error "   /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20: #error "   the matching kernel source directory"
/usr/include/linux/version.h:21: #error ""
/usr/include/linux/version.h:22: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23: #error "   /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24: #error ""
/usr/include/linux/version.h:25: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26: #error "   compiler option to use the correct include files:"
/usr/include/linux/version.h:27: #error ""
/usr/include/linux/version.h:28: #error "   -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29: #error ""
/usr/include/linux/version.h:30: #error "   instead of"
/usr/include/linux/version.h:31: #error ""
/usr/include/linux/version.h:32: #error "   -I/usr/include/linux"
/usr/include/linux/version.h:33: #error ""
/usr/include/linux/version.h:34: #error "   Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35: #error "======================================================="
In file included from /usr/src/linux/include/linux/udf_fs_sb.h:22,
                 from /usr/src/linux/include/linux/fs.h:690,
                 from /usr/src/linux/include/linux/capability.h:17,
                 from /usr/src/linux/include/linux/binfmts.h:5,
                 from /usr/src/linux/include/linux/sched.h:9,
                 from /usr/src/linux/include/linux/mm.h:4,
                 from kcapi.C:118:
/usr/include/linux/version.h:2: #error "======================================================="
/usr/include/linux/version.h:3: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5: #error ""
/usr/include/linux/version.h:6: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10: #error "included via other system header files - user space"
/usr/include/linux/version.h:11: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13: #error ""
/usr/include/linux/version.h:14: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15: #error ""
/usr/include/linux/version.h:16: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17: #error ""
/usr/include/linux/version.h:18: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19: #error "   /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20: #error "   the matching kernel source directory"
/usr/include/linux/version.h:21: #error ""
/usr/include/linux/version.h:22: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23: #error "   /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24: #error ""
/usr/include/linux/version.h:25: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26: #error "   compiler option to use the correct include files:"
/usr/include/linux/version.h:27: #error ""
/usr/include/linux/version.h:28: #error "   -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29: #error ""
/usr/include/linux/version.h:30: #error "   instead of"
/usr/include/linux/version.h:31: #error ""
/usr/include/linux/version.h:32: #error "   -I/usr/include/linux"
/usr/include/linux/version.h:33: #error ""
/usr/include/linux/version.h:34: #error "   Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35: #error "======================================================="
In file included from /usr/src/linux/include/linux/fs.h:690,
                 from /usr/src/linux/include/linux/capability.h:17,
                 from /usr/src/linux/include/linux/binfmts.h:5,
                 from /usr/src/linux/include/linux/sched.h:9,
                 from /usr/src/linux/include/linux/mm.h:4,
                 from kcapi.C:118:
/usr/src/linux/include/linux/udf_fs_sb.h:126: parse error
In file included from _compat.h:9,
                 from kcapi.C:129:
/usr/include/linux/version.h:2: #error "======================================================="
/usr/include/linux/version.h:3: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5: #error ""
/usr/include/linux/version.h:6: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10: #error "included via other system header files - user space"
/usr/include/linux/version.h:11: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13: #error ""
/usr/include/linux/version.h:14: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15: #error ""
/usr/include/linux/version.h:16: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17: #error ""
/usr/include/linux/version.h:18: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19: #error "   /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20: #error "   the matching kernel source directory"
/usr/include/linux/version.h:21: #error ""
/usr/include/linux/version.h:22: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23: #error "   /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24: #error ""
/usr/include/linux/version.h:25: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26: #error "   compiler option to use the correct include files:"
/usr/include/linux/version.h:27: #error ""
/usr/include/linux/version.h:28: #error "   -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29: #error ""
/usr/include/linux/version.h:30: #error "   instead of"
/usr/include/linux/version.h:31: #error ""
/usr/include/linux/version.h:32: #error "   -I/usr/include/linux"
/usr/include/linux/version.h:33: #error ""
/usr/include/linux/version.h:34: #error "   Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35: #error "======================================================="
In file included from kcapi.C:129:
_compat.h:44: warning: `module_init' redefined
/usr/src/linux/include/linux/init.h:134: warning: this is the location of the previous definition
_compat.h:45: warning: `module_exit' redefined
/usr/src/linux/include/linux/init.h:138: warning: this is the location of the previous definition
_compat.h:128: warning: `set_current_state' redefined
/usr/src/linux/include/linux/sched.h:108: warning: this is the location of the previous definition
_compat.h:156: warning: `DECLARE_WAITQUEUE' redefined
/usr/src/linux/include/linux/wait.h:140: warning: this is the location of the previous definition
_compat.h:157: warning: `DECLARE_WAIT_QUEUE_HEAD' redefined
/usr/src/linux/include/linux/wait.h:148: warning: this is the location of the previous definition
In file included from kcapi.C:116:
/usr/src/linux/include/linux/module.h:263: parse error before `UTS_RELEASE'
In file included from kcapi.C:129:
_compat.h:152: conflicting types for `wait_queue_t'
/usr/src/linux/include/linux/wait.h:36: previous declaration of `wait_queue_t'
_compat.h:153: conflicting types for `wait_queue_head_t'
/usr/src/linux/include/linux/wait.h:80: previous declaration of `wait_queue_head_t'
In file included from kcapi.C:129:
_compat.h:172: warning: static declaration for `pci_enable_device' follows non-static
_compat.h:181: conflicting types for `pci_find_subsys'
/usr/src/linux/include/linux/pci.h:516: previous declaration of `pci_find_subsys'
kcapi.C: In function `notify_push':
kcapi.C:642: `tq_scheduler' undeclared (first use in this function)
kcapi.C:642: (Each undeclared identifier is reported only once
kcapi.C:642: for each function it appears in.)
kcapi.C: In function `old_capi_manufacturer':
kcapi.C:1520: structure has no member named `timeout'
kcapi.C:1545: structure has no member named `timeout'
kcapi.C:1596: structure has no member named `timeout'
make[1]: *** [kcapi.o] Error 1
make[1]: Leaving directory `/home/fritz/src.sys'
make: *** [sys] Error 2


Další informace o konferenci Linux