PJProject 2.4 SVN revision 5143 Will Not Build Shared Libraries ( for me )

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 5, 2015 at 4:58 AM, Michel Vaillancourt <
m.vaillancourt at jkl5group.com> wrote:

> Howdy, folks.
>
> I'm working with a customer that needs PJSIP and Asterisk.
>
> So, I've grabbed the current SVN Trunk (revision 5143) for PJSIP and then
> used:
>
> touch pjlib/include/pj/config_site.h
>
> ./configure  \
>   --enable-shared \
>   --disable-sound --disable-video \
>   --disable-resample \
>   --disable-opencore-amr \
>   --prefix=/usr \
>   CFLAGS='-O2 -DNDEBUG'
>
>
> The machine is Ubuntu 14.04.2 LTS, with all current package updates
> applied.
>
> However, when I compile, I wind up with *static* libraries.  This, of
> course, is "Thou Art Doomed" for use with Asterisk 13.x.  It segfaults out
> every time on device registration.
>
> I've been picking at this all day, searching blog sites, etc, to try and
> figure out what I am doing wrong here.
>
> # grep 'shared' config.log
> aconfigure:5693: result: Building shared libraries... yes
> aconfigure:6514: result: Building libresample as shared library... no
> ac_shared_libraries='1'
>
>
> So the command line arguments to "configure" are being parsed, but:
>
> # ldconfig && ldconfig -p | grep pj
>         libpjsua2.so.2 (libc6,x86-64) => /usr/lib/libpjsua2.so.2
>         libpjsua2.so (libc6,x86-64) => /usr/lib/libpjsua2.so
>         libpjsua.so.2 (libc6,x86-64) => /usr/lib/libpjsua.so.2
>         libpjsua.so (libc6,x86-64) => /usr/lib/libpjsua.so
>         libpjsip.so.2 (libc6,x86-64) => /usr/lib/libpjsip.so.2
>         libpjsip.so (libc6,x86-64) => /usr/lib/libpjsip.so
>         libpjsip-ua.so.2 (libc6,x86-64) => /usr/lib/libpjsip-ua.so.2
>         libpjsip-ua.so (libc6,x86-64) => /usr/lib/libpjsip-ua.so
>         libpjsip-simple.so.2 (libc6,x86-64) =>
> /usr/lib/libpjsip-simple.so.2
>         libpjsip-simple.so (libc6,x86-64) => /usr/lib/libpjsip-simple.so
>         libpjnath.so.2 (libc6,x86-64) => /usr/lib/libpjnath.so.2
>         libpjnath.so (libc6,x86-64) => /usr/lib/libpjnath.so
>         libpjmedia.so.2 (libc6,x86-64) => /usr/lib/libpjmedia.so.2
>         libpjmedia.so (libc6,x86-64) => /usr/lib/libpjmedia.so
>         libpjmedia-videodev.so.2 (libc6,x86-64) =>
> /usr/lib/libpjmedia-videodev.so.2
>         libpjmedia-videodev.so (libc6,x86-64) =>
> /usr/lib/libpjmedia-videodev.so
>         libpjmedia-codec.so.2 (libc6,x86-64) =>
> /usr/lib/libpjmedia-codec.so.2
>         libpjmedia-codec.so (libc6,x86-64) => /usr/lib/libpjmedia-codec.so
>         libpjmedia-audiodev.so.2 (libc6,x86-64) =>
> /usr/lib/libpjmedia-audiodev.so.2
>         libpjmedia-audiodev.so (libc6,x86-64) =>
> /usr/lib/libpjmedia-audiodev.so
>         libpjlib-util.so.2 (libc6,x86-64) => /usr/lib/libpjlib-util.so.2
>         libpjlib-util.so (libc6,x86-64) => /usr/lib/libpjlib-util.so
>         libpj.so.2 (libc6,x86-64) => /usr/lib/libpj.so.2
>         libpj.so (libc6,x86-64) => /usr/lib/libpj.so
>
>
> Aug  4 13:11:01 switch2 kernel: [343362.021810] asterisk[4611]: segfault
> at c ip 00007f6a55ee1d54 sp 00007f6a9b608010 error 4 in
> res_hep_pjsip.so[7f6a55eb4000+45000]
>
> ... the folks over in the Asterisk world who know PJSIP tell me that this
> is a clear indicator that it's static libraries.
>
> I've run "make uninstall" and then manually deleted any libraries that LD
> could see to ensure nothing "old" was hanging around, but that did not
> remedy the issue.
>
> Can anyone point me in the right direction here for getting Shared
> Libraries to be compiled?
>
>
You have  to recompile asterisk to use those shiny new shared libraries.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20150806/cbefca1d/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux