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 C8E4A1F463 for ; Wed, 25 Sep 2019 02:33:10 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id B89AB120A4C; Wed, 25 Sep 2019 11:33:02 +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 F295F120A4A for ; Wed, 25 Sep 2019 11:32:59 +0900 (JST) Received: by filter0100p3iad2.sendgrid.net with SMTP id filter0100p3iad2-12176-5D8AD1DF-58 2019-09-25 02:33:03.668758607 +0000 UTC m=+108508.007244249 Received: from herokuapp.com (unknown [54.157.43.252]) by ismtpd0007p1iad2.sendgrid.net (SG) with ESMTP id BqLF837ITRS1Dd26r7fTQg for ; Wed, 25 Sep 2019 02:33:03.644 +0000 (UTC) Date: Wed, 25 Sep 2019 02:33:03 +0000 (UTC) From: reskumar@in.ibm.com Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 70627 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+V8W7qo9j1gWFH5NVKp8arlbi2ItxgmMMk?= =?us-ascii?Q?3s9JKhjhclD8KRGo73Mn=2Flc3lYtRIj0oeahaNUy?= =?us-ascii?Q?st0I6OMiTDoI+P=2FZZG79jm8YGCC3o7FlM+f7+7y?= =?us-ascii?Q?jY73lfevJECrDxulfOgbfaMAlaOJVeJA8Whn17i?= =?us-ascii?Q?QTDp211h5vgbmA2Ca054fNkEu23ygpHHlHQ=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 95072 Subject: [ruby-core:95072] [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 reported by Reshma (Reshma Kumar). ---------------------------------------- Bug #16179: ruby binaries generate "already initialized constant" warnings https://bugs.ruby-lang.org/issues/16179 * 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? -- https://bugs.ruby-lang.org/