Skip to content

Instantly share code, notes, and snippets.

@stahnma
Created August 24, 2017 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stahnma/082f7349735c9ef3ec97d0f20116479d to your computer and use it in GitHub Desktop.
Save stahnma/082f7349735c9ef3ec97d0f20116479d to your computer and use it in GitHub Desktop.
The git source `git://github.com/puppetlabs/packaging.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure.
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 10.5.0
Using ast 2.2.0
Using fustigit 0.1.4 (was 0.1.3)
Using git 1.3.0
Installing json 1.8.3 with native extensions
Using redis 3.3.3 (was 3.3.1)
Using packaging 0.4.3.225.gb26a29a from git://github.com/puppetlabs/packaging.git (at master@b26a29a)
Using powerpack 0.1.1
Using rainbow 2.1.0
Using ruby-progressbar 1.7.5
Using bundler 1.13.7
Using parser 2.3.0.2
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /home/stahnma/puppet-agent/gems/ruby/2.4.0/gems/json-1.8.3/ext/json/ext/generator
/usr/bin/ruby -r ./siteconf20170824-27307-c68nlm.rb extconf.rb
creating Makefile
current directory: /home/stahnma/puppet-agent/gems/ruby/2.4.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR=" clean
rm -f
rm -f generator.so *.o *.bak mkmf.log .*.time
current directory: /home/stahnma/puppet-agent/gems/ruby/2.4.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR="
gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DJSON_GENERATOR -fPIC -O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-mtune=generic -fPIC -m64 -o generator.o -c generator.c
generator.c: In function ‘generate_json’:
generator.c:861:25: error: ‘rb_cFixnum’ undeclared (first use in this function); did you mean ‘mFixnum’?
} else if (klass == rb_cFixnum) {
^~~~~~~~~~
mFixnum
generator.c:861:25: note: each undeclared identifier is reported only once for each function it appears in
generator.c:863:25: error: ‘rb_cBignum’ undeclared (first use in this function); did you mean ‘rb_cFixnum’?
} else if (klass == rb_cBignum) {
^~~~~~~~~~
rb_cFixnum
make: *** [Makefile:243: generator.o] Error 1
make failed, exit code 2
Gem files will remain installed in /home/stahnma/puppet-agent/gems/ruby/2.4.0/gems/json-1.8.3 for inspection.
Results logged to /home/stahnma/puppet-agent/gems/ruby/2.4.0/extensions/x86_64-linux/2.4.0/json-1.8.3/gem_make.out
An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.3'` succeeds before bundling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment