Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Apr 2022 20:51:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        toolchain@FreeBSD.org
Subject:   [Bug 263265] The port audio/dexed fails to build: error: undefined symbol: environ
Message-ID:  <bug-263265-29464-de5qYQTJW1@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-263265-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-263265-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263265

--- Comment #2 from Dimitry Andric <dim@FreeBSD.org> ---
It looks like Dexed.so is being linked with -Wl,--no-undefined. So then the
linker will complain about undefined symbols, of which environ is a special
case. (I think it's supposed to be filled in by rtld at runtime.)

If I remove -Wl,--no-undefined, the program links just fine. I can't really=
 say
anything about what happens at runtime though. :)

In any case, there are two places in dexed where environ is used:

1) libs/JUCE/modules/juce_core/native/juce_linux_Files.cpp retrieves enviro=
n,
then passes it unmodified to execve(2). It could simply use execv(3) instea=
d,
then it would not have to mess with environ at all.

2) libs/vst3sdk/vstgui4/vstgui/lib/platform/linux/x11fileselector.cpp is us=
ing
environ for a hand-rolled way of removing LD_LIBRARY_PATH from the environm=
ent
before forking. It would be much easier and safer if it used unsetenv(3)
instead.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-263265-29464-de5qYQTJW1>