[asterisk-users] func_pjsip_aor.so: undefined symbol: ast_sip_location_retrieve_aor_contacts
sean darcy
seandarcy2 at gmail.com
Mon Sep 7 13:36:11 CDT 2020
On 9/6/20 3:43 AM, Michael Maier wrote:
> On 05.09.20 at 15:22 sean darcy wrote:
>> asterisk-16.13.0-rc2. Fedora 32
>>
>> pjsip won't load because of undefined symbols:
>
> This means, that your pjsip library doesn't match the asterisk binary. It's best to remove the independent pjsip library and compile asterisk[1] with the bundled pjsip library. Doing
> it this way ensures that pjsip and asterisk match for sure (and some additional patches are applied to pjsip on top regarding usage of pjsip in asterisk).
>
>
> Greetings
> Michael
>
> [1] https://downloads.asterisk.org/pub/telephony/asterisk
>
Sure seems I'm using the bundled pjproject:
./bootstrap.sh
Generating the configure script for Asterisk ...
..........
./configure --build=x86_64-redhat-linux-gnu
--host=x86_64-redhat-linux-gnu --program-prefix=
--disable-dependency-tracking --prefix=/usr --exec-prefix=/usr
--bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib
--mandir=/usr/share/man --infodir=/usr/share/info --with-imap=system
--with-gsm=/usr --with-ilbc=/usr --with-libedit=yes --with-srtp
--with-pjproject-bundled 'LDFLAGS=-m64
-Wl,--as-needed,--library-path=/usr/lib64 -Wl,-z,relro -Wl,--as-needed
-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
.......
checking for embedded pjproject (may have to download)... configuring
[pjproject] Downloading
https://raw.githubusercontent.com/asterisk/third-party/master/pjproject/2.10/pjproject-2.10.tar.bz2
to /tmp/pjproject-2.10.tar.bz2
[pjproject] Verifying /tmp/pjproject-2.10.tar.bz2
[pjproject] Verify successful
[pjproject] Verifying /tmp/pjproject-2.10.tar.bz2
[pjproject] Verify successful
[pjproject] Unpacking /tmp/pjproject-2.10.tar.bz2
[pjproject] Applying patches
/home/asterisk/rpmbuild/BUILD/asterisk-16.13.0-rc2/third-party/pjproject/patches
/home/asterisk/rpmbuild/BUILD/asterisk-16.13.0-rc2/third-party/pjproject/source
[pjproject] Applying user.mak
[pjproject] Applying custom include file patches/config_site.h
[pjproject] Applying custom include file patches/asterisk_malloc_debug.h
[pjproject] Rebuilding
[pjproject] Configuring with --build=x86_64-redhat-linux-gnu
--host=x86_64-redhat-linux-gnu --prefix=/opt/pjproject
--disable-speex-codec --disable-speex-aec --disable-bcg729
--disable-gsm-codec --disable-ilbc-codec --disable-l16-codec
--disable-g722-codec --disable-g7221-codec --disable-opencore-amr
--disable-silk --disable-opus --disable-video --disable-v4l2
--disable-sound --disable-ext-sound --disable-sdl --disable-libyuv
--disable-ffmpeg --disable-openh264 --disable-ipp --disable-libwebrtc
--without-external-pa --without-external-srtp --disable-resample
--disable-g711-codec --enable-epoll
checking for bundled pjproject... yes
..........
checking for bridges/bridge_softmix/include/hrirs.h... yes
checking for mandatory modules: PJPROJECT GSM ILBC IMAP_TK LIBEDIT
SRTP... ok
configure: creating ./config.status
config.status: creating build_tools/menuselect-deps
config.status: creating makeopts
config.status: creating include/asterisk/autoconfig.h
And then asterisk builds pjproject :
..........
make -C
/home/asterisk/rpmbuild/BUILD/asterisk-16.13.0-rc2/third-party/pjproject/source/pjlib//build
libpj-x86_64-redhat-linux-gnu.a
make -f
/home/asterisk/rpmbuild/BUILD/asterisk-16.13.0-rc2/third-party/pjproject/source/build/rules.mak
APP=PJLIB app=pjlib ../lib/libpj-x86_64-redhat-linux-gnu.a
make[4]: Entering directory
'/home/asterisk/rpmbuild/BUILD/asterisk-16.13.0-rc2/third-party/pjproject/source/pjlib/build'
...........
Very puzzled.
sean
More information about the asterisk-users
mailing list