[Asterisk-Users] Re: Cant compile asterisk #error "You need newer libpri"

Tony Mountifield tony at softins.clara.co.uk
Mon Jan 30 11:09:22 MST 2006


In article <1465.10.73.73.103.1138639371.squirrel at mail.michiganbroadband.com>,
Steve Gladden <Asterisk at MichiganBroadband.com> wrote:
> 
> I am starting over and now trying to compile/install /trunk
> zaptel
> libpri
> asterisk
> 
> following the instructions to grab the source trees:
> 
> # svn checkout http://svn.digium.com/svn/asterisk/trunk asterisk
> # svn checkout http://svn.digium.com/svn/zaptel/trunk zaptel
> # svn checkout http://svn.digium.com/svn/libpri/trunk libpri

But from the error descriptions below, I bet you didn't do the exact
commands above.

My guess is that after the first command, you did up-arrow, backspaced
over "asterisk" and typed "zaptel", BUT forgot to change the other
"asterisk" between svn/ and /trunk.

So you ended up with three copies of asterisk, instead of asterisk,
zaptel and libpri..

Also, make sure you do "make install" in zaptel and libpri before
you try to compile asterisk.

Cheers
Tony

> I cannot get zaptel or libpri to compile successfully
> 
> I get this error with libpri:
> chan_zap.c:66:2: #error "You need newer libpri"
> chan_zap.c: In function `zt_call':
> chan_zap.c:2134: warning: passing arg 2 of `pri_sr_set_useruser' discards
> qualifiers from pointer target type
> chan_zap.c: In function `zap_send_keypad_facility_exec':
> chan_zap.c:2258: warning: implicit declaration of function
> `pri_keypad_facility'
> chan_zap.c: In function `zt_hangup':
> chan_zap.c:2528: warning: passing arg 2 of `pri_call_set_useruser'
> discards qualifiers from pointer target type
> chan_zap.c:2537: warning: passing arg 2 of `pri_call_set_useruser'
> discards qualifiers from pointer target type
> make[1]: *** [chan_zap.o] Error 1
> make[1]: Leaving directory `/usr/src/libpri/channels'
> make: *** [subdirs] Error 1
> 
> 
> 
> 
> 
> 
> 
> And I get this with zaptel:
> chan_zap.c:66:2: #error "You need newer libpri"
> chan_zap.c: In function `zt_call':
> chan_zap.c:2134: warning: passing arg 2 of `pri_sr_set_useruser' discards
> qualifiers from pointer target type
> chan_zap.c: In function `zap_send_keypad_facility_exec':
> chan_zap.c:2258: warning: implicit declaration of function
> `pri_keypad_facility'
> chan_zap.c: In function `zt_hangup':
> chan_zap.c:2528: warning: passing arg 2 of `pri_call_set_useruser'
> discards qualifiers from pointer target type
> chan_zap.c:2537: warning: passing arg 2 of `pri_call_set_useruser'
> discards qualifiers from pointer target type
> make[1]: *** [chan_zap.o] Error 1
> make[1]: Leaving directory `/usr/src/zaptel/channels'
> make: *** [subdirs] Error 1
> Vontage:/usr/src/zaptel#
> 
> I have been careful to get rid of all existing asterisk stuff
> executables modules and libraries etc. off thesystem before
> trying to compile this.
> 
> The release compiles just fine but I st
> ill get no audio with sip-sip calls if I compile the release version.
> 
> Thanks
> 
> 
> Steve
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 


-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-users mailing list