Hi List, IÂm having problems compiling chan_misdn:


asterisk:/usr/src/chan_misdn-beta-0.0.3-rc4 # make install
cc -ggdb -Wall -D_GNU_SOURCE -Wno-missing-prototypes -Wno-missing-declarations -fPIC -I/usr/src/asterisk/include -DAST_CONFIG_DIR=\"/etc/asterisk/\" -I/usr/src/mISDNuser/include -I/usr/src/linux-2.6/include -I/usr/src/mISDNuser/i4lnet/ -Wall -c -o chan_misdn.o chan_misdn.c
chan_misdn.c:30:34: asterisk/channel_pvt.h: No such file or directory
chan_misdn.c: In function `misdn_call':
chan_misdn.c:664: error: dereferencing pointer to incomplete type
chan_misdn.c: In function `misdn_answer':
chan_misdn.c:695: error: dereferencing pointer to incomplete type
chan_misdn.c: In function `misdn_digit':
chan_misdn.c:724: error: dereferencing pointer to incomplete type
chan_misdn.c: In function `misdn_fixup':
chan_misdn.c:767: error: dereferencing pointer to incomplete type
chan_misdn.c:768: error: dereferencing pointer to incomplete type
chan_misdn.c: In function `misdn_soption':
chan_misdn.c:782: error: dereferencing pointer to incomplete type
chan_misdn.c: In function `misdn_qoption':
chan_misdn.c:790: error: dereferencing pointer to incomplete type
chan_misdn.c: In function `misdn_transfer':
chan_misdn.c:798: error: dereferencing pointer to incomplete type
chan_misdn.c: In function `misdn_indication':
chan_misdn.c:808: error: dereferencing pointer to incomplete type
chan_misdn.c: In function `misdn_hangup':
chan_misdn.c:916: error: dereferencing pointer to incomplete type
chan_misdn.c:919: error: dereferencing pointer to incomplete type
chan_misdn.c:925: error: dereferencing pointer to incomplete type
chan_misdn.c: In function `misdn_read':
chan_misdn.c:1022: error: dereferencing pointer to incomplete type
chan_misdn.c: In function `misdn_write':
chan_misdn.c:1037: error: dereferencing pointer to incomplete type
chan_misdn.c: In function `misdn_new':
chan_misdn.c:1114: error: dereferencing pointer to incomplete type
chan_misdn.c:1115: error: dereferencing pointer to incomplete type
chan_misdn.c:1125: error: dereferencing pointer to incomplete type
chan_misdn.c:1128: error: dereferencing pointer to incomplete type
chan_misdn.c:1129: error: dereferencing pointer to incomplete type
chan_misdn.c:1130: error: dereferencing pointer to incomplete type
chan_misdn.c:1131: error: dereferencing pointer to incomplete type
chan_misdn.c:1132: error: dereferencing pointer to incomplete type
chan_misdn.c:1133: error: dereferencing pointer to incomplete type
chan_misdn.c:1137: error: dereferencing pointer to incomplete type
chan_misdn.c:1138: error: dereferencing pointer to incomplete type
chan_misdn.c:1139: error: dereferencing pointer to incomplete type
chan_misdn.c:1140: error: dereferencing pointer to incomplete type
chan_misdn.c:1143: error: dereferencing pointer to incomplete type
chan_misdn.c: In function `release_chan':
chan_misdn.c:1387: error: dereferencing pointer to incomplete type
chan_misdn.c: In function `load_module':
chan_misdn.c:2342: warning: passing arg 1 of `ast_channel_register' from incompatible pointer type
chan_misdn.c:2342: error: too many arguments to function `ast_channel_register'
chan_misdn.c: In function `unload_module':
chan_misdn.c:2381: warning: passing arg 1 of `ast_channel_unregister' from incompatible pointer type
make: *** [chan_misdn.o] Error 1


Does anybody have an idea where i got wrong? My Makefile:
asterisk:/usr/src/chan_misdn-beta-0.0.3-rc4 # cat Makefile
#debugscript
DEBUGSCRIPT=sed -e "s/{/{\nchan_misdn_log(\"SEGFAULT_DEBUG: %d\\\n\",__LINE__)/g"
UNDEBUGSCRIPT=sed -e "s/{/{\nchan_misdn_log(\"SEGFAULT_DEBUG: %d\\\n\",__LINE__)/g"


#
# The following line tells the makefile where to install the module,
# if necessary, please edit it
#
INSTALL_MODPATH=/usr/lib/asterisk/modules

#
# The following line tells the makefile where to find the asterisk src, so
# please edit this one if necessary
#
ASTERISKSRC=/usr/src/asterisk

#
# The following line tells the makefile where to put in the configfile
# of this module
#
AST_CONFIG_DIR=/etc/asterisk/

#
# The Includes are Set appropriatly
#
ASTERISKINC=$(ASTERISKSRC)/include


# # mISDNuser PATHS # MISDNUSER=/usr/src/mISDNuser MISDNUSERINC=$(MISDNUSER)/include MISDNUSERLIB=$(MISDNUSER)/lib

#
# mISDNuser Version
#
# If you dont use the Jolly mISDNuser version above 2.7 then comment this
#
#CFLAGS+=-DMISDNUSER_JOLLY


# # ASTERISK Version # If you are using a asterisk version above from stable (v1-0) # then comment the following line out (good luck) # #CFLAGS+=-DASTERISK_STABLE


LINUXROOT=/usr/src/linux-2.6


# # Linux Includes (must be patched with mISDN!) # LINUXINC=$(LINUXROOT)/include

CFLAGS+=-ggdb -Wall -D_GNU_SOURCE
CFLAGS+=-Wno-missing-prototypes -Wno-missing-declarations

all: chan_misdn.so

CFLAGS+=-fPIC -I$(ASTERISKINC) -DAST_CONFIG_DIR=\"$(AST_CONFIG_DIR)\" -I$(MISDNUSERINC) -I$(LINUXINC) -I$(MISDNUSER)/i4lnet/ -Wall
ADDOBJS+=$(MISDNUSER)/i4lnet/libisdnnet.a $(MISDNUSER)/lib/libmISDN.a


chan_misdn.so: chan_misdn.o te_lib.o $(ADDOBJS)
$(CC) -shared -Xlinker -x -o $@ te_lib.o chan_misdn.o $(ADDOBJS)

testphone: testphone.c
$(CC) -I$(MISDNUSERINC) -I$(MISDNUSER)/i4lnet/ -I$(LINUXINC) testphone.c $(MISDNUSERLIB)/libmISDN.a -o testphone


install: chan_misdn.so
install -m 644 chan_misdn.so $(INSTALL_MODPATH)/
if [ ! -f $(AST_CONFIG_DIR)/misdn.conf ] ; then cp misdn.conf $(AST_CONFIG_DIR)/; fi
@echo
@echo INSTALLATION SUCCEEDED


#tmp:
# ./sed_make_ies MSGS.DATA > ies_data.c
# ./sed_make_msgs MSGS.DATA > msgs_data.c
debug:
$(DEBUGSCRIPT) te_lib.c
$(DEBUGSCRIPT) chan_misdn.c

undebug:
$(UNDEBUGSCRIPT) te_lib.c
$(UNDEBUGSCRIPT) chan_misdn.c


te_lib.o: te_lib.c te_lib.h isdn_msg.c isdn_msg_parser.c
$(CC) -I$(MISDNUSERINC) -I$(MISDNUSER)/i4lnet/ -I$(LINUXINC) $(CFLAGS) -ggdb -c te_lib.c
te_test.o: te_test.c
$(CC) -I$(MISDNUSERINC) -I$(MISDNUSER)/i4lnet/ -I$(LINUXINC) $(CFLAGS)-ggdb -c te_test.c


te_test: te_lib.o te_test.o
$(CC) -I$(MISDNUSERINC) -I$(MISDNUSER)/i4lnet/ -I$(LINUXINC) $(CFLAGS) te_lib.o te_test.o $(MISDNUSERLIB)/libmISDN.a $(MISDNUSER)/i4lnet/libisdnnet.a -lpthread -ggdb -o te_test
#$(MISDNUSERLIB)/libmISDN.a


clean:
rm -rf *.o *.so *~ te_test core.*

getmisdn:
cvs -d :pserver:guest:[EMAIL PROTECTED]:/i4ldev login
cvs -d :pserver:guest:[EMAIL PROTECTED]:/i4ldev co mISDN
cvs -d :pserver:guest:[EMAIL PROTECTED]:/i4ldev co mISDNuser

misdn:
make -C $(LINUXROOT) SUBDIRS=mISDN/drivers/isdn/hardware/mISDN modules modules_install
make -C mISDNuser


....should be okay, shouldnÂt it?

Maybe one of you can give me some advice, i would be very thankfull

Greetings
Klaus

begin:vcard
fn:Klaus Peras
n:Peras;Klaus
org:HOB;Netzwerk Support
adr;quoted-printable:;;Schwaderm=C3=BChlstrasse 3;Cadolzburg;Bayern;90556;Germany
email;internet:[EMAIL PROTECTED]
tel;work:09103 / 715 - 329
url:http://www.hob.de
version:2.1
end:vcard

_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to