problem beim sapp patchen für spandsp

nprzybilla

Neuer User
Mitglied seit
20 Mai 2006
Beiträge
59
Punkte für Reaktionen
0
Punkte
0
Hi,

ich wollte mir auf Debian spandsp sinatlliere. nun wollte ich im Asterisk Source das Patchfile starten.

Dabei bekomme ich folgende fehlermeldung:

Apply anyway? [n] y
Hunk #1 FAILED at 52.
Hunk #2 FAILED at 104.
2 out of 2 hunks FAILED -- saving rejects to file Makefile.rej


Das passende Logifle dazu:

asterisk:/usr/src/asterisk-1.2.9.1/apps# vi Makefile.rej
***************
*** 52,61 ****

ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/osp/osp.h $(CROSS_COMPILE_TARGET)/usr/include/osp/osp.h),)
APPS+=app_osplookup.so
endif

ifeq ($(findstring BSD,${OSARCH}),BSD)
CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -L$(CROSS_COMPILE_TARGET)/usr/local/lib
endif

CURLLIBS=$(shell $(CROSS_COMPILE_BIN)curl-config --libs)
--- 52,65 ----

ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/osp/osp.h $(CROSS_COMPILE_TARGET)/usr/include/osp/osp.h),)
APPS+=app_osplookup.so
endif

+ ifneq ($(wildcard $(CROSS_COMPILE_TARGET)/usr/local/include/spandsp.h $(CROSS_COMPILE_TARGET)/usr/include/spandsp.h),)
+ APPS+=app_rxfax.so app_txfax.so
+ endif
+
ifeq ($(findstring BSD,${OSARCH}),BSD)
CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -L$(CROSS_COMPILE_TARGET)/usr/local/lib
endif

CURLLIBS=$(shell $(CROSS_COMPILE_BIN)curl-config --libs)
***************
*** 100,109 ****
rm -f $(DESTDIR)$(MODULES_DIR)/app_qcall.so

app_curl.so: app_curl.o
$(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(CURLLIBS)

app_sql_postgres.o: app_sql_postgres.c
$(CC) -pipe -I/usr/local/pgsql/include $(CFLAGS) -c -o app_sql_postgres.o app_sql_postgres.c

app_sql_postgres.so: app_sql_postgres.o
$(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -L/usr/local/pgsql/lib -lpq
--- 104,119 ----
rm -f $(DESTDIR)$(MODULES_DIR)/app_qcall.so

app_curl.so: app_curl.o
$(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} $(CURLLIBS)

+ app_rxfax.so : app_rxfax.o
+ $(CC) $(SOLINK) -o $@ $< -lspandsp -ltiff
+
+ app_txfax.so : app_txfax.o
+ $(CC) $(SOLINK) -o $@ $< -lspandsp -ltiff
+
app_sql_postgres.o: app_sql_postgres.c
$(CC) -pipe -I/usr/local/pgsql/include $(CFLAGS) -c -o app_sql_postgres.o app_sql_postgres.c

app_sql_postgres.so: app_sql_postgres.o
$(CC) $(SOLINK) -o $@ ${CYGSOLINK} $< ${CYGSOLIB} -L/usr/local/pgsql/lib -lpq


Ich habe zwar gelesen, daß ich das wohl auch Manuel einbinden kann, würde aber trotzdem gerne verstehen, warum das passiert.

Beste Grüße und vielen Dank

Niels
 
Mit welcher spandsp-Version hast du es denn probiert? Bei mir hat es vorgestern mit Asterisk 1.2.9.1 und spandsp 0.0.2pre26 noch problemlos funktioniert.
 
Hi,

habe die beiden probiert:

spandsp-0.0.3pre21 & spandsp-0.0.2pre26.

mit der 0.0.2 funktioniert es zumindestens wenn ich es manuell hinzufüge. Also ich kann compilieen und Asterisk läuft auch...

Jetzt versuche ich mich gerade daran, daß ich mit Asterfax auch rausfaxen kann..

Viele Grüße

Niels
 
Kostenlos!

Statistik des Forums

Themen
248,849
Beiträge
2,302,795
Mitglieder
378,498
Neuestes Mitglied
Gerdemha