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 F375E1F4C0 for ; Tue, 15 Oct 2019 12:17:58 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 719791209EE; Tue, 15 Oct 2019 21:17:48 +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 12E191209EC for ; Tue, 15 Oct 2019 21:17:44 +0900 (JST) Received: by filter0088p3las1.sendgrid.net with SMTP id filter0088p3las1-5081-5DA5B8E4-5A 2019-10-15 12:17:40.661088437 +0000 UTC m=+328772.786013463 Received: from herokuapp.com (unknown [52.91.31.13]) by ismtpd0038p1mdw1.sendgrid.net (SG) with ESMTP id 6m9s7Yc5RYudMh-3bxsPaQ for ; Tue, 15 Oct 2019 12:17:40.519 +0000 (UTC) Date: Tue, 15 Oct 2019 12:17:40 +0000 (UTC) From: reskumar@in.ibm.com Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 70919 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+V8W7qo9j1gWFH4jAspwPsN3p4G1rFuO6Z?= =?us-ascii?Q?v6oQrQmPufF2BrXDUa=2F0tTf7gloGQb5jDqbM3CF?= =?us-ascii?Q?YW7dr1nfooiFYSLE5Qm8e26a9xmzesvT7+MuZ85?= =?us-ascii?Q?y718xcbJrE2Iwy8jEH28Ce93OcczLRr9OiG4Mju?= =?us-ascii?Q?7=2FWVQbKXtllDoWUQPGsz04lFy8yKKeKlWrw=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 95331 Subject: [ruby-core:95331] [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 Reshma (Reshma Kumar). 64bit ----- ./configure \ --host=powerpc-ibm-aix6.1.0.0 --target=powerpc-ibm-aix6.1.0.0 --build=powerpc-ibm-aix6.1.0.0 \ --prefix=/opt/freeware \ --libdir=/opt/freeware/lib64 \ --libexecdir=/opt/freeware/lib64 \ --disable-rpath \ --enable-pthread \ --enable-shared \ --disable-static 32bit ----- ./configure \ --host=powerpc-ibm-aix6.1.0.0 --target=powerpc-ibm-aix6.1.0.0 --build=powerpc-ibm-aix6.1.0.0 \ --prefix=/opt/freeware \ --libdir=/opt/freeware/lib \ --libexecdir=/opt/freeware/lib \ --disable-rpath \ --enable-pthread \ --enable-shared \ --disable-static ---------------------------------------- Bug #16179: ruby binaries generate "already initialized constant" warnings on AIX 6.1 https://bugs.ruby-lang.org/issues/16179#change-82040 * 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/