rxfax compiliert nicht !

LinuxQ

Neuer User
Mitglied seit
23 Aug 2006
Beiträge
66
Punkte für Reaktionen
0
Punkte
0
Hi,

ich versuche Asterisk (1.0.11, da bristuff 0.2.0 RC8 für meine HTC-Karte diese Version runterlädt) zum faxen zu bewegen. libspandsp ist installiert, aber mit dem gepatchten Makefile der apps von Asterisk funktionert die Kompilierung der app_rxfax und app_txfax nicht :-(

Fehlermeldung:
app_rxfax.c: In function `phase_e_handler':
app_rxfax.c:99: error: structure has no member named `column_resolution'
app_rxfax.c:99: error: structure has no member named `row_resolution'
app_rxfax.c:110: error: structure has no member named `row_resolution'
app_rxfax.c:116: error: structure has no member named `row_resolution'
app_rxfax.c: In function `phase_d_handler':
app_rxfax.c:141: error: structure has no member named `columns'
app_rxfax.c:141: error: structure has no member named `rows'
app_rxfax.c:142: error: structure has no member named `column_resolution'
app_rxfax.c:142: error: structure has no member named `row_resolution'
app_rxfax.c: In function `rxfax_exec':
app_rxfax.c:274: warning: passing arg 1 of `fax_init' from incompatible pointer type
app_rxfax.c:274: error: too many arguments to function `fax_init'
app_rxfax.c:297: warning: passing arg 1 of `fax_rx' from incompatible pointer type
app_rxfax.c:300: warning: passing arg 1 of `fax_tx' from incompatible pointer type
app_rxfax.c:337: warning: passing arg 1 of `fax_release' from incompatible pointer type
app_rxfax.c: At top level:
app_rxfax.c:75: warning: `t30_flush' defined but not used
make[1]: *** [app_rxfax.o] Error 1
make[1]: Leaving directory `/usr/src/asterisk/asterisk-1.0.10/apps'
make: *** [subdirs] Error 1

Hat jemand einen Tip ?

Danke

LinuxQ
 
Wenn Du spandsp selbst kompiliert hast, dann muß es auch im Pfad der libs drin oder nach /usr/lib verlinkt sein. Das gleiche gilt für die header-Files mit /usr/include. Vielleicht liegt es daran.

Hoffe, das hilft.

Hawedieehre.
Fant
 
Hi,

libspandsp ist da. Aber das Datum kommt mir spanisch vor. Sollte das nicht das Datum der gerade kompilierten Lib haben?

maryland:/usr/lib # ls -la libsp*
-rw-r--r-- 1 root root 441538 Mar 19 2005 libspandsp.a
-rwxr-xr-x 1 root root 809 Mar 19 2005 libspandsp.la
lrwxrwxrwx 1 root root 19 Aug 16 10:22 libspandsp.so -> libspandsp.so.0.0.0
lrwxrwxrwx 1 root root 19 Aug 16 10:22 libspandsp.so.0 -> libspandsp.so.0.0.0
-rwxr-xr-x 1 root root 380088 Mar 19 2005 libspandsp.so.0.0.0

Genauso bei den includes:

maryland:/usr/include # ls -la spands*
-rw-r--r-- 1 root root 2536 Mar 19 2005 spandsp.h

spandsp:
total 398
drwxr-xr-x 2 root root 1392 Aug 16 10:22 .
drwxr-xr-x 89 root root 9064 Aug 23 14:24 ..
-rw-r--r-- 1 root root 9394 Mar 19 2005 adsi.h
-rw-r--r-- 1 root root 10335 Mar 19 2005 alaw_ulaw.h
-rw-r--r-- 1 root root 2090 Mar 19 2005 arctan2.h
-rw-r--r-- 1 root root 3235 Mar 19 2005 awgn.h
-rw-r--r-- 1 root root 4285 Mar 19 2005 bert.h
-rw-r--r-- 1 root root 2725 Mar 19 2005 biquad.h
-rw-r--r-- 1 root root 4140 Mar 19 2005 complex.h
-rw-r--r-- 1 root root 1926 Mar 19 2005 complex_filters.h
-rw-r--r-- 1 root root 3540 Mar 19 2005 dc_restore.h
-rw-r--r-- 1 root root 3751 Mar 19 2005 dds.h
-rw-r--r-- 1 root root 4167 Mar 19 2005 ec_disable_detector.h
-rw-r--r-- 1 root root 6370 Mar 19 2005 echo.h
-rw-r--r-- 1 root root 8406 Mar 19 2005 fir.h
-rw-r--r-- 1 root root 10826 Mar 19 2005 fsk.h
-rw-r--r-- 1 root root 14792 Mar 19 2005 g168models.h
-rw-r--r-- 1 root root 7106 Mar 19 2005 hdlc.h
-rw-r--r-- 1 root root 2980 Mar 19 2005 ima_adpcm.h
-rw-r--r-- 1 root root 20768 Mar 19 2005 mmx.h
-rw-r--r-- 1 root root 4096 Mar 19 2005 modem_echo.h
-rw-r--r-- 1 root root 3730 Mar 19 2005 oki_adpcm.h
-rw-r--r-- 1 root root 1319 Mar 19 2005 oss.h
-rw-r--r-- 1 root root 4722 Mar 19 2005 plc.h
-rw-r--r-- 1 root root 1658 Mar 19 2005 power_meter.h
-rw-r--r-- 1 root root 4721 Mar 19 2005 queue.h
-rw-r--r-- 1 root root 1953 Mar 19 2005 schedule.h
-rw-r--r-- 1 root root 6574 Mar 19 2005 sig_tone.h
-rw-r--r-- 1 root root 6168 Mar 19 2005 super_tone_rx.h
-rw-r--r-- 1 root root 3275 Mar 19 2005 super_tone_tx.h
-rw-r--r-- 1 root root 12828 Mar 19 2005 t30.h
-rw-r--r-- 1 root root 3923 Mar 19 2005 t30_fcf.h
-rw-r--r-- 1 root root 5378 Mar 19 2005 t31.h
-rw-r--r-- 1 root root 2037 Mar 19 2005 t35.h
-rw-r--r-- 1 root root 13630 Mar 19 2005 t4.h
-rw-r--r-- 1 root root 1263 Mar 19 2005 telephony.h
-rw-r--r-- 1 root root 2206 Mar 19 2005 time_scale.h
-rw-r--r-- 1 root root 1452 Mar 19 2005 timing.h
-rw-r--r-- 1 root root 5020 Mar 19 2005 tone_detect.h
-rw-r--r-- 1 root root 7318 Mar 19 2005 tone_generate.h
-rw-r--r-- 1 root root 15574 Mar 19 2005 v17rx.h
-rw-r--r-- 1 root root 8279 Mar 19 2005 v17tx.h
-rw-r--r-- 1 root root 10601 Mar 19 2005 v22bis.h
-rw-r--r-- 1 root root 6483 Mar 19 2005 v27ter_rx.h
-rw-r--r-- 1 root root 7251 Mar 19 2005 v27ter_tx.h
-rw-r--r-- 1 root root 12314 Mar 19 2005 v29rx.h
-rw-r--r-- 1 root root 7454 Mar 19 2005 v29tx.h
-rw-r--r-- 1 root root 5427 Mar 19 2005 v42.h
-rw-r--r-- 1 root root 4200 Mar 19 2005 v8.h
-rw-r--r-- 1 root root 2065 Mar 19 2005 vector.h
Gruß

Marcel
 
Wohin hast Du denn die neu kompilierte Lib installiert?

Hawedieehre.
Fant
 
OK, sie wurden in /usr/local/lib installiert (und /usr/local/include).

Jetzt habe ich sie einfach in /usr/lib, bzw. /usr/include kopiert. Gleicher Fehler. auch nach ldconfig!
Eigentlich steht die /usr/local auch in der /etc/ld.so.conf

Gruß

LinuxQ
 
Vielleicht hilft Dir das hier weiter. Ich habe meine app_rxfax.c, app_txfax.c und mein Makefile mal gezippt und eingestellt.

Aber vorsicht: ich nutze den bristuff-0.3.x, also den Testing-Zweig.

Hoffe, das hilft.

Hawedieehre.
Fant
 

Anhänge

Hi,

ich versuche bei Gelegenheit mal auf Asterisk 1.2.x und Bristuff 0.3 umzusteigen. Vielleicht hilft das.

Danke! Ich melde mich bei Erfolg!

Gruß

LinuxQ
 
So, Update auf 1.2.x und bristuff 0.3 ist gemacht! Auch jetzt das gleiche Problem. Auch mit Deinen Dateien :-(

Mist aber auch!

Gruß

Marcel
 
Unter http://www.asteriskguru.com/tutorials/spandsp.html gibt es ein sehr gutes Tutorial.

Nun hänge ich aber bei "The previously installed version of spandsp has been 0.0.3, but now you have installed version 0.0.2. The problem is that the installation of version 0.0.3 creates a symlink, which is not replaced by installation of version 0.0.2. So the symlink points to the library of version 0.0.3, which actually does not exist." fest. Und kann diesen Symlink nicht finden.
 
Zuletzt bearbeitet:
Ich verzweifle noch. Ich habe die spandsp neu selbst kompiliert, mir Asterisk 1.2.10 nochmal extra runtergeladen, gepatcht,....

- make clean -> ok
- make

-DZAPTEL_OPTIMIZATIONS -fomit-frame-pointer -Wno-missing-prototypes -Wno-missing-declarations -DZAPATA_PRI -DIAX_TRUNKING -DCRYPTO -fPIC -o chan_zap.o chan_zap.c
chan_zap.c: In function `zt_call':
chan_zap.c:2088: error: too few arguments to function `pri_sr_set_bearer'
chan_zap.c: In function `zt_hangup':
chan_zap.c:2486: error: too few arguments to function `pri_hangup'
chan_zap.c:2506: error: too few arguments to function `pri_hangup'
chan_zap.c: In function `zt_handle_event':
chan_zap.c:3636: error: too few arguments to function `pri_hangup'
chan_zap.c: In function `pri_dchannel':
chan_zap.c:8237: error: too few arguments to function `pri_hangup'
chan_zap.c:8395: error: too few arguments to function `pri_hangup'
chan_zap.c:8526: error: too few arguments to function `pri_hangup'
chan_zap.c:8561: error: too few arguments to function `pri_hangup'
chan_zap.c:8570: error: too few arguments to function `pri_hangup'
chan_zap.c:8578: error: too few arguments to function `pri_hangup'
chan_zap.c:8824: error: too few arguments to function `pri_hangup'
chan_zap.c:8892: error: too few arguments to function `pri_hangup'
chan_zap.c: In function `start_pri':
chan_zap.c:9104: error: too few arguments to function `pri_new'
chan_zap.c: In function `load_module':
chan_zap.c:10909: warning: passing arg 1 of `pri_set_error' from incompatible pointer type
chan_zap.c:10910: warning: passing arg 1 of `pri_set_message' from incompatible pointer type
make[1]: *** [chan_zap.o] Fehler 1
make[1]: Leaving directory `/tmp/asterisk-1.2.10/channels'
make: *** [subdirs] Fehler 1

Kotz! Woran kann das liegen? Habe es sowohl im Unterordner von bristuff, als auch in einem temporären Ordner parallel neu versucht!

Gruß

Marcel
 
Zuletzt bearbeitet:
Hi,

damit habe ich es auch schon versucht. Folgendes Ergebnis:

gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 -DZAPTEL_OPTIMIZATIONS -fomit-frame-pointer -fPIC -c -o app_rxfax.o app_rxfax.c
app_rxfax.c: In function `phase_e_handler':
app_rxfax.c:105: error: structure has no member named `column_resolution'
app_rxfax.c:105: error: structure has no member named `row_resolution'
app_rxfax.c:116: error: structure has no member named `row_resolution'
app_rxfax.c:122: error: structure has no member named `row_resolution'
app_rxfax.c: In function `phase_d_handler':
app_rxfax.c:147: error: structure has no member named `columns'
app_rxfax.c:147: error: structure has no member named `rows'
app_rxfax.c:148: error: structure has no member named `column_resolution'
app_rxfax.c:148: error: structure has no member named `row_resolution'
app_rxfax.c: In function `rxfax_exec':
app_rxfax.c:281: warning: passing arg 1 of `fax_init' from incompatible pointer type
app_rxfax.c:281: error: too many arguments to function `fax_init'
app_rxfax.c:304: warning: passing arg 1 of `fax_rx' from incompatible pointer type
app_rxfax.c:307: warning: passing arg 1 of `fax_tx' from incompatible pointer type
app_rxfax.c:344: warning: passing arg 1 of `fax_release' from incompatible pointer type
app_rxfax.c: At top level:
app_rxfax.c:81: warning: `t30_flush' defined but not used
make[1]: *** [app_rxfax.o] Fehler 1
make[1]: Leaving directory `/usr/src/bristuff-0.3.0-PRE-1s/asterisk-1.2.10/apps'
make: *** [subdirs] Fehler 1

Gruß Marcel :-(
 
@Marcel:
Hast du schon mal (ganz banal) apt-get install asterisk-app-fax versucht?
Ich hatte dein Problem zwar nicht, aber mit dem Debian-Paket läuft der Fax-Empfang bei mir sauberer, als er es mit dem selbst kompilerten rxfax tat.

HTH
Udo
 
@LinuxQ:

Laß uns mal das Makefile aus asterisk/apps sehen.

Hawedieehre.
Fant
 
Kostenlos!

Statistik des Forums

Themen
248,887
Beiträge
2,303,985
Mitglieder
378,568
Neuestes Mitglied
me2k