Skip to content
This repository

Compilation error with -ansi -std=iso9899:199409 #142

Closed
kinpoco opened this Issue July 25, 2012 · 2 comments

2 participants

Yutaka Kanemoto Florian Frank
Yutaka Kanemoto

Currently, ruby uses these two options for gcc : -ansi -std=iso9899:199409.
This leads to compilation error on AIX when compiling generator.c.
We can avoid this compilation error by reordering #include in fbuffer.h.
On AIX, we need to include ruby.h before standard include files to use some defines in ruby's config.h.

Could you please reorder #include in fbuffer.h like this?

diff --git a/ext/json/fbuffer/fbuffer.h b/ext/json/fbuffer/fbuffer.h
index f7c2b03..0c53296 100644
--- a/ext/json/fbuffer/fbuffer.h
+++ b/ext/json/fbuffer/fbuffer.h
@@ -2,8 +2,8 @@
#ifndef FBUFFER_H
#define FBUFFER_H

-#include
#include "ruby.h"
+#include

#ifdef HAVE_RUBY_ENCODING_H
#include "ruby/encoding.h"

Florian Frank flori closed this in baad45a July 25, 2012
Yutaka Kanemoto

Thank you very much for the prompt action!

Florian Frank
Owner
flori commented July 26, 2012

I just released version 1.7.4 that includes this fix.

Florian Frank flori referenced this issue from a commit August 17, 2012
Commit has since been removed from the repository and is no longer available.
Jonathan Perkin jperkin referenced this issue from a commit in joyent/pkgsrc September 16, 2012
Update ruby-json and ruby-json-pure package to 1.7.4.
2012-07-26 (1.7.4)
  * Fix compilation problem on AIX, see flori/json#142
cc5bfb7
Sandor Szücs szuecs referenced this issue from a commit in szuecs/ruby July 25, 2012
avoid compilation error on AIX by -ansi -std=iso9899:199409 (r36038).…
… [ruby-core:46744] [Bug #6791].

This issue is fixed in upper stream as issue #142. (flori/json#142)



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
48cb947
Aaron Patterson tenderlove referenced this issue from a commit in tenderlove/ruby July 25, 2012
avoid compilation error on AIX by -ansi -std=iso9899:199409 (r36038).…
… [ruby-core:46744] [Bug #6791].

This issue is fixed in upper stream as issue #142. (flori/json#142)



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
77af3c6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.