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 2. 3.
Created attachment 842899 [details] pjproject-2.13 build log
Created attachment 842901 [details] output of emerge --info
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, Jaco
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. BR, George
net-libs/pjproject-2.13-r1:0/2.13::gentoo 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 libSDL2-2.0.so.0 => /usr/lib64/libSDL2-2.0.so.0 (0x00007f297f97c000) libSDL2-2.0.so.0 => /usr/lib64/libSDL2-2.0.so.0 (0x00007f756cb7c000) libSDL2-2.0.so.0 => /usr/lib64/libSDL2-2.0.so.0 (0x00007f835757c000) libSDL2-2.0.so.0 => /usr/lib64/libSDL2-2.0.so.0 (0x00007f0ca8867000) libSDL2-2.0.so.0 => /usr/lib64/libSDL2-2.0.so.0 (0x00007f0fb0ea3000) libSDL2-2.0.so.0 => /usr/lib64/libSDL2-2.0.so.0 (0x00007f1b6c2a3000) libSDL2-2.0.so.0 => /usr/lib64/libSDL2-2.0.so.0 (0x00007f60ae8a3000) libSDL2-2.0.so.0 => /usr/lib64/libSDL2-2.0.so.0 (0x00007f30c08a3000) libSDL2-2.0.so.0 => /usr/lib64/libSDL2-2.0.so.0 (0x00007f708177c000) libSDL2-2.0.so.0 => /usr/lib64/libSDL2-2.0.so.0 (0x00007f2a47aa3000) libSDL2-2.0.so.0 => /usr/lib64/libSDL2-2.0.so.0 (0x00007f1f3797c000) libSDL2-2.0.so.0 => /usr/lib64/libSDL2-2.0.so.0 (0x00007fa4c477c000) So the dependency was wrong, we need libsdl2, not libsdl.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5e12640cc45f155ede76c5501a331824f13784b commit e5e12640cc45f155ede76c5501a331824f13784b Author: Jaco Kroon <jaco@uls.co.za> AuthorDate: 2023-05-16 10:32:58 +0000 Commit: John Helmert III <ajak@gentoo.org> CommitDate: 2023-05-18 04:56:41 +0000 net-libs/pjproject: fix libsdl dependency. Closes: https://bugs.gentoo.org/886151 Signed-off-by: Jaco Kroon <jaco@uls.co.za> Closes: https://github.com/gentoo/gentoo/pull/31056 Signed-off-by: John Helmert III <ajak@gentoo.org> net-libs/pjproject/pjproject-2.13-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)