Asterisk 1.2RC2 Fails to compile

Downloaded asterisk 1.2rc2. Did a make and got the following…

arations -DZAPATA_PRI -DIAX_TRUNKING -DCRYPTO -fPIC -o chan_zap.o chan_zap.c
chan_zap.c:60:20: libpri.h: No such file or directory
chan_zap.c:62:2: #error "You need newer libpri"
chan_zap.c:447: error: PRI_CPE' undeclared here (not in a function) chan_zap.c:460: error:PRI_SWITCH_NI2’ undeclared here (not in a function)
chan_zap.c:461: error: PRI_NSF_NONE' undeclared here (not in a function) chan_zap.c:462: error:PRI_NATIONAL_ISDN’ undeclared here (not in a function)
chan_zap.c:676: error: syntax error before "q931_call"
chan_zap.c:676: warning: no semicolon at end of struct or union

What’s up with this? I have another system with FC3 that isn’t reporting this problem.

chan_zap.c:62:2: #error “You need newer libpri”

you have old libpri on there
update it

Duh. I’d like to know how since it just has a standard Redhat FC3. I don’t see any rpm from redhat named libpri so I’m kinda stumped on where one gets it.

This, ‘rpm -qla | grep libpri’ also yields nothing on the system where it IS working… so where does this magic library live?

like all the other asterisk stuff … on the CVS server. be safe, download and compile everything (zaptel, libpri, asterisk asterisk-addons asterisk-sounds) and remember to clean out your modules directories beforehand.