Project

General

Profile

Bug #9406

bigdecimal 1.2.4 install fail because missing ruby/util.h macro

Added by jonforums (Jon Forums) over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
-
Backport:
[ruby-core:<unknown>]

Description

2.0.0 ruby/util.h is missing this trunk macro

http://paste.ubuntu.com/6748376/

which causes this failure

http://paste.ubuntu.com/6747904/

Manually patching util.h with the trunk macro fixes gem install fail

http://paste.ubuntu.com/6748414/


Related issues

Has duplicate Ruby trunk - Bug #9412: bigdecimal 1.2.4 fail to compile on windowsClosed2014-01-14
Has duplicate Ruby trunk - Bug #9407: bigdecimal 1.2.4 install fail because missing ruby/util.h macroClosed2014-01-14

Associated revisions

Revision 44593
Added by nobu (Nobuyoshi Nakada) over 3 years ago

bigdecimal.c: backword compatibility as gem

  • ext/bigdecimal/bigdecimal.c (DECIMAL_SIZE_OF_BITS): fallback definition for 2.1 or older. [Backport #9406]
  • ext/bigdecimal/bigdecimal.c (raise_with_class): fallback definition for 1.9.

Revision 44593
Added by nobu (Nobuyoshi Nakada) over 3 years ago

bigdecimal.c: backword compatibility as gem

  • ext/bigdecimal/bigdecimal.c (DECIMAL_SIZE_OF_BITS): fallback definition for 2.1 or older. [Backport #9406]
  • ext/bigdecimal/bigdecimal.c (raise_with_class): fallback definition for 1.9.

Revision 44593
Added by nobu (Nobuyoshi Nakada) over 3 years ago

bigdecimal.c: backword compatibility as gem

  • ext/bigdecimal/bigdecimal.c (DECIMAL_SIZE_OF_BITS): fallback definition for 2.1 or older. [Backport #9406]
  • ext/bigdecimal/bigdecimal.c (raise_with_class): fallback definition for 1.9.

Revision 44593
Added by nobu (Nobuyoshi Nakada) over 3 years ago

bigdecimal.c: backword compatibility as gem

  • ext/bigdecimal/bigdecimal.c (DECIMAL_SIZE_OF_BITS): fallback definition for 2.1 or older. [Backport #9406]
  • ext/bigdecimal/bigdecimal.c (raise_with_class): fallback definition for 1.9.

Revision 44594
Added by nobu (Nobuyoshi Nakada) over 3 years ago

bigdecimal.c: backword compatibility as gem

  • ext/bigdecimal/bigdecimal.c (CLASS_NAME): macro to wrap depending on PRIsVALUE for 1.9. [Backport #9406]

Revision 44594
Added by nobu (Nobuyoshi Nakada) over 3 years ago

bigdecimal.c: backword compatibility as gem

  • ext/bigdecimal/bigdecimal.c (CLASS_NAME): macro to wrap depending on PRIsVALUE for 1.9. [Backport #9406]

Revision 44594
Added by nobu (Nobuyoshi Nakada) over 3 years ago

bigdecimal.c: backword compatibility as gem

  • ext/bigdecimal/bigdecimal.c (CLASS_NAME): macro to wrap depending on PRIsVALUE for 1.9. [Backport #9406]

Revision 44594
Added by nobu (Nobuyoshi Nakada) over 3 years ago

bigdecimal.c: backword compatibility as gem

  • ext/bigdecimal/bigdecimal.c (CLASS_NAME): macro to wrap depending on PRIsVALUE for 1.9. [Backport #9406]

History

#1 Updated by jonforums (Jon Forums) over 3 years ago

With no patch to util.h, bigdecimal 1.2.4 installs ok on 64bit linux in both 2.0.0 and 2.1.1

jon@ubusvr64:~$ uru gem up bigdecimal

ruby 2.0.0p384 (2014-01-12 revision 44576) [x86_64-linux]

Updating installed gems
Updating bigdecimal
Fetching: bigdecimal-1.2.4.gem (100%)
Building native extensions.  This could take a while...
Successfully installed bigdecimal-1.2.4
Gems updated: bigdecimal

ruby 2.1.1p5 (2014-01-11 revision 44557) [x86_64-linux]

Updating installed gems
Updating bigdecimal
Fetching: bigdecimal-1.2.4.gem (100%)
Building native extensions.  This could take a while...
Successfully installed bigdecimal-1.2.4
Gems updated: bigdecimal

jon@ubusvr64:~$ uru gem li bigdecimal

ruby 2.0.0p384 (2014-01-12 revision 44576) [x86_64-linux]

*** LOCAL GEMS ***
bigdecimal (1.2.4, 1.2.3, 1.2.0)

ruby 2.1.1p5 (2014-01-11 revision 44557) [x86_64-linux]

*** LOCAL GEMS ***
bigdecimal (1.2.4, 1.2.3)

#2 Updated by nobu (Nobuyoshi Nakada) over 3 years ago

  • Has duplicate Bug #9412: bigdecimal 1.2.4 fail to compile on windows added

#3 Updated by nobu (Nobuyoshi Nakada) over 3 years ago

  • Tracker changed from Backport to Bug
  • Project changed from Backport200 to Ruby trunk
  • Category set to ext
  • Status changed from Open to Closed
  • Assignee changed from nagachika (Tomoyuki Chikanaga) to mrkn (Kenta Murata)

Added macros for backword compatibilities at r44593 and r44594.

Next release of bigdecimal gem will fix this.

#4 Updated by nobu (Nobuyoshi Nakada) over 3 years ago

  • ruby -v changed from ruby 2.0.0p384 (2014-01-12 revision 44576) [i386-mingw32] to -

Issue #9406 has been updated by Nobuyoshi Nakada.

Tracker changed from Backport to Bug
Project changed from Backport200 to ruby-trunk
Category set to ext
Status changed from Open to Closed
Assignee changed from Tomoyuki Chikanaga to Kenta Murata

Added macros for backword compatibilities at r44593 and r44594.

Next release of bigdecimal gem will fix this.


Bug #9406: bigdecimal 1.2.4 install fail because missing ruby/util.h macro
https://bugs.ruby-lang.org/issues/9406#change-44316

  • Author: Jon Forums
  • Status: Closed
  • Priority: Normal
  • Assignee: Kenta Murata
  • Category: ext
  • Target version:
  • ruby -v: ruby 2.0.0p384 (2014-01-12 revision 44576) [i386-mingw32]
  • Backport: ---------------------------------------- 2.0.0 ruby/util.h is missing this trunk macro

http://paste.ubuntu.com/6748376/

which causes this failure

http://paste.ubuntu.com/6747904/

Manually patching util.h with the trunk macro fixes gem install fail

http://paste.ubuntu.com/6748414/

--
http://bugs.ruby-lang.org/

#5 Updated by mrkn (Kenta Murata) over 3 years ago

I've released bigdecimal 1.2.5.

#6 Updated by mrkn (Kenta Murata) over 3 years ago

Issue #9406 has been updated by Kenta Murata.

I've released bigdecimal 1.2.5.


Bug #9406: bigdecimal 1.2.4 install fail because missing ruby/util.h macro
https://bugs.ruby-lang.org/issues/9406#change-44346

  • Author: Jon Forums
  • Status: Closed
  • Priority: Normal
  • Assignee: Kenta Murata
  • Category: ext
  • Target version:
  • ruby -v: -
  • Backport: ---------------------------------------- 2.0.0 ruby/util.h is missing this trunk macro

http://paste.ubuntu.com/6748376/

which causes this failure

http://paste.ubuntu.com/6747904/

Manually patching util.h with the trunk macro fixes gem install fail

http://paste.ubuntu.com/6748414/

--
http://bugs.ruby-lang.org/

#7 [ruby-core:60400] Updated by nobu (Nobuyoshi Nakada) over 3 years ago

  • Has duplicate Bug #9407: bigdecimal 1.2.4 install fail because missing ruby/util.h macro added

Also available in: Atom PDF