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=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 9CF261F463 for ; Thu, 26 Sep 2019 06:59:54 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 8C63A120B6D; Thu, 26 Sep 2019 15:59:45 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id 10D25120A63 for ; Thu, 26 Sep 2019 15:59:43 +0900 (JST) Received: by filter0099p3las1.sendgrid.net with SMTP id filter0099p3las1-4290-5D8C61DF-53 2019-09-26 06:59:43.90546128 +0000 UTC m=+216826.603132897 Received: from herokuapp.com (unknown [34.207.207.12]) by ismtpd0074p1mdw1.sendgrid.net (SG) with ESMTP id gDlq2WDQSgS-ZiYpCXTKJg for ; Thu, 26 Sep 2019 06:59:43.627 +0000 (UTC) Date: Thu, 26 Sep 2019 06:59:43 +0000 (UTC) From: reskumar@in.ibm.com Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 70652 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 16179 X-Redmine-Issue-Author: Reshma X-Redmine-Sender: Reshma 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?AWHwGjdzfk8oeqLHoZjFhF2kwHAV+V8W7qo9j1gWFH5w5i1bUpB6acETGOQl38?= =?us-ascii?Q?UMxpapayFLasRQbcfp8ty5aCxRrNzlByTV+Peix?= =?us-ascii?Q?aZMnJBHnYjOXdv+6w643QRzuibnVYcZnjf+lVsw?= =?us-ascii?Q?uvW4ZW0fRqhQQFsWKleLPSnybEsmy4e8WEmuofg?= =?us-ascii?Q?X0XnCJl+JBqNQhkbZ0OqUif0dRgrjGuAn4w=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 95097 Subject: [ruby-core:95097] [Ruby master Bug#16179] ruby binaries generate "already initialized constant" warnings 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 Reshma (Reshma Kumar). File ruby_output.log.docx added Yes, it is same as that in irb. I have attached a log of the output. ---------------------------------------- Bug #16179: ruby binaries generate "already initialized constant" warnings https://bugs.ruby-lang.org/issues/16179#change-81732 * Author: Reshma (Reshma Kumar) * Status: Open * 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/