Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 886151 - net-libs/pjproject-2.13: failures during linking
Summary: net-libs/pjproject-2.13: failures during linking
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Jaco Kroon
Keywords: PullRequest
Depends on:
Reported: 2022-12-15 16:15 UTC by George Diamantopoulos
Modified: 2023-05-18 05:00 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

pjproject-2.13 build log (,157.13 KB, text/plain)
2022-12-15 16:15 UTC, George Diamantopoulos
output of emerge --info (emerge-info.txt,7.22 KB, text/plain)
2022-12-15 16:16 UTC, George Diamantopoulos

Note You need to log in before you can comment on or make changes to this bug.
Description George Diamantopoulos 2022-12-15 16:15:08 UTC
Build fails during linking phase with errors like the following (more in attached build log):

/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: output/pjlib-test-x86_64-pc-linux-gnu/ioq_perf.o: in function `perform_test':
/var/tmp/portage/net-libs/pjproject-2.13/work/pjproject-2.13/pjlib/build/../src/pjlib-test/ioq_perf.c:301: undefined reference to `pj_ioqueue_create2'
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: output/pjlib-test-x86_64-pc-linux-gnu/ioq_perf.o: in function `ioqueue_perf_test':
/var/tmp/portage/net-libs/pjproject-2.13/work/pjproject-2.13/pjlib/build/../src/pjlib-test/ioq_perf.c:606: undefined reference to `pj_ioqueue_cfg_default'
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/net-libs/pjproject-2.13/work/pjproject-2.13/pjlib/build/../src/pjlib-test/ioq_perf.c:624: undefined reference to `pj_ioqueue_cfg_default'
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/net-libs/pjproject-2.13/work/pjproject-2.13/pjlib/build/../src/pjlib-test/ioq_perf.c:643: undefined reference to `pj_ioqueue_cfg_default'

Reproducible: Always

Steps to Reproduce:
1. emerge -1 pjproject
Comment 1 George Diamantopoulos 2022-12-15 16:15:46 UTC
Created attachment 842899 [details]
pjproject-2.13 build log
Comment 2 George Diamantopoulos 2022-12-15 16:16:10 UTC
Created attachment 842901 [details]
output of emerge --info
Comment 3 Jaco Kroon 2022-12-17 08:44:39 UTC
Hi George,

Can you confirm that USE=-sdl fixes this for you?  I have managed to reproduce, so will CONFIRM the bug, but honestly don't have capacity right at the moment to look at this, possibly next week.

If you're using this with asterisk you can use USE=-sdl in the meantime to get past this, but this is definitely an issue that needs addressing.

Kind Regards,
Comment 4 George Diamantopoulos 2022-12-17 10:30:27 UTC
Hello Jaco,

Thanks for looking into this. Indeed, it builds fine without sdl. I only need this for asterisk at the moment, so I'm good without SDL support.

Comment 5 Jaco Kroon 2023-05-16 10:32:50 UTC

I just remerged the above twice with USE=sdl ... and for a moment I was seriously WTF, but then:

jkroon@plastiekpoot /usr/lib64 $ ldd libpj*.so | grep -i sdl => /usr/lib64/ (0x00007f297f97c000) => /usr/lib64/ (0x00007f756cb7c000) => /usr/lib64/ (0x00007f835757c000) => /usr/lib64/ (0x00007f0ca8867000) => /usr/lib64/ (0x00007f0fb0ea3000) => /usr/lib64/ (0x00007f1b6c2a3000) => /usr/lib64/ (0x00007f60ae8a3000) => /usr/lib64/ (0x00007f30c08a3000) => /usr/lib64/ (0x00007f708177c000) => /usr/lib64/ (0x00007f2a47aa3000) => /usr/lib64/ (0x00007f1f3797c000) => /usr/lib64/ (0x00007fa4c477c000)

So the dependency was wrong, we need libsdl2, not libsdl.
Comment 6 Larry the Git Cow gentoo-dev 2023-05-18 05:00:48 UTC
The bug has been closed via the following commit(s):

commit e5e12640cc45f155ede76c5501a331824f13784b
Author:     Jaco Kroon <>
AuthorDate: 2023-05-16 10:32:58 +0000
Commit:     John Helmert III <>
CommitDate: 2023-05-18 04:56:41 +0000

    net-libs/pjproject: fix libsdl dependency.
    Signed-off-by: Jaco Kroon <>
    Signed-off-by: John Helmert III <>

 net-libs/pjproject/pjproject-2.13-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)