From nobody Mon Jul 4 00:43:31 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 2E4C487E7BE for ; Mon, 4 Jul 2022 00:43:31 +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 4Lbn9H03y6z4nKX for ; Mon, 4 Jul 2022 00:43:31 +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 D31802EF82 for ; Mon, 4 Jul 2022 00:43:30 +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 2640hUuu027413 for ; Mon, 4 Jul 2022 00:43:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2640hUck027412 for toolchain@FreeBSD.org; Mon, 4 Jul 2022 00:43:30 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 - when a shared library using environ is linked with -Wl,--no-undefined Date: Mon, 04 Jul 2022 00:43:31 +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: marklmi26-fbsd@yahoo.com 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=1656895411; 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=YstFNuvcF4LnKwVnSR0FnlmSD6MUqn6PgWAQNJp9UuA=; b=ZZwdLx+oyHQF2j1yX4izz8hKumlVJXv872fZX/Va7xaXOiPE7uSVggL4r7ueCEYLbjTywY frbDzJlhzzQgLdwf/N84uUe4O3tWOfDm0PoVUyTmYXgIWlBRUEDLIroV6ELR5WV+GJA2pW MaixK2AC5+udGKTetEr2BMXXlAytZBp0zg8HWbVEAIA58UEXTTfWSNNuNL3XZVX6S7FUg0 Dd5AM9g8ebWEC3gKd9vbpQ3XkcoYt9uI0/ZPIqFwyy8+AlypmvdKxJ1sMPJr62T+wWhoeM 0WuPGY6cAWtvSxm2/Pq2T27x1uaZdmMnmsd56xCA9EKgSYVnlQ86WZvyZ5J/4g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656895411; a=rsa-sha256; cv=none; b=MEQ7qGrXWRzkN1vBO9v8GeGN54k2zdLqu19CAAWlWa6MMGzA94a5aoNLX0p1YYrCu/I4w6 tUSf2s6cLF0tC59/Mm/5taFUBPMUfCLdMq3noXUOWEHkN7tgOLfnVo9CtXFr7ztPwi01v3 NBj2uy6EFRQIll5K9dWSoCdjJ7+m1dINCjvjAbsehYiJiGTvZAOHHQe+dBvLrW0M24Ff10 xLqHZL5qZe01CdyN2uWsg/cTOdcZQuX/hqCYryd/UXyH7cJ7z9yHqoEoQ9Xh1SqS9kjNdJ 1uLiD4WNyYgTHhZTx+NlXM0qC0KPegFRKr8EZu5GGakH3aXFfNTDdWWuCWtJZQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263265 --- Comment #8 from Mark Millard --- (In reply to Yuri Victorovich from comment #0) I tried looking up environ for POSIX via: https://pubs.opengroup.org/onlinepubs/9699919799/ and I did not find any criteria for dlopen handling or related material. I just found the following: QUOTE When a C-language program is executed as a result of a call to one of the e= xec family of functions, it shall be entered as a C-language function call as follows: int main (int argc, char *argv[]); where argc is the argument count and argv is an array of character pointers= to the arguments themselves. In addition, the following variable, which must be declared by the user if it is to be used directly: extern char **environ; END QUOTE So far as I can tell, FreeBSD's somewhat unusual handling is conformant with POSIX and programs that do not work on FreeBSD because of what this report is about have gone beyond what POSIX indicates. I'm not aware of other standards covering environ that are not more operating-system-family specific. (If I've missed something in POSIX, feel free to let me know.) (environ is not from a C language standard vintage.) None of that dictates what FreeBSD should do. But POSIX compliance would not seem to be a contribution to the choices made (so long as FreeBSD stays compliant for environ). It may be that FreeBSD should explicitly document the issue. So far as I can tell, the addition of such documentation to environ(7) would not contradict the existing description of FreeBSD's environ handling. It would just be new material. --=20 You are receiving this mail because: You are the assignee for the bug.=