# Getting errors while installing LibPri1.4.14

**URL:** <https://community.asterisk.org/t/getting-errors-while-installing-libpri1-4-14/44561>\
**Category:** Asterisk Support\
**Created:** [November 22, 2013, 8:46am UTC](https://community.asterisk.org/t/getting-errors-while-installing-libpri1-4-14/44561 "2013-11-22T08:46:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![soni\_soni](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@soni\_soni](https://community.asterisk.org/u/soni_soni)\
**Post date:** [November 22, 2013, 8:46am UTC](https://community.asterisk.org/t/getting-errors-while-installing-libpri1-4-14/44561/1 "2013-11-22T08:46:00Z")

</div>

Hello All !  
Following Asterisk installation instructions I have installed dahdi first successfully  
then after that while installing libpri i’m getting error,FYI I’m pasting console message what i got

[root@dtp220@galaxy libpri-1.4.14]# make clean  
rm -f \*.o \*.so _.lo  
rm -f libpri.a libpri.so.1.4  
rm -f pridump pritest rosetest testprilib  
rm -f ._.d  
[root@dtp220@galaxy libpri-1.4.14]# make  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT copy\_string.o -MF .copy\_string.o.d -MP -c -o copy\_string.o copy\_string.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT pri.o -MF .pri.o.d -MP -c -o pri.o pri.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT q921.o -MF .q921.o.d -MP -c -o q921.o q921.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT prisched.o -MF .prisched.o.d -MP -c -o prisched.o prisched.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT q931.o -MF .q931.o.d -MP -c -o q931.o q931.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT pri\_aoc.o -MF .pri\_aoc.o.d -MP -c -o pri\_aoc.o pri\_aoc.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT pri\_cc.o -MF .pri\_cc.o.d -MP -c -o pri\_cc.o pri\_cc.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT pri\_facility.o -MF .pri\_facility.o.d -MP -c -o pri\_facility.o pri\_facility.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT asn1\_primitive.o -MF .asn1\_primitive.o.d -MP -c -o asn1\_primitive.o asn1\_primitive.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose.o -MF .rose.o.d -MP -c -o rose.o rose.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose\_address.o -MF .rose\_address.o.d -MP -c -o rose\_address.o rose\_address.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose\_etsi\_aoc.o -MF .rose\_etsi\_aoc.o.d -MP -c -o rose\_etsi\_aoc.o rose\_etsi\_aoc.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose\_etsi\_cc.o -MF .rose\_etsi\_cc.o.d -MP -c -o rose\_etsi\_cc.o rose\_etsi\_cc.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose\_etsi\_diversion.o -MF .rose\_etsi\_diversion.o.d -MP -c -o rose\_etsi\_diversion.o rose\_etsi\_diversion.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose\_etsi\_ect.o -MF .rose\_etsi\_ect.o.d -MP -c -o rose\_etsi\_ect.o rose\_etsi\_ect.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose\_etsi\_mwi.o -MF .rose\_etsi\_mwi.o.d -MP -c -o rose\_etsi\_mwi.o rose\_etsi\_mwi.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose\_other.o -MF .rose\_other.o.d -MP -c -o rose\_other.o rose\_other.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose\_q931.o -MF .rose\_q931.o.d -MP -c -o rose\_q931.o rose\_q931.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose\_qsig\_aoc.o -MF .rose\_qsig\_aoc.o.d -MP -c -o rose\_qsig\_aoc.o rose\_qsig\_aoc.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose\_qsig\_cc.o -MF .rose\_qsig\_cc.o.d -MP -c -o rose\_qsig\_cc.o rose\_qsig\_cc.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose\_qsig\_ct.o -MF .rose\_qsig\_ct.o.d -MP -c -o rose\_qsig\_ct.o rose\_qsig\_ct.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose\_qsig\_diversion.o -MF .rose\_qsig\_diversion.o.d -MP -c -o rose\_qsig\_diversion.o rose\_qsig\_diversion.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose\_qsig\_mwi.o -MF .rose\_qsig\_mwi.o.d -MP -c -o rose\_qsig\_mwi.o rose\_qsig\_mwi.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose\_qsig\_name.o -MF .rose\_qsig\_name.o.d -MP -c -o rose\_qsig\_name.o rose\_qsig\_name.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT version.o -MF .version.o.d -MP -c -o version.o version.c  
ar rcs libpri.a copy\_string.o pri.o q921.o prisched.o q931.o pri\_aoc.o pri\_cc.o pri\_facility.o asn1\_primitive.o rose.o rose\_address.o rose\_etsi\_aoc.o rose\_etsi\_cc.o rose\_etsi\_diversion.o rose\_etsi\_ect.o rose\_etsi\_mwi.o rose\_other.o rose\_q931.o rose\_qsig\_aoc.o rose\_qsig\_cc.o rose\_qsig\_ct.o rose\_qsig\_diversion.o rose\_qsig\_mwi.o rose\_qsig\_name.o version.o  
ranlib libpri.a  
gcc -shared -Wl,-hlibpri.so.1.4 -o libpri.so.1.4 copy\_string.o pri.o q921.o prisched.o q931.o pri\_aoc.o pri\_cc.o pri\_facility.o asn1\_primitive.o rose.o rose\_address.o rose\_etsi\_aoc.o rose\_etsi\_cc.o rose\_etsi\_diversion.o rose\_etsi\_ect.o rose\_etsi\_mwi.o rose\_other.o rose\_q931.o rose\_qsig\_aoc.o rose\_qsig\_cc.o rose\_qsig\_ct.o rose\_qsig\_diversion.o rose\_qsig\_mwi.o rose\_qsig\_name.o version.o  
/sbin/ldconfig -n .  
ln -sf libpri.so.1.4 [libpri.so](http://libpri.so)  
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  
gcc -o pridump pridump.o -L. -lpri -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT pritest.o -MF .pritest.o.d -MP -c -o pritest.o pritest.c  
gcc -o pritest pritest.o libpri.a -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rosetest.o -MF .rosetest.o.d -MP -c -o rosetest.o rosetest.c  
gcc -o rosetest rosetest.o libpri.a -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -D\_REENTRANT -D\_GNU\_SOURCE -MD -MT testprilib.o -MF .testprilib.o.d -MP -c -o testprilib.o testprilib.c  
gcc -o testprilib testprilib.o libpri.a -lpthread -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2  
[root@dtp220@galaxy libpri-1.4.14]# make install  
mkdir -p /usr/lib  
mkdir -p /usr/include  
install -m 644 libpri.h /usr/include  
install -m 755 libpri.so.1.4 /usr/lib  
#if [-x /usr/sbin/sestatus] && ( /usr/sbin/sestatus | grep “SELinux status:” | grep -q “enabled”); then /sbin/restorecon -v /usr/lib/libpri.so.1.4; fi  
( cd /usr/lib ; ln -sf libpri.so.1.4 [libpri.so](http://libpri.so))  
install -m 644 libpri.a /usr/lib  
if test $(id -u) = 0; then /sbin/ldconfig -n /usr/lib; fi  
[root@dtp220@galaxy libpri-1.4.14]#

But if i’m not using command ‘make clean’ and using only ‘make’ and ‘make install’ then i’m getting

[root@dtp220@galaxy libpri-1.4.14]# make  
[root@dtp220@galaxy libpri-1.4.14]# make install  
mkdir -p /usr/lib  
mkdir -p /usr/include  
install -m 644 libpri.h /usr/include  
install -m 755 libpri.so.1.4 /usr/lib  
#if [-x /usr/sbin/sestatus] && ( /usr/sbin/sestatus | grep “SELinux status:” | grep -q “enabled”); then /sbin/restorecon -v /usr/lib/libpri.so.1.4; fi  
( cd /usr/lib ; ln -sf libpri.so.1.4 [libpri.so](http://libpri.so))  
install -m 644 libpri.a /usr/lib  
if test $(id -u) = 0; then /sbin/ldconfig -n /usr/lib; fi  
[root@dtp220@galaxy libpri-1.4.14]#

I thought may due to some dependencies its coming then t have tried to install them but getting message like already installed

[root@dtp220@galaxy Desktop]# yum install -y make wget openssl-devel ncurses-devel newt-devel libxml2-devel kernel-devel gcc gcc-c++ sqlite-devel  
Loaded plugins: aliases, changelog, downloadonly, fastestmirror, kabi, presto,  
: refresh-packagekit, security, tmprepo, verify, versionlock  
Loading support for CentOS kernel ABI  
Loading mirror speeds from cached hostfile

- base: [ftp.iitm.ac.in](http://ftp.iitm.ac.in)
- extras: [ftp.iitm.ac.in](http://ftp.iitm.ac.in)
- updates: [ftp.iitm.ac.in](http://ftp.iitm.ac.in)  
Setting up Install Process  
Package 1:make-3.81-20.el6.i686 already installed and latest version  
Package wget-1.12-1.8.el6.i686 already installed and latest version  
Package openssl-devel-1.0.0-27.el6\_4.2.i686 already installed and latest version  
Package ncurses-devel-5.7-3.20090208.el6.i686 already installed and latest version  
Package newt-devel-0.52.11-3.el6.i686 already installed and latest version  
Package libxml2-devel-2.7.6-12.el6\_4.1.i686 already installed and latest version  
Package kernel-devel-2.6.32-358.23.2.el6.i686 already installed and latest version  
Package gcc-4.4.7-3.el6.i686 already installed and latest version  
Package gcc-c+±4.4.7-3.el6.i686 already installed and latest version  
Package sqlite-devel-3.6.20-1.el6.i686 already installed and latest version  
Nothing to do

Please help 😢

---

<div class="post-metadata">

**Author:** ![david55](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@david55](https://community.asterisk.org/u/david55)\
**Post date:** [November 22, 2013, 11:16am UTC](https://community.asterisk.org/t/getting-errors-while-installing-libpri1-4-14/44561/2 "2013-11-22T11:16:34Z")

</div>

Could you please point out the error message? I can’t find one.

---

<div class="post-metadata">

**Author:** ![soni\_soni](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@soni\_soni](https://community.asterisk.org/u/soni_soni)\
**Post date:** [November 22, 2013, 11:42am UTC](https://community.asterisk.org/t/getting-errors-while-installing-libpri1-4-14/44561/3 "2013-11-22T11:42:07Z")

</div>

gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT copy\_string.o -MF .copy\_string.o.d -MP -c -o copy\_string.o copy\_string.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT pri.o -MF .pri.o.d -MP -c -o pri.o pri.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT q921.o -MF .q921.o.d -MP -c -o q921.o q921.c

Thnks for the reply  
Please bare because i really dont have idea about all this.  
in above lines" -Werror -Wstrict" words are there if these are not errors then please tell why these are coming,because frst time when i’v installed libpri i didn’t get these messages

if i’ll don’t even care about these messages,then while installing appkonference1.3 i’m getting error as

[root@dtp220@galaxy konference]# make  
cc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -MD -MP -g -fPIC -I/usr/src/asterisk/asterisk-10.12.3/include -D\_REENTRANT -D\_GNU\_SOURCE -DRELEASE=“1.3” -DCRYPTO -DCHANNEL\_TABLE\_SIZE=997 -DREALTIME -Ilibspeex -DSILDET=2 -c -o conference.o conference.c  
conference.c: In function ‘create\_conf’:  
conference.c:698: warning: passing argument 1 of ‘ast\_translator\_build\_path’ makes pointer from integer without a cast  
/usr/src/asterisk/asterisk-10.12.3/include/asterisk/translate.h:299: note: expected ‘struct ast\_format \*’ but argument is of type ‘int’  
conference.c:698: warning: passing argument 2 of ‘ast\_translator\_build\_path’ makes pointer from integer without a cast  
/usr/src/asterisk/asterisk-10.12.3/include/asterisk/translate.h:299: note: expected ‘struct ast\_format \*’ but argument is of type ‘int’  
conference.c:699: warning: passing argument 1 of ‘ast\_translator\_build\_path’ makes pointer from integer without a cast  
/usr/src/asterisk/asterisk-10.12.3/include/asterisk/translate.h:299: note: expected ‘struct ast\_format \*’ but argument is of type ‘int’  
conference.c:699: warning: passing argument 2 of ‘ast\_translator\_build\_path’ makes pointer from integer without a cast  
/usr/src/asterisk/asterisk-10.12.3/include/asterisk/translate.h:299: note: expected ‘struct ast\_format \*’ but argument is of type ‘int’  
conference.c:700: warning: passing argument 1 of ‘ast\_translator\_build\_path’ makes pointer from integer without a cast  
/usr/src/asterisk/asterisk-10.12.3/include/asterisk/translate.h:299: note: expected ‘struct ast\_format \*’ but argument is of type ‘int’  
conference.c:700: warning: passing argument 2 of ‘ast\_translator\_build\_path’ makes pointer from integer without a cast  
/usr/src/asterisk/asterisk-10.12.3/include/asterisk/translate.h:299: note: expected ‘struct ast\_format \*’ but argument is of type ‘int’  
conference.c:701: warning: passing argument 1 of ‘ast\_translator\_build\_path’ makes pointer from integer without a cast  
/usr/src/asterisk/asterisk-10.12.3/include/asterisk/translate.h:299: note: expected ‘struct ast\_format \*’ but argument is of type ‘int’  
conference.c:701: warning: passing argument 2 of ‘ast\_translator\_build\_path’ makes pointer from integer without a cast  
/usr/src/asterisk/asterisk-10.12.3/include/asterisk/translate.h:299: note: expected ‘struct ast\_format \*’ but argument is of type ‘int’  
conference.c: In function ‘show\_conference\_list’:  
conference.c:1356: warning: format ‘%-20ld’ expects type ‘long int’, but argument 7 has type ‘int’  
conference.c: In function ‘manager\_conference\_list’:  
conference.c:1425: error: ‘struct ast\_channel’ has no member named ‘cid’  
conference.c:1425: error: ‘struct ast\_channel’ has no member named ‘cid’  
conference.c:1426: error: ‘struct ast\_channel’ has no member named ‘cid’  
conference.c:1426: error: ‘struct ast\_channel’ has no member named ‘cid’  
make: \*\*\* [conference.o] Error 1  
[root@dtp220@galaxy konference]#

Note:Before i have installed  
"asterisk10,libpri-1.4.14,dahdi-linux-complete-2.7.0.1+2.7.0.1,appkonference2.4,"  
which got successfully installed but after asterisk uninstallation again when i’m trying to install "asterisk10,libpri-1.4.14,dahdi-linux-complete-2.7.0.1+2.7.0.1,appkonference1.3 "  
then these issues are coming.

Please suggest or guide what i need to do.

---

<div class="post-metadata">

**Author:** ![david55](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@david55](https://community.asterisk.org/u/david55)\
**Post date:** [November 22, 2013, 12:08pm UTC](https://community.asterisk.org/t/getting-errors-while-installing-libpri1-4-14/44561/4 "2013-11-22T12:08:26Z")

</div>

[quote=“soni\_soni”]gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT copy\_string.o -MF .copy\_string.o.d -MP -c -o copy\_string.o copy\_string.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT pri.o -MF .pri.o.d -MP -c -o pri.o pri.c  
gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT q921.o -MF .q921.o.d -MP -c -o q921.o q921.c[/quote]

This contains the output from part of a successful build, there are no error or warning messages present.
