[Bug 268065] multimedia/gstreamer1: build of gstreamer1-1.20.4 fails
Date: Wed, 26 Jul 2023 01:28:33 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268065
Mikhail T. <mi@ALDAN.algebra.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mi@ALDAN.algebra.com
--- Comment #7 from Mikhail T. <mi@ALDAN.algebra.com> ---
Created attachment 243619
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=243619&action=edit
Remove the first -L${PREFIX}/lib from link-lines
This remains a problem today with 1.22.5 -- the issue should've been reported
upstream, when first encountered. Chances are, it would've been fixed by now.
That UPDATING-entry was an admission of defeat: "We know of the problem, we
cannot fix it" :-(
The root cause is that the linker line lists the library directories thus:
-L${WRKSRC}/_build/gst
-L${LOCALBASE}/lib
-L${WRKSRC}/_build/libs/gst/base
-L${WRKSRC}/_build/gst
-L${LOCALBASE}/lib -L${LOCALBASE}/lib
The ${LOCALBASE}/lib/libgstbase-1.0.so.0.1602.0, which I currently have
installed, does NOT have this function defined, but it is picked up first,
because ${LOCALBASE}/lib is listed before the ${WRKSRC}/_build/libs/gst/base.
Notably, this is not a problem for the compile-stage -- the -I arguments list
${LOCALBASE}/include last. But -L ones are wrong...
The proposed patch offers one way to solve this -- a hackish way, because I
don't know, how meson/ninja are supposed to work. There should be a better way
-- and the port's maintainer should have the upstream figure it out.
The patch also fixes the spaces in a few spots -- replacing them with tabs.
Feel free to ignore those hunks, concentrating on just the new post-configure
target.
--
You are receiving this mail because:
You are the assignee for the bug.