Fehler beim Kompilieren vom ZAPHFC Treiber

seeba

Neuer User
Mitglied seit
20 Mai 2006
Beiträge
49
Punkte für Reaktionen
0
Punkte
0
Sowohl unter Debian als auch unter Linux bekomm ich folgende Fehler beim Kompilieren des ZAPHFC Paktes:
Code:
make -C /usr/src/linux-2.6 SUBDIRS=/tmp/bristuff-0.2.0-RC8r/zaphfc ZAP= modules
make[1]: Entering directory `/usr/src/kernel-headers-2.6.8-2-386'
  CC [M]  /tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.o
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:27:20: zaptel.h: Datei oder Verzeichnis nicht gefunden
In file included from /tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:28:
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.h:274: error: `ZT_CHUNKSIZE' undeclared here (not in a function)
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.h:275: error: `ZT_CHUNKSIZE' undeclared here (not in a function)
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.h:282: error: field `span' has incomplete type
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.h:283: error: field `chans' has incomplete type
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c: In Funktion »hfc_shutdownCard«:
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:130: Warnung: implicit declaration of function `zt_unregister'
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c: In Funktion »hfc_btrans«:
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:254: error: `ZT_CHUNKSIZE' undeclared (first use in this function)
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:254: error: (Each undeclared identifier is reported only once
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:254: error: for each function it appears in.)
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c: In Funktion »hfc_brec«:
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:319: error: `ZT_CHUNKSIZE' undeclared (first use in this function)
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:380: Warnung: implicit declaration of function `zt_ec_chunk'
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c: In Funktion »hfc_interrupt«:
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:719: error: `ZT_FLAG_RUNNING' undeclared (first use in this function)
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:724: Warnung: implicit declaration of function `zt_transmit'
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:758: Warnung: implicit declaration of function `zt_receive'
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c: In Funktion »zthfc_open«:
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:777: error: dereferencing pointer to incomplete type
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:784: Warnung: `MOD_INC_USE_COUNT' is deprecated (declared at include/linux/module.h:555)
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c: In Funktion »zthfc_close«:
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:792: error: dereferencing pointer to incomplete type
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:800: Warnung: `MOD_DEC_USE_COUNT' is deprecated (declared at include/linux/module.h:567)
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c: In Funktion »zthfc_startup«:
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:820: error: dereferencing pointer to incomplete type
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:827: error: dereferencing pointer to incomplete type
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:827: error: `ZT_FLAG_RUNNING' undeclared (first use in this function)
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:830: error: dereferencing pointer to incomplete type
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:830: error: `ZT_FLAG_HDLC' undeclared (first use in this function)
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:831: error: dereferencing pointer to incomplete type
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:831: error: `ZT_FLAG_BRIDCHAN' undeclared (first use in this function)
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:833: error: dereferencing pointer to incomplete type
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c: Auf höchster Ebene:
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:861: Warnung: `struct zt_lineconfig' declared inside parameter list
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:861: Warnung: its scope is only this definition or declaration, which is probably not what you want
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c: In Funktion »zthfc_spanconfig«:
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:862: error: dereferencing pointer to incomplete type
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:862: error: dereferencing pointer to incomplete type
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c: In Funktion »zthfc_initialize«:
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:870: error: invalid application of `sizeof' to an incomplete type
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:870: error: invalid application of `sizeof' to an incomplete type
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:870: error: invalid application of `sizeof' to an incomplete type
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:870: error: invalid application of `sizeof' to an incomplete type
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:870: error: invalid application of `sizeof' to an incomplete type
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:870: error: invalid application of `sizeof' to an incomplete type
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:899: error: `ZT_LAW_ALAW' undeclared (first use in this function)
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:900: error: `ZT_CONFIG_AMI' undeclared (first use in this function)
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:900: error: `ZT_CONFIG_CCS' undeclared (first use in this function)
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:906: error: invalid application of `sizeof' to an incomplete type
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:906: error: invalid application of `sizeof' to an incomplete type
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:906: error: invalid application of `sizeof' to an incomplete type
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:906: error: invalid application of `sizeof' to an incomplete type
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:906: error: invalid application of `sizeof' to an incomplete type
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:906: error: invalid application of `sizeof' to an incomplete type
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:909: error: `ZT_SIG_EM' undeclared (first use in this function)
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:909: error: `ZT_SIG_CLEAR' undeclared (first use in this function)
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:909: error: `ZT_SIG_FXSLS' undeclared (first use in this function)
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:909: error: `ZT_SIG_FXSGS' undeclared (first use in this function)
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:909: error: `ZT_SIG_FXSKS' undeclared (first use in this function)
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:909: error: `ZT_SIG_FXOLS' undeclared (first use in this function)
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:909: error: `ZT_SIG_FXOGS' undeclared (first use in this function)
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:909: error: `ZT_SIG_FXOKS' undeclared (first use in this function)
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:909: error: `ZT_SIG_CAS' undeclared (first use in this function)
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:909: error: `ZT_SIG_SF' undeclared (first use in this function)
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:913: Warnung: implicit declaration of function `zt_register'
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c: In Funktion »hfc_findCards«:
/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.c:1009: Warnung: Verarbeiten des Argumentes 2 von »request_irq« von inkompatiblem Zeigertyp
make[2]: *** [/tmp/bristuff-0.2.0-RC8r/zaphfc/zaphfc.o] Fehler 1
make[1]: *** [_module_/tmp/bristuff-0.2.0-RC8r/zaphfc] Fehler 2
make[1]: Leaving directory `/usr/src/kernel-headers-2.6.8-2-386'
make: *** [linux26] Fehler 2
 
Das Bristuff-Paket passt nicht zu deinem Asterisk 1.2.8
 
kombjuder schrieb:
Das Bristuff-Paket passt nicht zu deinem Asterisk 1.2.8
Bei Bristuff-0.3-pre1p bekomm ich allerdings auch die selben Erscheinungen. Oder sollte ich tatsächlich Asterisk 1.2.7 nutzen?
 
Kann ich 1.2.7.1 einfach drüberbügeln oder wie bekomm ich 1.2.8 wieder runter? Sind die Conf-Dateien gleich aufgebaut?
 
seeba schrieb:
Kann ich 1.2.7.1 einfach drüberbügeln oder wie bekomm ich 1.2.8 wieder runter? Sind die Conf-Dateien gleich aufgebaut?

Was brauchst du denn, Bristuff oder nur Zaptel?
Wenn Bristuff, dann mit install.sh installieren.
Wenn du nur Zaptel brauchst, dann die aktuelle Version von asterisk.org

Du kannst einfach drüberbügeln. 1.2.8 und 1.2.7 machen keine Probleme, bei 1.0 gibt es Unterschiede.


Bristuff-0.3-pre1p und 1.2.8 passen nicht zusammen. Bristuff patcht die Asterisk-Quellen.
 
kombjuder schrieb:
Was brauchst du denn, Bristuff oder nur Zaptel?
Wenn Bristuff, dann mit install.sh installieren.
Wenn du nur Zaptel brauchst, dann die aktuelle Version von asterisk.org

Du kannst einfach drüberbügeln. 1.2.8 und 1.2.7 machen keine Probleme, bei 1.0 gibt es Unterschiede.


Bristuff-0.3-pre1p und 1.2.8 passen nicht zusammen. Bristuff patcht die Asterisk-Quellen.
Privat brauche ich erstmal Bristuff. In der Firma dann wahrscheinlich nur Zaptel, da wir alle Telefone auf VoIP Telefone umstellen werden und den Anlagenanschluss als S2M ausführen lassen werden.
Ich hab's jetzt drübergebügelt und es geht. Vielen Dank. :)
 
Und das nächste Problem.
Bin jetzt testweise wieder zu Fedora gewechselt (weil auf Firmenservern schon eingesetzt):
Code:
[root@asterisk zaphfc]# make loadNT
make -C /usr/src/linux-2.6 SUBDIRS=/tmp/bristuff-0.3.0-PRE-1p/zaphfc ZAP=-I/tmp/bristuff-0.3.0-PRE-1p/zaptel modules
make[1]: Entering directory `/usr/src/kernels/2.6.16-1.2122_FC5-i686'
  Building modules, stage 2.
  MODPOST
*** Warning: "zt_transmit" [/tmp/bristuff-0.3.0-PRE-1p/zaphfc/zaphfc.ko] undefined!
*** Warning: "zt_receive" [/tmp/bristuff-0.3.0-PRE-1p/zaphfc/zaphfc.ko] undefined!
*** Warning: "zt_register" [/tmp/bristuff-0.3.0-PRE-1p/zaphfc/zaphfc.ko] undefined!
*** Warning: "zt_unregister" [/tmp/bristuff-0.3.0-PRE-1p/zaphfc/zaphfc.ko] undefined!
*** Warning: "zt_ec_chunk" [/tmp/bristuff-0.3.0-PRE-1p/zaphfc/zaphfc.ko] undefined!
make[1]: Leaving directory `/usr/src/kernels/2.6.16-1.2122_FC5-i686'
modprobe zaptel
insmod ./zaphfc.ko modes=1
insmod: error inserting './zaphfc.ko': -1 File exists
make: *** [loadlinux26NT] Fehler 1
[root@asterisk zaphfc]# modprobe zaphfc
FATAL: Module zaphfc not found.
[root@asterisk zaphfc]#
Irgendwie krieg ich das blöde Modul nicht ins System.
 
Kostenlos!

Statistik des Forums

Themen
248,876
Beiträge
2,303,728
Mitglieder
378,545
Neuestes Mitglied
Patruc