Getting error during asterisk installation

Dear All,
when i am trying to install asterisk 1.6.x with dahdi trunk and dahdi tools, i am getting following error after executing command make asterisk file:

chan_dahdi.c: In function âss7_reset_linksetâ:
chan_dahdi.c:9548: warning: passing argument 2 of âisup_grsâ makes pointer from integer without a cast
chan_dahdi.c:9548: error: too many arguments to function âisup_grsâ
chan_dahdi.c: In function âss7_linksetâ:
chan_dahdi.c:9901: warning: passing argument 2 of âisup_graâ makes pointer from integer without a cast
chan_dahdi.c:9901: warning: passing argument 4 of âisup_graâ makes pointer from integer without a cast
chan_dahdi.c:10105: warning: passing argument 2 of âisup_cgbaâ makes pointer from integer without a cast
chan_dahdi.c:10105: warning: passing argument 4 of âisup_cgbaâ makes pointer from integer without a cast
chan_dahdi.c:10105: error: too many arguments to function âisup_cgbaâ
chan_dahdi.c:10115: warning: passing argument 2 of âisup_cguaâ makes pointer from integer without a cast
chan_dahdi.c:10115: warning: passing argument 4 of âisup_cguaâ makes pointer from integer without a cast
chan_dahdi.c:10115: error: too many arguments to function âisup_cguaâ
chan_dahdi.c:10141: warning: passing argument 2 of âisup_blaâ makes pointer from integer without a cast
chan_dahdi.c:10141: error: too many arguments to function âisup_blaâ
chan_dahdi.c:10166: warning: passing argument 2 of âisup_ubaâ makes pointer from integer without a cast
chan_dahdi.c:10166: error: too many arguments to function âisup_ubaâ
chan_dahdi.c: In function âlinkset_addsigchanâ:
chan_dahdi.c:13323: warning: passing argument 3 of âss7_add_linkâ makes pointer from integer without a cast
chan_dahdi.c:13323: error: too few arguments to function âss7_add_linkâ
chan_dahdi.c:13325: warning: passing argument 3 of âss7_add_linkâ makes pointer from integer without a cast
chan_dahdi.c:13325: error: too few arguments to function âss7_add_linkâ
chan_dahdi.c:13349: warning: implicit declaration of function âss7_set_adjpcâ
chan_dahdi.c: In function âhandle_ss7_block_cicâ:
chan_dahdi.c:13469: warning: passing argument 2 of âisup_bloâ makes pointer from integer without a cast
chan_dahdi.c:13469: error: too many arguments to function âisup_bloâ
chan_dahdi.c: In function âhandle_ss7_block_linksetâ:
chan_dahdi.c:13523: warning: passing argument 2 of âisup_bloâ makes pointer from integer without a cast
chan_dahdi.c:13523: error: too many arguments to function âisup_bloâ
chan_dahdi.c: In function âhandle_ss7_unblock_cicâ:
chan_dahdi.c:13575: warning: passing argument 2 of âisup_ublâ makes pointer from integer without a cast
chan_dahdi.c:13575: error: too many arguments to function âisup_ublâ
chan_dahdi.c: In function âhandle_ss7_unblock_linksetâ:
chan_dahdi.c:13623: warning: passing argument 2 of âisup_ublâ makes pointer from integer without a cast
chan_dahdi.c:13623: error: too many arguments to function âisup_ublâ
make[1]: *** [chan_dahdi.o] Error 1
make: *** [channels] Error 2

please help

Is this when you try to install DAHDI, or is it the Asterisk install ???

DAHDI needs to be installed first.

Dennis

this error giving when i tried to install asterisk. I already installed dahdi & libpri