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.8 required=3.0 tests=AWL,BAYES_00, 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 725DB1F463 for ; Wed, 25 Sep 2019 07:14:24 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id C6AA2120B33; Wed, 25 Sep 2019 16:14:16 +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 87E1D120A58 for ; Wed, 25 Sep 2019 16:14:15 +0900 (JST) Received: by filter0039p3iad2.sendgrid.net with SMTP id filter0039p3iad2-24942-5D8B13C9-49 2019-09-25 07:14:17.563925036 +0000 UTC m=+124190.986916812 Received: from herokuapp.com (unknown [184.73.122.220]) by ismtpd0065p1mdw1.sendgrid.net (SG) with ESMTP id O0ml5iO_TPOlNrfkPeOh7A for ; Wed, 25 Sep 2019 07:14:17.531 +0000 (UTC) Date: Wed, 25 Sep 2019 07:14:17 +0000 (UTC) From: nobu@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 70633 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 16179 X-Redmine-Issue-Author: Reshma X-Redmine-Sender: nobu 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?q8Dly+pU2+3ektTtZVXgZtbJPXwqo7p86jCsvYTW4ByZ4uwgBV+Xmz4MF0xwlu?= =?us-ascii?Q?IRoRbDoXru7+vfEmgfgkgSx8zqqCQY9EH1tQZDe?= =?us-ascii?Q?ozVIcnRYMZZ+RbvxLZWY5rzKKOEVy8=2Fdq5WicM0?= =?us-ascii?Q?E0JLe5r=2FSxpx8o60fY9hw5y=2FVZN039xkT99ylB2?= =?us-ascii?Q?eraXJm+eUqDzGx=2F1bhP97knZSXxF4vw=2F4Kw=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 95078 Subject: [ruby-core:95078] [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 nobu (Nobuyoshi Nakada). Status changed from Open to Feedback Description updated Could you show what `ruby -e 'puts $:'` print, and is it same as in irb? ---------------------------------------- Bug #16179: ruby binaries generate "already initialized constant" warnings https://bugs.ruby-lang.org/issues/16179#change-81711 * 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? -- https://bugs.ruby-lang.org/