ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:95072] [Ruby master Bug#16179] ruby binaries generate "already initialized constant" warnings
       [not found] <redmine.issue-16179.20190925023303@ruby-lang.org>
@ 2019-09-25  2:33 ` reskumar
  2019-09-25  7:14 ` [ruby-core:95078] " nobu
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: reskumar @ 2019-09-25  2:33 UTC (permalink / raw)
  To: 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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:95078] [Ruby master Bug#16179] ruby binaries generate "already initialized constant" warnings
       [not found] <redmine.issue-16179.20190925023303@ruby-lang.org>
  2019-09-25  2:33 ` [ruby-core:95072] [Ruby master Bug#16179] ruby binaries generate "already initialized constant" warnings reskumar
@ 2019-09-25  7:14 ` nobu
  2019-09-26  6:59 ` [ruby-core:95097] " reskumar
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: nobu @ 2019-09-25  7:14 UTC (permalink / raw)
  To: 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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:95097] [Ruby master Bug#16179] ruby binaries generate "already initialized constant" warnings
       [not found] <redmine.issue-16179.20190925023303@ruby-lang.org>
  2019-09-25  2:33 ` [ruby-core:95072] [Ruby master Bug#16179] ruby binaries generate "already initialized constant" warnings reskumar
  2019-09-25  7:14 ` [ruby-core:95078] " nobu
@ 2019-09-26  6:59 ` reskumar
  2019-10-15  0:16 ` [ruby-core:95321] [Ruby master Bug#16179] ruby binaries generate "already initialized constant" warnings on AIX 6.1 merch-redmine
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: reskumar @ 2019-09-26  6:59 UTC (permalink / raw)
  To: 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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:95321] [Ruby master Bug#16179] ruby binaries generate "already initialized constant" warnings on AIX 6.1
       [not found] <redmine.issue-16179.20190925023303@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2019-09-26  6:59 ` [ruby-core:95097] " reskumar
@ 2019-10-15  0:16 ` merch-redmine
  2019-10-15 12:17 ` [ruby-core:95331] " reskumar
  2019-10-15 14:47 ` [ruby-core:95335] " merch-redmine
  5 siblings, 0 replies; 6+ messages in thread
From: merch-redmine @ 2019-10-15  0:16 UTC (permalink / raw)
  To: ruby-core

Issue #16179 has been updated by jeremyevans0 (Jeremy Evans).

Status changed from Open to Feedback
Subject changed from ruby binaries generate "already initialized constant" warnings to ruby binaries generate "already initialized constant" warnings on AIX 6.1

Here's the results of `$:` extracted from the uploaded .docx log:

```
/opt/freeware/lib64/ruby/gems/2.6.0/gems/did_you_mean-1.3.0/lib
/opt/freeware/lib64/ruby/site_ruby/2.6.0
/opt/freeware/lib64/ruby/site_ruby/2.6.0/powerpc-aix6.1.0.0
/opt/freeware/lib64/ruby/site_ruby
/opt/freeware/lib64/ruby/vendor_ruby/2.6.0
/opt/freeware/lib64/ruby/vendor_ruby/2.6.0/powerpc-aix6.1.0.0
/opt/freeware/lib64/ruby/vendor_ruby
/opt/freeware/lib64/ruby/2.6.0
/opt/freeware/lib64/ruby/2.6.0/powerpc-aix6.1.0.0
```

In the future, please only upload plain text files (or just inline small amounts of text), uploading files in Word format can make it much more difficult to get access to the information.

Can you show the full `configure` options you are using for both 32bit and 64bit builds?

----------------------------------------
Bug #16179: ruby binaries generate "already initialized constant" warnings on AIX 6.1
https://bugs.ruby-lang.org/issues/16179#change-82027

* 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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:95331] [Ruby master Bug#16179] ruby binaries generate "already initialized constant" warnings on AIX 6.1
       [not found] <redmine.issue-16179.20190925023303@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2019-10-15  0:16 ` [ruby-core:95321] [Ruby master Bug#16179] ruby binaries generate "already initialized constant" warnings on AIX 6.1 merch-redmine
@ 2019-10-15 12:17 ` reskumar
  2019-10-15 14:47 ` [ruby-core:95335] " merch-redmine
  5 siblings, 0 replies; 6+ messages in thread
From: reskumar @ 2019-10-15 12:17 UTC (permalink / raw)
  To: 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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:95335] [Ruby master Bug#16179] ruby binaries generate "already initialized constant" warnings on AIX 6.1
       [not found] <redmine.issue-16179.20190925023303@ruby-lang.org>
                   ` (4 preceding siblings ...)
  2019-10-15 12:17 ` [ruby-core:95331] " reskumar
@ 2019-10-15 14:47 ` merch-redmine
  5 siblings, 0 replies; 6+ messages in thread
From: merch-redmine @ 2019-10-15 14:47 UTC (permalink / raw)
  To: 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/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-10-15 14:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-16179.20190925023303@ruby-lang.org>
2019-09-25  2:33 ` [ruby-core:95072] [Ruby master Bug#16179] ruby binaries generate "already initialized constant" warnings reskumar
2019-09-25  7:14 ` [ruby-core:95078] " nobu
2019-09-26  6:59 ` [ruby-core:95097] " reskumar
2019-10-15  0:16 ` [ruby-core:95321] [Ruby master Bug#16179] ruby binaries generate "already initialized constant" warnings on AIX 6.1 merch-redmine
2019-10-15 12:17 ` [ruby-core:95331] " reskumar
2019-10-15 14:47 ` [ruby-core:95335] " merch-redmine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).