From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: * X-Spam-Status: No, score=1.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, SPF_PASS,URIBL_GREY autolearn=no autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [IPv6:2a01:4f8:1c0c:6b10::1]) (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) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id BF7F61F452 for ; Wed, 12 Apr 2023 13:48:22 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; secure) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=zUuGX42f; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=sendgrid.net header.i=@sendgrid.net header.a=rsa-sha256 header.s=smtpapi header.b=PKO/xan8; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id DF42E7F083; Wed, 12 Apr 2023 13:48:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1681307293; bh=Gc69TkhcIQyh0NxY2JZxmgmKmh/F/rkJOY1xMSez+b8=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=zUuGX42fKJiMzLM2Ha5GyP+rIzl8Fv54sLhZsUtYSY37LJ2TkOXORbQBAk2anPAOZ nHhWPQdOggtgY2OqwQk3+/lDwIrrUaTObklm0WOV+siFbvXz3RxeXuNN3T83vssJy5 vdjrf3GBRQ4mCRBhmANrzgKOdfbqzNmwtQR3QiMU= Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 6DCC87F052 for ; Wed, 12 Apr 2023 13:48:10 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (1024-bit key; unprotected) header.d=sendgrid.net header.i=@sendgrid.net header.a=rsa-sha256 header.s=smtpapi header.b=PKO/xan8; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sendgrid.net; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=smtpapi; bh=ZlOpO6q2+5cERgl18UjfObMfpxANhPLrNo+VXnLS1jQ=; b=PKO/xan8w7v1LW+0BTkIsyHmi4TGcviMAwZT3plGyVZDOB+/j8QRwfIFS91KUOBEQIpi XwkjQpl/pbhgIUr/ddM80TarG33AD4a4htEHWGBudh73xk8l0Imfh9EAF1EyQF/zWcT6Ac Kp5iyA3tX/5czCKvZG0EfRQxF2HZQX4io= Received: by filterdrecv-7946957d94-sf488 with SMTP id filterdrecv-7946957d94-sf488-1-6436B698-9 2023-04-12 13:48:08.182833273 +0000 UTC m=+4284975.856078204 Received: from herokuapp.com (unknown) by geopod-ismtpd-15 (SG) with ESMTP id K10Wf6vXSNGJvEGTvY3QZQ for ; Wed, 12 Apr 2023 13:48:08.054 +0000 (UTC) Date: Wed, 12 Apr 2023 13:48:08 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 19592 X-Redmine-Issue-Author: npic1 X-Redmine-Sender: npic1 X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 89617 X-SG-EID: =?us-ascii?Q?TLCOuecZMYGO+erYY9olCCTRJVED5ZmR0SaN8rWwXAGNi7W4PubzQZAzWzBl5J?= =?us-ascii?Q?Hv+gvpeuQEsdq0buIOkKStemkz5CqZ+ECvzO9sl?= =?us-ascii?Q?0mNvJA+MtBxp52Lh8pWDuNt3O7CFqXAVZvy+c+Q?= =?us-ascii?Q?Y7pnpKYd9FPw5g20OJy2PErGscRMB91t6gqCiNq?= =?us-ascii?Q?a5jESoNy=2F5tj=2FsT9ZNAwW5xPQdFFJkQN8T8CQzt?= =?us-ascii?Q?jkh2ZsVZvbZhkUlDyElE2wxWJ0co5gDdKScK916?= =?us-ascii?Q?FzTHg6cPpPKdXXUp28L7g=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== Message-ID-Hash: CJPLMSNA6JYGQBBCFTDH6COU636ZENUY X-Message-ID-Hash: CJPLMSNA6JYGQBBCFTDH6COU636ZENUY X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@sendgrid.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:113195] [Ruby master Bug#19592] Unable to statically link a single extension in 3.2.x and >3.1.4 List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "npic1 (Nat Pic1) via ruby-core" Cc: "npic1 (Nat Pic1)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #19592 has been reported by npic1 (Nat Pic1). ---------------------------------------- Bug #19592: Unable to statically link a single extension in 3.2.x and >3.1.4 https://bugs.ruby-lang.org/issues/19592 * Author: npic1 (Nat Pic1) * Status: Open * Priority: Normal * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- Hi, I need to statically link a single extension (not all of them) by adding it to ext/Setup. This worked until version 3.1.4 and 3.2.x. It appears that this change broke it: [https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/790cf4b6d0475614afb127b416e87cfa39044d67](https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/790cf4b6d0475614afb127b416e87cfa39044d67) [https://github.com/ruby/ruby/pull/6756](https://github.com/ruby/ruby/pull/6756). I have attached a script to reproduce the issue. When running the script, `ldd` fails with: ``` ext/extinit.o: in function `Init_ext': extinit.c:(.text+0x10): undefined reference to `ruby_init_ext' ``` ---Files-------------------------------- ruby_static_test.sh (1.57 KB) -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/