Getting errors while installing LibPri1.4.14

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
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)
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)
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
  • extras: ftp.iitm.ac.in
  • updates: 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 :cry:

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

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.

[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.