Adolphus Enaboifo
2012-Nov-19 19:47 UTC
[asterisk-users] Fwd: Errors Compiling Libpri-1.4.13
Good Day dear members, We are trying to test asterisk in our office to extend the reach of our present proprietary pabx system if successful. I am using an oracle virualbox 4.2.4 as the virtual server platform with ubuntu 12.04.1 server as the operating system. I get errors while trying to compile Libpri 1.4.13. (check attachment} Can you guys please help me prescribe a fix. thanks Adolphus Enaboifo -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121119/8604435c/attachment.htm> -------------- next part -------------- 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 pridump.c:45:24: fatal error: dahdi/user.h: No such file or ditrectory compilation terminated. make: *** [pridump.o] Error 1
On Mon, Nov 19, 2012 at 08:47:23PM +0100, Adolphus Enaboifo wrote:> .. I get errors while trying to compile Libpri 1.4.13. (check > attachment} Can you guys please help me prescribe a fix.[snip]> 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 > pridump.c:45:24: fatal error: dahdi/user.h: No such file or directory compilation terminated. > make: *** [pridump.o] Error 1New in lipri 1.4.13 is a default dependency on DAHDI [1]. You should be good to go if you make sure that DAHDI is installed before compiling libpri. [1] http://svnview.digium.com/svn/libpri?view=revision&revision=2294 Cheers, Shaun -- Shaun Ruffell Digium, Inc. | Linux Kernel Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at: www.digium.com & www.asterisk.org
Hi Dear List members , this is coming rather late but I took your advice and went ahead to install Dahdi before installing libpri-1.4.13 and the error messages are now different.(see attachment) Kindly help . I have tried this several times and I get stuck on Libpri installation. Your input is highly sought and appreciated. thanks Adolphus Enaboifo On Mon, Nov 19, 2012 at 8:47 PM, Adolphus Enaboifo < adolphus.enaboifo at osenkorp.com> wrote:> > Good Day dear members, > > We are trying to test asterisk in our office to extend the reach of our > present proprietary pabx system if successful. > I am using an oracle virualbox 4.2.4 as the virtual server platform with > ubuntu 12.04.1 server as the operating system. > > I get errors while trying to compile Libpri 1.4.13. (check attachment} > Can you guys please help me prescribe a fix. > > thanks > Adolphus Enaboifo > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121126/f072526c/attachment.htm> -------------- next part -------------- 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 pritest.c: ln function do_channel: Pritest.c:71:8: error: ignoring return value of write, declared with warn_unused_result [-Werror=unused-result] cc1: all warnings being treated as errors make:***[pritest.o] Error 1
> this is coming rather late but I took your advice and went ahead to > install Dahdi before installing libpri-1.4.13 > and the error messages are now different.(see attachment)This is compile error is reported by newer gcc compiler versions. It is already fixed in libpri SVN. https://issues.asterisk.org/jira/browse/PRI-145 Richard
2012/11/19 Shaun Ruffell <sruffell at digium.com>> On Mon, Nov 19, 2012 at 08:47:23PM +0100, Adolphus Enaboifo wrote: > > .. I get errors while trying to compile Libpri 1.4.13. (check > > attachment} Can you guys please help me prescribe a fix. > > [snip] > > > 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 > > pridump.c:45:24: fatal error: dahdi/user.h: No such file or directory > compilation terminated. > > make: *** [pridump.o] Error 1 > > New in lipri 1.4.13 is a default dependency on DAHDI [1]. You should > be good to go if you make sure that DAHDI is installed before > compiling libpri. >My installation scripts were designed to build things this way: libpri dahdi-linux dahdi-tools asterisk Is it now requested to build this way ? dahdi-linux libpri dahdi-tools asterisk> > [1] http://svnview.digium.com/svn/libpri?view=revision&revision=2294 > > Cheers, > Shaun > > -- > Shaun Ruffell > Digium, Inc. | Linux Kernel Developer > 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA > Check us out at: www.digium.com & www.asterisk.org > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121127/0048a754/attachment.htm>
Richard Mudgett
2012-Nov-27 16:43 UTC
[asterisk-users] Fwd: Errors Compiling Libpri-1.4.13
> On Mon, Nov 19, 2012 at 08:47:23PM +0100, Adolphus Enaboifo wrote: > > .. I get errors while trying to compile Libpri 1.4.13. (check > > > attachment} Can you guys please help me prescribe a fix. > > [snip] > > > 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 > > pridump.c:45:24: fatal error: dahdi/user.h: No such file or > > directory compilation terminated. > > make: *** [pridump.o] Error 1 > > New in lipri 1.4.13 is a default dependency on DAHDI [1]. You should > be good to go if you make sure that DAHDI is installed before > compiling libpri. > > > My installation scripts were designed to build things this way: > libpri > dahdi-linux > dahdi-tools > asterisk > > Is it now requested to build this way ? > dahdi-linux > libpri > dahdi-tools > asteriskYes. Previously, the libpri utilities were not built by default. Now they are. It is the utilities that have the dependency on DAHDI. It makes more sense to build from the ground up anyway. dahdi-linux \__ Hardware level drivers and utilities dahdi-tools / libpri - Layer 2/Layer 3 protocols asterisk Richard
2012/11/27 Richard Mudgett <rmudgett at digium.com>> > On Mon, Nov 19, 2012 at 08:47:23PM +0100, Adolphus Enaboifo wrote: > > > .. I get errors while trying to compile Libpri 1.4.13. (check > > > > > attachment} Can you guys please help me prescribe a fix. > > > > [snip] > > > > > 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 > > > pridump.c:45:24: fatal error: dahdi/user.h: No such file or > > > directory compilation terminated. > > > make: *** [pridump.o] Error 1 > > > > New in lipri 1.4.13 is a default dependency on DAHDI [1]. You should > > be good to go if you make sure that DAHDI is installed before > > compiling libpri. > > > > > > My installation scripts were designed to build things this way: > > libpri > > dahdi-linux > > dahdi-tools > > asterisk > > > > Is it now requested to build this way ? > > dahdi-linux > > libpri > > dahdi-tools > > asterisk > > Yes. Previously, the libpri utilities were not built by default. > Now they are. It is the utilities that have the dependency on > DAHDI. It makes more sense to build from the ground up anyway. > > dahdi-linux \__ Hardware level drivers and utilities > dahdi-tools / > libpri - Layer 2/Layer 3 protocols > asterisk > > Richard >OK. Thanks for replying. !> > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121128/aac95a25/attachment.htm>