Skip to content

Instantly share code, notes, and snippets.

@ncopa
Created May 27, 2014 12:32
Show Gist options
  • Save ncopa/72437b18ed49b6863efc to your computer and use it in GitHub Desktop.
Save ncopa/72437b18ed49b6863efc to your computer and use it in GitHub Desktop.
Building native extensions. This could take a while...
/usr/bin/ruby extconf.rb
creating Makefile
make "DESTDIR="
compiling posix-spawn.c
In file included from /usr/include/ruby-2.0.0/ruby/ruby.h:24:0,
from /usr/include/ruby-2.0.0/ruby.h:33,
from posix-spawn.c:14:
/usr/include/ruby-2.0.0/x86_64-linux-musl/ruby/config.h:17:0: warning: "_GNU_SOURCE" redefined [enabled by default]
#define _GNU_SOURCE 1
^
posix-spawn.c:3:0: note: this is the location of the previous definition
#define _GNU_SOURCE
^
posix-spawn.c: In function 'rb_posixspawn_pspawn':
posix-spawn.c:403:11: error: 'POSIX_SPAWN_USEVFORK' undeclared (first use in this function)
flags |= POSIX_SPAWN_USEVFORK;
^
posix-spawn.c:403:11: note: each undeclared identifier is reported only once for each function it appears in
Makefile:223: recipe for target 'posix-spawn.o' failed
make: *** [posix-spawn.o] Error 1
ERROR: Error installing /home/ncopa/aports/wip/ruby-posix-spawn/src/posix-spawn-0.3.8.gem:
ERROR: Failed to build gem native extension.
Building has failed. See above output for more information on the failure.
Gem files will remain installed in /home/ncopa/aports/wip/ruby-posix-spawn/pkg/ruby-posix-spawn/usr/lib/ruby/gems/2.0.0/gems/posix-spawn-0.3.8 for inspection.
Results logged to /home/ncopa/aports/wip/ruby-posix-spawn/pkg/ruby-posix-spawn/usr/lib/ruby/gems/2.0.0/gems/posix-spawn-0.3.8/ext/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment