From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 04E451F4C0 for ; Tue, 15 Oct 2019 14:48:10 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 2428D120A03; Tue, 15 Oct 2019 23:48:00 +0900 (JST) Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id AC1F6120A01 for ; Tue, 15 Oct 2019 23:47:57 +0900 (JST) Received: by filter0138p3mdw1.sendgrid.net with SMTP id filter0138p3mdw1-18118-5DA5DC1D-1D 2019-10-15 14:47:57.142953368 +0000 UTC m=+338450.853916640 Received: from herokuapp.com (unknown [52.91.31.13]) by ismtpd0095p1iad2.sendgrid.net (SG) with ESMTP id ZP2XkDWYRYeC3O1fqQUcyA for ; Tue, 15 Oct 2019 14:47:57.264 +0000 (UTC) Date: Tue, 15 Oct 2019 14:47:57 +0000 (UTC) From: merch-redmine@jeremyevans.net Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 70923 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 16179 X-Redmine-Issue-Author: Reshma X-Redmine-Sender: jeremyevans0 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-SG-EID: =?us-ascii?Q?RVE3t853K5scBhbmJHUzZTFFeVC=2FZSUmHZ0Dc+26wcEi2CTgsF1oz0wTSSxGGN?= =?us-ascii?Q?BIwiL+vakYfcLxpJaEn2=2Fw5Z7CixVlAnpLVaDK0?= =?us-ascii?Q?7g5CM3mWA3hvLGRSaA2CDeDSdTQDs8iX=2FRYN+wz?= =?us-ascii?Q?5IrJYf3tmM2uQKfoyly5cjrNEWN=2FUgKJCgfIwaE?= =?us-ascii?Q?SLo2j8Ubk=2FOr2X4iNaa9hSGlDDCG09TVzDw=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 95335 Subject: [ruby-core:95335] [Ruby master Bug#16179] ruby binaries generate "already initialized constant" warnings on AIX 6.1 X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #16179 has been updated by jeremyevans0 (Jeremy Evans). Try using a different `--prefix` for the 32bit and 64bit versions, and please report whether that fixes the issues. ---------------------------------------- Bug #16179: ruby binaries generate "already initialized constant" warnings on AIX 6.1 https://bugs.ruby-lang.org/issues/16179#change-82044 * Author: Reshma (Reshma Kumar) * Status: Feedback * Priority: Normal * Assignee: * Target version: * ruby -v: 2.6.3 * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN ---------------------------------------- We are building ruby 2.6.3(both 32 and 64bit) on AIX 6.1. The build options used for 64bit build are:- ``` export LDFLAGS="-L/opt/freeware/lib64 -L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib64:/usr/lib:/lib" ``` and for 32bit build are:- ``` export LDFLAGS="-L/opt/freeware/lib -Wl,-blibpath:/opt/freeware/lib:/usr/lib:/lib -Wl,-bmaxdata:0x80000000" ``` After successful build and installation of the package, 64bit and 32bit libraries are installed in /opt/freeware/lib64 and /opt/freeware/lib respectively. There are ruby scripts which are shipped in both /opt/freeware/lib and /opt/freeware/lib64. Execution of irb(both 64bit and 32bit) generates warnings as mentioned below. ``` # irb /opt/freeware/lib/ruby/2.6.0/uri/common.rb:17: warning: already initialized constant URI::REGEXP /opt/freeware/lib64/ruby/2.6.0/uri/common.rb:17: warning: previous definition of REGEXP was here /opt/freeware/lib/ruby/2.6.0/uri/common.rb:18: warning: already initialized constant URI::Parser /opt/freeware/lib64/ruby/2.6.0/uri/common.rb:18: warning: previous definition of Parser was here ``` Any ideas why this could be happening? ---Files-------------------------------- ruby_output.log.docx (13.2 KB) -- https://bugs.ruby-lang.org/