Libpri Error

Home » Asterisk Users » Libpri Error
Asterisk Users 8 Comments

Hello, Trying to install libpri version 1.4.11.3 on CentOS 5.5. but getting below errors. Please suggest the resolution. gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT copy_string.o -MF .copy_string.o.d -MP -c -o copy_string.o copy_string.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT pri.o -MF .pri.o.d -MP -c -o pri.o pri.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT q921.o -MF .q921.o.d -MP -c -o q921.o q921.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT prisched.o -MF .prisched.o.d -MP -c -o prisched.o prisched.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT q931.o -MF .q931.o.d -MP -c -o q931.o q931.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT pri_facility.o -MF .pri_facility.o.d -MP -c -o pri_facility.o pri_facility.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT asn1_primitive.o -MF .asn1_primitive.o.d -MP -c -o asn1_primitive.o asn1_primitive.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose.o -MF .rose.o.d -MP -c -o rose.o rose.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_etsi_aoc.lo -MF .rose_etsi_aoc.lo.d -MP -c -o rose_etsi_aoc.lo rose_etsi_aoc.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_etsi_diversion.lo -MF .rose_etsi_diversion.lo.d -MP -c -o rose_etsi_diversion.lo rose_etsi_diversion.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_etsi_ect.lo -MF .rose_etsi_ect.lo.d -MP -c -o rose_etsi_ect.lo rose_etsi_ect.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_other.lo -MF .rose_other.lo.d -MP -c -o rose_other.lo rose_other.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_q931.lo -MF .rose_q931.lo.d -MP -c -o rose_q931.lo rose_q931.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_qsig_aoc.lo -MF .rose_qsig_aoc.lo.d -MP -c -o rose_qsig_aoc.lo rose_qsig_aoc.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_qsig_ct.lo -MF .rose_qsig_ct.lo.d -MP -c -o rose_qsig_ct.lo rose_qsig_ct.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_qsig_diversion.lo -MF .rose_qsig_diversion.lo.d -MP -c -o rose_qsig_diversion.lo rose_qsig_diversion.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_qsig_mwi.lo -MF .rose_qsig_mwi.lo.d -MP -c -o rose_qsig_mwi.lo rose_qsig_mwi.c
……. Thanks,Kamlesh

8 thoughts on - Libpri Error

  • That output doesn’t look like error messages, but normal compilation output.
    If there is an actual error stopping it, we need to see the last few lines with the actual error message.

    Important side question: Have you ever successfully compiled libpri on this machine before?

  • (Do not write anything before the original message. The proper place for a reply is *after* the thing you are replying to.)

    OK, then. What are the *last* few lines you get before it stops? (All the stuff you reproduced before was just normal compiler output. If there was an error at all, it would have been just before compilation failed.)

  • when I issue ‘make’ command, below output comes. [root@localhost libpri-1.4.11.3]# make gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT copy_string.o -MF .copy_string.o.d -MP -c -o copy_string.o copy_string.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT pri.o -MF .pri.o.d -MP -c -o pri.o pri.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT q921.o -MF .q921.o.d -MP -c -o q921.o q921.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT prisched.o -MF .prisched.o.d -MP -c -o prisched.o prisched.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT q931.o -MF .q931.o.d -MP -c -o q931.o q931.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT pri_facility.o -MF .pri_facility.o.d -MP -c -o pri_facility.o pri_facility.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT asn1_primitive.o -MF .asn1_primitive.o.d -MP -c -o asn1_primitive.o asn1_primitive.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose.o -MF .rose.o.d -MP -c -o rose.o rose.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_address.o -MF .rose_address.o.d -MP -c -o rose_address.o rose_address.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -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 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -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 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -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 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_other.o -MF .rose_other.o.d -MP -c -o rose_other.o rose_other.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_q931.o -MF .rose_q931.o.d -MP -c -o rose_q931.o rose_q931.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -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 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -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 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -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 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -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 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -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 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -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_facility.o asn1_primitive.o rose.o rose_address.o rose_etsi_aoc.o rose_etsi_diversion.o rose_etsi_ect.o rose_other.o rose_q931.o rose_qsig_aoc.o rose_qsig_ct.o rose_qsig_diversion.o rose_qsig_mwi.o rose_qsig_name.o version.o ranlib libpri.a gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT copy_string.lo -MF .copy_string.lo.d -MP -c -o copy_string.lo copy_string.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT pri.lo -MF .pri.lo.d -MP -c -o pri.lo pri.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT q921.lo -MF .q921.lo.d -MP -c -o q921.lo q921.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT prisched.lo -MF .prisched.lo.d -MP -c -o prisched.lo prisched.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT q931.lo -MF .q931.lo.d -MP -c -o q931.lo q931.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT pri_facility.lo -MF .pri_facility.lo.d -MP -c -o pri_facility.lo pri_facility.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT asn1_primitive.lo -MF .asn1_primitive.lo.d -MP -c -o asn1_primitive.lo asn1_primitive.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose.lo -MF .rose.lo.d -MP -c -o rose.lo rose.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_address.lo -MF .rose_address.lo.d -MP -c -o rose_address.lo rose_address.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_etsi_aoc.lo -MF .rose_etsi_aoc.lo.d -MP -c -o rose_etsi_aoc.lo rose_etsi_aoc.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_etsi_diversion.lo -MF .rose_etsi_diversion.lo.d -MP -c -o rose_etsi_diversion.lo rose_etsi_diversion.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_etsi_ect.lo -MF .rose_etsi_ect.lo.d -MP -c -o rose_etsi_ect.lo rose_etsi_ect.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_other.lo -MF .rose_other.lo.d -MP -c -o rose_other.lo rose_other.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_q931.lo -MF .rose_q931.lo.d -MP -c -o rose_q931.lo rose_q931.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_qsig_aoc.lo -MF .rose_qsig_aoc.lo.d -MP -c -o rose_qsig_aoc.lo rose_qsig_aoc.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_qsig_ct.lo -MF .rose_qsig_ct.lo.d -MP -c -o rose_qsig_ct.lo rose_qsig_ct.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_qsig_diversion.lo -MF .rose_qsig_diversion.lo.d -MP -c -o rose_qsig_diversion.lo rose_qsig_diversion.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_qsig_mwi.lo -MF .rose_qsig_mwi.lo.d -MP -c -o rose_qsig_mwi.lo rose_qsig_mwi.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT rose_qsig_name.lo -MF .rose_qsig_name.lo.d -MP -c -o rose_qsig_name.lo rose_qsig_name.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT version.lo -MF .version.lo.d -MP -c -o version.lo version.c gcc -shared -Wl,-hlibpri.so.1.4 -o libpri.so.1.4 copy_string.lo pri.lo q921.lo prisched.lo q931.lo pri_facility.lo asn1_primitive.lo rose.lo rose_address.lo rose_etsi_aoc.lo rose_etsi_diversion.lo rose_etsi_ect.lo rose_other.lo rose_q931.lo rose_qsig_aoc.lo rose_qsig_ct.lo rose_qsig_diversion.lo rose_qsig_mwi.lo rose_qsig_name.lo version.lo
    /sbin/ldconfig -n . ln -sf libpri.so.1.4 libpri.so[root@localhost libpri-1.4.11.3]#
    thanks,Kamlesh
    > To: asterisk-users@lists.digium.com

  • (Do not write anything before the original message! The proper place for a reply is *after* the thing you are replying to.)

    That looks like a successful build to me.

  • make install gives below output, is it also ok? [root@localhost libpri-1.4.11.3]# 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@localhost libpri-1.4.11.3]#
    thanks,Kamlesh
    > From: asterisk_list@earthshod.co.uk

  • Yes, that looks fine.

    Run `ldconfig` if you haven’t already, then you’re ready to build DAHDI.

  • [snip]

    Looks OK.

    Make is quite noisy when it encounters an error:

    $ echo “something invalid” >>q921.c

    $ LANG=C make gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT copy_string.o -MF .copy_string.o.d -MP -c -o copy_string.o copy_string.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT pri.o -MF .pri.o.d -MP -c -o pri.o pri.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT q921.o -MF .q921.o.d -MP -c -o q921.o q921.c q921.c:3113:1: error: unknown type name ‘something’
    q921.c:3113:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ at end of input make: *** [q921.o] Error 1

    $ echo $?
    2

    Had I not sabotaged the code:

    $ make gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT copy_string.o -MF .copy_string.o.d -MP -c -o copy_string.o copy_string.c gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -fPIC -O2 -MD -MT pri.o -MF .pri.o.d -MP -c -o pri.o pri.c
    [snip]
    gcc -shared -Wl,-hlibpri.so.1.4 -o libpri.so.1.4 copy_string.lo pri.lo q921.lo prisched.lo q931.lo pri_aoc.lo pri_cc.lo pri_facility.lo asn1_primitive.lo rose.lo rose_address.lo rose_etsi_aoc.lo rose_etsi_cc.lo rose_etsi_diversion.lo rose_etsi_ect.lo rose_etsi_mwi.lo rose_other.lo rose_q931.lo rose_qsig_aoc.lo rose_qsig_cc.lo rose_qsig_ct.lo rose_qsig_diversion.lo rose_qsig_mwi.lo rose_qsig_name.lo version.lo
    /sbin/ldconfig -n . ln -sf libpri.so.1.4 libpri.so

    $ echo $?
    0

    ‘$?’ (the value of the shell variable named ‘?’) holds the return status of the last command. If it’s not 0, it means that this command returned an error.