Package Details: pjsua 2.10-2

Git Clone URL: https://aur.archlinux.org/pjsua.git (read-only, click to copy)
Package Base: pjsua
Description: Open source command line SIP user agent
Upstream URL: http://www.pjsip.org/pjsua.htm
Licenses: GPL
Submitter: sputnick
Maintainer: chrko (thotypous)
Last Packager: thotypous
Votes: 17
Popularity: 0.065188
First Submitted: 2010-06-17 14:35
Last Updated: 2020-03-29 22:20

Latest Comments

1 2 Next › Last »

thotypous commented on 2020-03-29 22:16

Thank you chrko!

Just to keep it documented, the exact build error which caused us to introduce the -DPJ_TIMER_DEBUG=0 workaround was the following:

/usr/bin/ld: output/pjlib-test-x86_64-unknown-linux-gnu/timer.o: in function `stress_worker':
timer.c:(.text+0x2e1): undefined reference to `pj_timer_heap_schedule_w_grp_lock_dbg'
/usr/bin/ld: output/pjlib-test-x86_64-unknown-linux-gnu/timer.o: in function `bench_test':
timer.c:(.text+0x91d): undefined reference to `pj_timer_heap_schedule_dbg'
/usr/bin/ld: output/pjlib-test-x86_64-unknown-linux-gnu/timer.o: in function `timer_test':
timer.c:(.text+0xcfa): undefined reference to `pj_timer_heap_schedule_dbg'
/usr/bin/ld: timer.c:(.text+0x1a1f): undefined reference to `pj_timer_heap_schedule_dbg'
collect2: error: ld returned 1 exit status

chrko commented on 2020-03-29 21:21

Thanks for your comments. I have used this just for testing purposes, so I didn't care about the active asserts. I have added you as the co-maintainer, so you can push the changes yourself and also add you as maintainer to PKGBUILD.

thotypous commented on 2020-03-29 21:00

Also, the pjsip project recommends to compile release builds with the -NDEBUG flag.

Fixed PKGBUILD:

pkgname=pjsua
pkgver=2.10
pkgrel=2
pkgdesc="Open source command line SIP user agent"
arch=(i686 x86_64)
url="http://www.pjsip.org/pjsua.htm"
depends=(
  'bcg729'
  'ffmpeg'
)
license=('GPL')
source=(https://github.com/pjsip/pjproject/archive/$pkgver.tar.gz)
sha512sums=('a67f083df175b536b4e6a7b7fe39e07d3ee805d6917ec64a50694542a7455c33a100889191044ab3fa679b6656774a6be045621aa53510b5f04cdde9ddd59893')

build() {
  cd $srcdir/pjproject-$pkgver
  CFLAGS+=" -DNDEBUG"
  ./configure \
    --prefix=/usr
  make dep
  make
}
package() {
  cd $srcdir/pjproject-$pkgver
  install -D -m755 pjsip-apps/bin/pjsua-*gnu $pkgdir/usr/bin/pjsua
}

thotypous commented on 2020-03-29 20:54

The problem with --with-external-speex persists.

thotypous commented on 2020-03-26 01:19

Notes:

  • Using --with-external-speex does not work well, even in 2.9. It causes the call to hiccup and causes the messages below to be displayed in loop:
warning: Had to discard a playback frame (your application is buggy and/or got xruns)
warning: Auto-filling the buffer (your application is buggy and/or got xruns)
  • The CFLAGS hack below is needed in order to upgrade to 2.10.

PKGBUILD for 2.10:

pkgname=pjsua
pkgver=2.10
pkgrel=0
pkgdesc="Open source command line SIP user agent"
arch=(i686 x86_64)
url="http://www.pjsip.org/pjsua.htm"
depends=(
  'bcg729'
  'ffmpeg'
)
license=('GPL')
source=(https://github.com/pjsip/pjproject/archive/$pkgver.tar.gz)
sha512sums=('a67f083df175b536b4e6a7b7fe39e07d3ee805d6917ec64a50694542a7455c33a100889191044ab3fa679b6656774a6be045621aa53510b5f04cdde9ddd59893')

build() {
  cd $srcdir/pjproject-$pkgver
  export CFLAGS="-DNDEBUG -DPJ_TIMER_DEBUG=0 $CFLAGS"
  ./configure \
    --prefix=/usr
  make dep
  make
}
package() {
  cd $srcdir/pjproject-$pkgver
  install -D -m755 pjsip-apps/bin/pjsua-*gnu $pkgdir/usr/bin/pjsua
}

stormdragon2976 commented on 2018-12-15 14:51

I built this last night and it failed to build until I removed the gnu from the end of the copy command. So: install -D -m755 pjsip-apps/bin/pjsua-gnu /usr/bin/pjsua becomes: install -D -m755 pjsip-apps/bin/pjsua- /usr/bin/pjsua

chrko commented on 2018-03-21 10:14

@Lindenk: I haven't seen this error before. The package build successfully on machine and also on clean chroot like described here: https://wiki.archlinux.org/index.php/DeveloperWiki:Building_in_a_Clean_Chroot

Lindenk commented on 2018-03-21 01:35

I can't seem to build it. I'm getting this error once it gets to linking:

output/pjmedia-test-x86_64-unknown-linux-gnu/mips_test.o: In function create_stream_amr': mips_test.c:(.text+0x1aa9): undefined reference topjmedia_codec_opencore_amrnb_deinit' mips_test.c:(.text+0x1ab1): undefined reference to pjmedia_codec_opencore_amrnb_init' output/pjmedia-test-x86_64-unknown-linux-gnu/mips_test.o: In functionamr_encode_decode': mips_test.c:(.text+0x1ffa): undefined reference to pjmedia_codec_opencore_amrnb_init' mips_test.c:(.text+0x2002): undefined reference topjmedia_codec_opencore_amrnb_deinit'

chrko commented on 2015-01-05 16:02

Hey thiagoc, please update to v2.3 and md5sum 8440e43242c439ae5ec30b5b85005fce

thiagoc commented on 2014-05-19 13:26

@intgr sure, I already have a working PKGBUILD.