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
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Jaco Kroon
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
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: ---


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

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
2.
3.
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,
Jaco
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.

BR,
George
Comment 5 Jaco Kroon 2023-05-16 10:32:50 UTC
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.
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):

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(-)