From nobody Wed Apr 13 20:51:26 2022 X-Original-To: toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C70561B49100 for ; Wed, 13 Apr 2022 20:51:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kdvrt4Y3sz3tPb for ; Wed, 13 Apr 2022 20:51:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 783EE13507 for ; Wed, 13 Apr 2022 20:51:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 23DKpQxm099140 for ; Wed, 13 Apr 2022 20:51:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 23DKpQ3N099139 for toolchain@FreeBSD.org; Wed, 13 Apr 2022 20:51:26 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 263265] The port audio/dexed fails to build: error: undefined symbol: environ Date: Wed, 13 Apr 2022 20:51:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649883086; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OJEKtnXZYYv2ySKRGT6fH09zje1FBjFTQvmXA3GBsqA=; b=xsAA5L/FS29R3cnuceQMdONA5gP/01TG1yv6YXnI+X+z/Di1JxekfXqvMH/WnHuWDWtRaZ XDI7Qpz8cRUuBMhcK4cCW18tTq0RJ1GBlRe9eV8a3N6KQSKNj5T2063KpDpFsZT7uzKxua nvma2zpxt1YR03YXNXBi97D8f/pBTjI9+1aGOGCm3SFph3OBdYH3zkFXE6SA1HnKTAoOsz aFERtLw4NflFJKiZrT5hWWdIh2nwY+57d4EUJqSvi56VgxF+i6+sqBy2ng58j14rXif/DO CcFe8i+LO8SGpmCJzbqdFVO6VCZx2W1o32mObxtK11YWrEu4QnXMw01gjHCDVg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649883086; a=rsa-sha256; cv=none; b=wZkv3J5xAATPcpQak5m828XAXen5Nc4fvtGc7gEdBoYjI3wTCiha4hwf9eumtxi+lFcZmW CIE/kWoXXuRlJhK4NR0mNYURBLnzTucOSr8ilirOx4dWarvy4BkC0wWjGaQ0d4hkDD9Jph 9X7jLsNyE3omwUovqSPNfKMFwoueXEYos0HxZD1ofK9003IV/Hq2tx2HnPdz8Qha8XG56v O3BgNEkT0z/2Ns3WjhkG9lfxL2jPwoeB18/Xaq3dRxYPcqFrp9gzr7bK7frWjpvEjtciK9 V/ViXiQcAabP7/99hGLWAyOE2d22Qte3SKn9wU6EMxe2FSqVjiwb3D/FmoFSCA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263265 --- Comment #2 from Dimitry Andric --- 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.=