Error in Libpri installation

would anyone please help
I am trying to install " libpri " on CENTOS and I get this error message

[root@go libpri-1.6.0]# make
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT pridump.o -MF .pridump.o.d -MP -c -o pridump.o pridump.c
pridump.c:45:24: error: dahdi/user.h: No such file or directory
pridump.c: In function ‘pri_open’:
pridump.c:53: error: storage size of ‘p’ isn’t known
pridump.c:60: error: ‘DAHDI_GET_PARAMS’ undeclared (first use in this function)
pridump.c:60: error: (Each undeclared identifier is reported only once
pridump.c:60: error: for each function it appears in.)
pridump.c:64: error: ‘DAHDI_SIG_HDLCRAW’ undeclared (first use in this function)
pridump.c:64: error: ‘DAHDI_SIG_HDLCFCS’ undeclared (first use in this function)
cc1: warnings being treated as errors
pridump.c:53: warning: unused variable ‘p’
pridump.c: In function ‘pri_bridge’:
pridump.c:97: error: ‘DAHDI_GETEVENT’ undeclared (first use in this function)
make: *** [pridump.o] Error 1

Install DAHDI first before compiling libpri.

1 Like