vagrant-shell 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/demo/docker/Gemfile.lock +1 -1
- data/demo/docker/Makefile +4 -1
- data/demo/docker/Vagrantfile +2 -2
- data/demo/docker/libexec/init-docker +5 -5
- data/demo/docker/vagrant-shell.box +0 -0
- data/demo/ec2/Gemfile.lock +1 -1
- data/demo/ec2/Makefile +4 -1
- data/demo/self/Gemfile.lock +1 -1
- data/demo/self/Makefile +4 -1
- data/demo/templates/Gemfile.lock +1 -1
- data/demo/templates/Makefile +4 -1
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/AbstractMemory.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/ArrayType.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Buffer.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Call.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/ClosurePool.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/DataConverter.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/DynamicLibrary.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Function.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/FunctionInfo.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/LastError.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/LongDouble.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Makefile +30 -28
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/MappedType.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/MemoryPointer.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/MethodHandle.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Platform.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Pointer.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Struct.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/StructByReference.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/StructByValue.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/StructLayout.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Thread.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Type.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Types.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/Variadic.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/ffi.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/ffi_c.so +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/mkmf.log +231 -114
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi_c.so +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/json-1.7.7/ext/json/ext/generator/Makefile +29 -27
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/json-1.7.7/ext/json/ext/generator/generator.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/json-1.7.7/ext/json/ext/generator/generator.so +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/json-1.7.7/ext/json/ext/parser/Makefile +29 -27
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/json-1.7.7/ext/json/ext/parser/parser.o +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/json-1.7.7/ext/json/ext/parser/parser.so +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/json-1.7.7/lib/json/ext/generator.so +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/json-1.7.7/lib/json/ext/parser.so +0 -0
- data/lib/vagrant-shell/config.rb +9 -1
- data/vagrant-shell-0.2.8.gem +0 -0
- metadata +1847 -1828
- data/demo/self/vagrant-shell.box +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/ext/ffi_c/ffi_c.bundle +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/lib/ffi_c.bundle +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/json-1.7.7/ext/json/ext/generator/generator.bundle +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/json-1.7.7/ext/json/ext/parser/parser.bundle +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/json-1.7.7/lib/json/ext/generator.bundle +0 -0
- data/demo/templates/vendor/bundle/ruby/1.9.1/gems/json-1.7.7/lib/json/ext/parser.bundle +0 -0
- data/vagrant-shell-0.2.3.gem +0 -0
- data/vagrant-shell-0.2.5.gem +0 -0
- data/vagrant-shell-0.2.6.gem +0 -0
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.9
|
data/demo/docker/Gemfile.lock
CHANGED
data/demo/docker/Makefile
CHANGED
|
@@ -19,4 +19,7 @@ vagrant: vagrant-shell.box
|
|
|
19
19
|
|
|
20
20
|
shell:
|
|
21
21
|
bundle exec vagrant up || true
|
|
22
|
-
bundle exec vagrant ssh
|
|
22
|
+
bundle exec vagrant ssh $(shell bundle exec vagrant status | awk '$$2 == "running" && $$3 == "(docker)" { vg[length(vg)] = $$1 } END { print vg[0] }')
|
|
23
|
+
|
|
24
|
+
destroy:
|
|
25
|
+
bundle exec vagrant destroy -f
|
data/demo/docker/Vagrantfile
CHANGED
|
@@ -4,10 +4,10 @@ VagrantPlugins::Shell::Plugin.make_provider(:docker)
|
|
|
4
4
|
|
|
5
5
|
Vagrant.configure("2") do |config|
|
|
6
6
|
config.vm.box = "vagrant-shell"
|
|
7
|
-
config.ssh.username = "
|
|
7
|
+
config.ssh.username = "ubuntu"
|
|
8
8
|
config.ssh.private_key_path = "#{ENV['HOME']}/.vagrant.d/insecure_private_key"
|
|
9
9
|
|
|
10
|
-
%w(
|
|
10
|
+
%w(precise raring).each do |release|
|
|
11
11
|
config.vm.define release.to_sym do |guest|
|
|
12
12
|
guest.vm.provider :docker .to_sym do |shell, override|
|
|
13
13
|
shell.image = release
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
install -d -m 0700 -o ubuntu -g ubuntu ~ubuntu/.ssh
|
|
2
|
+
wget --no-check-certificate -O - https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub > ~ubuntu/.ssh/authorized_keys.tmp
|
|
3
|
+
install -m 0600 -o ubuntu -g ubuntu ~ubuntu/.ssh/authorized_keys.tmp ~ubuntu/.ssh/authorized_keys
|
|
4
|
+
rm -f ~ubuntu/.ssh/authorized_keys.tmp
|
|
5
|
+
|
|
6
6
|
install -d -m 0755 -o root -g root /var/run/sshd
|
|
7
7
|
exec /usr/sbin/sshd -D
|
|
Binary file
|
data/demo/ec2/Gemfile.lock
CHANGED
data/demo/ec2/Makefile
CHANGED
|
@@ -19,4 +19,7 @@ vagrant: vagrant-shell.box
|
|
|
19
19
|
|
|
20
20
|
shell:
|
|
21
21
|
bundle exec vagrant up || true
|
|
22
|
-
bundle exec vagrant ssh
|
|
22
|
+
bundle exec vagrant ssh $(shell bundle exec vagrant status | awk '$$2 == "running" && $$3 == "(docker)" { vg[length(vg)] = $$1 } END { print vg[0] }')
|
|
23
|
+
|
|
24
|
+
destroy:
|
|
25
|
+
bundle exec vagrant destroy -f
|
data/demo/self/Gemfile.lock
CHANGED
data/demo/self/Makefile
CHANGED
|
@@ -19,4 +19,7 @@ vagrant: vagrant-shell.box
|
|
|
19
19
|
|
|
20
20
|
shell:
|
|
21
21
|
bundle exec vagrant up || true
|
|
22
|
-
bundle exec vagrant ssh
|
|
22
|
+
bundle exec vagrant ssh $(shell bundle exec vagrant status | awk '$$2 == "running" && $$3 == "(docker)" { vg[length(vg)] = $$1 } END { print vg[0] }')
|
|
23
|
+
|
|
24
|
+
destroy:
|
|
25
|
+
bundle exec vagrant destroy -f
|
data/demo/templates/Gemfile.lock
CHANGED
data/demo/templates/Makefile
CHANGED
|
@@ -19,4 +19,7 @@ vagrant: vagrant-shell.box
|
|
|
19
19
|
|
|
20
20
|
shell:
|
|
21
21
|
bundle exec vagrant up || true
|
|
22
|
-
bundle exec vagrant ssh
|
|
22
|
+
bundle exec vagrant ssh $(shell bundle exec vagrant status | awk '$$2 == "running" && $$3 == "(docker)" { vg[length(vg)] = $$1 } END { print vg[0] }')
|
|
23
|
+
|
|
24
|
+
destroy:
|
|
25
|
+
bundle exec vagrant destroy -f
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -12,11 +12,11 @@ ECHO = $(ECHO1:0=@echo)
|
|
|
12
12
|
#### Start of system configuration section. ####
|
|
13
13
|
|
|
14
14
|
srcdir = .
|
|
15
|
-
topdir = /
|
|
16
|
-
hdrdir = /
|
|
17
|
-
arch_hdrdir = /
|
|
15
|
+
topdir = /usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1
|
|
16
|
+
hdrdir = /usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1
|
|
17
|
+
arch_hdrdir = /usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/$(arch)
|
|
18
18
|
VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
|
|
19
|
-
prefix = $(DESTDIR)/
|
|
19
|
+
prefix = $(DESTDIR)/usr/local/rvm/rubies/ruby-1.9.3-p429
|
|
20
20
|
rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
|
|
21
21
|
exec_prefix = $(prefix)
|
|
22
22
|
vendorhdrdir = $(rubyhdrdir)/vendor_ruby
|
|
@@ -53,12 +53,12 @@ vendorarchdir = $(vendorlibdir)/$(sitearch)
|
|
|
53
53
|
|
|
54
54
|
NULLCMD = :
|
|
55
55
|
|
|
56
|
-
CC =
|
|
57
|
-
CXX =
|
|
58
|
-
LIBRUBY = $(
|
|
56
|
+
CC = gcc
|
|
57
|
+
CXX = g++
|
|
58
|
+
LIBRUBY = $(LIBRUBY_SO)
|
|
59
59
|
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
|
60
|
-
LIBRUBYARG_SHARED =
|
|
61
|
-
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
|
|
60
|
+
LIBRUBYARG_SHARED = -Wl,-R -Wl,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)
|
|
61
|
+
LIBRUBYARG_STATIC = -Wl,-R -Wl,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static
|
|
62
62
|
empty =
|
|
63
63
|
OUTFLAG = -o $(empty)
|
|
64
64
|
COUTFLAG = -o $(empty)
|
|
@@ -68,32 +68,32 @@ cflags = $(optflags) $(debugflags) $(warnflags)
|
|
|
68
68
|
optflags = -O3
|
|
69
69
|
debugflags = -ggdb
|
|
70
70
|
warnflags =
|
|
71
|
-
CFLAGS = -
|
|
71
|
+
CFLAGS = -fPIC $(cflags) -fPIC $(ARCH_FLAG)
|
|
72
72
|
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
|
|
73
73
|
DEFS =
|
|
74
|
-
CPPFLAGS = -DRUBY_EXTCONF_H=\"$(RUBY_EXTCONF_H)\"
|
|
74
|
+
CPPFLAGS = -DRUBY_EXTCONF_H=\"$(RUBY_EXTCONF_H)\" $(DEFS) $(cppflags)
|
|
75
75
|
CXXFLAGS = $(CFLAGS) $(cxxflags)
|
|
76
|
-
ldflags = -L.
|
|
77
|
-
dldflags =
|
|
76
|
+
ldflags = -L. -rdynamic -Wl,-export-dynamic
|
|
77
|
+
dldflags =
|
|
78
78
|
ARCH_FLAG =
|
|
79
79
|
DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
|
|
80
|
-
LDSHARED = $(CC) -
|
|
81
|
-
LDSHAREDXX = $(CXX) -
|
|
80
|
+
LDSHARED = $(CC) -shared
|
|
81
|
+
LDSHAREDXX = $(CXX) -shared
|
|
82
82
|
AR = ar
|
|
83
83
|
EXEEXT =
|
|
84
84
|
|
|
85
85
|
RUBY_BASE_NAME = ruby
|
|
86
86
|
RUBY_INSTALL_NAME = ruby
|
|
87
87
|
RUBY_SO_NAME = ruby
|
|
88
|
-
arch = x86_64-
|
|
88
|
+
arch = x86_64-linux
|
|
89
89
|
sitearch = $(arch)
|
|
90
90
|
ruby_version = 1.9.1
|
|
91
|
-
ruby = /
|
|
91
|
+
ruby = /usr/local/rvm/rubies/ruby-1.9.3-p429/bin/ruby
|
|
92
92
|
RUBY = $(ruby)
|
|
93
93
|
RM = rm -f
|
|
94
94
|
RM_RF = $(RUBY) -run -e rm -- -rf
|
|
95
|
-
RMDIRS = rmdir -p
|
|
96
|
-
MAKEDIRS = mkdir -p
|
|
95
|
+
RMDIRS = rmdir --ignore-fail-on-non-empty -p
|
|
96
|
+
MAKEDIRS = /bin/mkdir -p
|
|
97
97
|
INSTALL = /usr/bin/install -c
|
|
98
98
|
INSTALL_PROG = $(INSTALL) -m 0755
|
|
99
99
|
INSTALL_DATA = $(INSTALL) -m 644
|
|
@@ -104,8 +104,8 @@ TOUCH = exit >
|
|
|
104
104
|
|
|
105
105
|
preload =
|
|
106
106
|
|
|
107
|
-
libpath = . $(libdir)
|
|
108
|
-
LIBPATH = -L. -L$(libdir) -
|
|
107
|
+
libpath = . $(libdir)
|
|
108
|
+
LIBPATH = -L. -L$(libdir) -Wl,-R$(libdir)
|
|
109
109
|
DEFFILE =
|
|
110
110
|
|
|
111
111
|
CLEANFILES = mkmf.log
|
|
@@ -116,23 +116,25 @@ extout =
|
|
|
116
116
|
extout_prefix =
|
|
117
117
|
target_prefix =
|
|
118
118
|
LOCAL_LIBS =
|
|
119
|
-
LIBS =
|
|
120
|
-
SRCS =
|
|
121
|
-
OBJS =
|
|
119
|
+
LIBS = $(LIBRUBYARG_SHARED) -lffi -lffi -lpthread -lrt -ldl -lcrypt -lm -lc
|
|
120
|
+
SRCS = MappedType.c ClosurePool.c Platform.c LastError.c StructByValue.c AbstractMemory.c Thread.c MemoryPointer.c Function.c StructByReference.c Types.c MethodHandle.c StructLayout.c DynamicLibrary.c LongDouble.c Buffer.c FunctionInfo.c Struct.c Type.c Call.c ArrayType.c Variadic.c ffi.c DataConverter.c Pointer.c
|
|
121
|
+
OBJS = MappedType.o ClosurePool.o Platform.o LastError.o StructByValue.o AbstractMemory.o Thread.o MemoryPointer.o Function.o StructByReference.o Types.o MethodHandle.o StructLayout.o DynamicLibrary.o LongDouble.o Buffer.o FunctionInfo.o Struct.o Type.o Call.o ArrayType.o Variadic.o ffi.o DataConverter.o Pointer.o
|
|
122
122
|
TARGET = ffi_c
|
|
123
|
-
|
|
123
|
+
TARGET_NAME = ffi_c
|
|
124
|
+
TARGET_ENTRY = Init_$(TARGET_NAME)
|
|
125
|
+
DLLIB = $(TARGET).so
|
|
124
126
|
EXTSTATIC =
|
|
125
127
|
STATIC_LIB =
|
|
126
128
|
|
|
127
129
|
BINDIR = $(bindir)
|
|
128
130
|
RUBYCOMMONDIR = $(sitedir)$(target_prefix)
|
|
129
|
-
RUBYLIBDIR = /
|
|
130
|
-
RUBYARCHDIR = /
|
|
131
|
+
RUBYLIBDIR = /home/ubuntu/work/vagrant-shell/demo/docker/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/lib$(target_prefix)
|
|
132
|
+
RUBYARCHDIR = /home/ubuntu/work/vagrant-shell/demo/docker/vendor/bundle/ruby/1.9.1/gems/ffi-1.8.1/lib$(target_prefix)
|
|
131
133
|
HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
|
|
132
134
|
ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
|
|
133
135
|
|
|
134
136
|
TARGET_SO = $(DLLIB)
|
|
135
|
-
CLEANLIBS = $(TARGET).
|
|
137
|
+
CLEANLIBS = $(TARGET).so
|
|
136
138
|
CLEANOBJS = *.o *.bak
|
|
137
139
|
|
|
138
140
|
all: $(DLLIB)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,210 +1,327 @@
|
|
|
1
1
|
package configuration for libffi
|
|
2
|
-
cflags:
|
|
3
|
-
ldflags:
|
|
2
|
+
cflags:
|
|
3
|
+
ldflags:
|
|
4
4
|
libs: -lffi
|
|
5
5
|
|
|
6
6
|
have_library: checking for ffi_call() in -lffi... -------------------- yes
|
|
7
7
|
|
|
8
|
-
"
|
|
8
|
+
"gcc -o conftest -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/x86_64-linux -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1 -I. -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -Wl,-R/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L. -rdynamic -Wl,-export-dynamic -lffi -Wl,-R -Wl,/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -lruby -lpthread -lrt -ldl -lcrypt -lm -lc"
|
|
9
9
|
checked program was:
|
|
10
10
|
/* begin */
|
|
11
11
|
1: #include "ruby.h"
|
|
12
12
|
2:
|
|
13
|
-
3: int main(
|
|
13
|
+
3: int main(int argc, char **argv)
|
|
14
|
+
4: {
|
|
15
|
+
5: return 0;
|
|
16
|
+
6: }
|
|
14
17
|
/* end */
|
|
15
18
|
|
|
16
|
-
"
|
|
19
|
+
"gcc -o conftest -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/x86_64-linux -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1 -I. -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -Wl,-R/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L. -rdynamic -Wl,-export-dynamic -lffi -Wl,-R -Wl,/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -lruby -lffi -lffi -lpthread -lrt -ldl -lcrypt -lm -lc"
|
|
20
|
+
conftest.c: In function ‘t’:
|
|
21
|
+
conftest.c:6:28: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]
|
|
17
22
|
checked program was:
|
|
18
23
|
/* begin */
|
|
19
|
-
1: #include "ruby.h"
|
|
20
|
-
2:
|
|
21
|
-
3: #include <ffi.h>
|
|
22
|
-
4:
|
|
23
|
-
5: /*top*/
|
|
24
|
-
6: int
|
|
25
|
-
7: int
|
|
24
|
+
1: #include "ruby.h"
|
|
25
|
+
2:
|
|
26
|
+
3: #include <ffi.h>
|
|
27
|
+
4:
|
|
28
|
+
5: /*top*/
|
|
29
|
+
6: int t() { void ((*volatile p)()); p = (void ((*)()))ffi_call; return 0; }
|
|
30
|
+
7: int main(int argc, char **argv)
|
|
31
|
+
8: {
|
|
32
|
+
9: if (argc > 1000000) {
|
|
33
|
+
10: printf("%p", &t);
|
|
34
|
+
11: }
|
|
35
|
+
12:
|
|
36
|
+
13: return 0;
|
|
37
|
+
14: }
|
|
26
38
|
/* end */
|
|
27
39
|
|
|
28
40
|
--------------------
|
|
29
41
|
|
|
30
42
|
have_func: checking for ffi_prep_closure()... -------------------- yes
|
|
31
43
|
|
|
32
|
-
"
|
|
33
|
-
conftest.c: In function
|
|
34
|
-
conftest.c:
|
|
35
|
-
conftest.c:
|
|
36
|
-
conftest.c:
|
|
44
|
+
"gcc -o conftest -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/x86_64-linux -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1 -I. -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -Wl,-R/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L. -rdynamic -Wl,-export-dynamic -lffi -lffi -Wl,-R -Wl,/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -lruby -lffi -lffi -lpthread -lrt -ldl -lcrypt -lm -lc"
|
|
45
|
+
conftest.c: In function ‘t’:
|
|
46
|
+
conftest.c:4:53: error: ‘ffi_prep_closure’ undeclared (first use in this function)
|
|
47
|
+
conftest.c:4:53: note: each undeclared identifier is reported only once for each function it appears in
|
|
48
|
+
conftest.c:4:28: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]
|
|
37
49
|
checked program was:
|
|
38
50
|
/* begin */
|
|
39
|
-
1: #include "ruby.h"
|
|
40
|
-
2:
|
|
41
|
-
3: /*top*/
|
|
42
|
-
4: int
|
|
43
|
-
5: int
|
|
51
|
+
1: #include "ruby.h"
|
|
52
|
+
2:
|
|
53
|
+
3: /*top*/
|
|
54
|
+
4: int t() { void ((*volatile p)()); p = (void ((*)()))ffi_prep_closure; return 0; }
|
|
55
|
+
5: int main(int argc, char **argv)
|
|
56
|
+
6: {
|
|
57
|
+
7: if (argc > 1000000) {
|
|
58
|
+
8: printf("%p", &t);
|
|
59
|
+
9: }
|
|
60
|
+
10:
|
|
61
|
+
11: return 0;
|
|
62
|
+
12: }
|
|
44
63
|
/* end */
|
|
45
64
|
|
|
46
|
-
"
|
|
65
|
+
"gcc -o conftest -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/x86_64-linux -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1 -I. -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -Wl,-R/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L. -rdynamic -Wl,-export-dynamic -lffi -lffi -Wl,-R -Wl,/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -lruby -lffi -lffi -lpthread -lrt -ldl -lcrypt -lm -lc"
|
|
66
|
+
conftest.c: In function ‘t’:
|
|
67
|
+
conftest.c:4:1: warning: implicit declaration of function ‘ffi_prep_closure’ [-Wimplicit-function-declaration]
|
|
47
68
|
checked program was:
|
|
48
69
|
/* begin */
|
|
49
|
-
1: #include "ruby.h"
|
|
50
|
-
2:
|
|
51
|
-
3: /*top*/
|
|
52
|
-
4: int
|
|
53
|
-
5: int
|
|
70
|
+
1: #include "ruby.h"
|
|
71
|
+
2:
|
|
72
|
+
3: /*top*/
|
|
73
|
+
4: int t() { ffi_prep_closure(); return 0; }
|
|
74
|
+
5: int main(int argc, char **argv)
|
|
75
|
+
6: {
|
|
76
|
+
7: if (argc > 1000000) {
|
|
77
|
+
8: printf("%p", &t);
|
|
78
|
+
9: }
|
|
79
|
+
10:
|
|
80
|
+
11: return 0;
|
|
81
|
+
12: }
|
|
54
82
|
/* end */
|
|
55
83
|
|
|
56
84
|
--------------------
|
|
57
85
|
|
|
58
86
|
have_func: checking for ffi_raw_call()... -------------------- yes
|
|
59
87
|
|
|
60
|
-
"
|
|
61
|
-
conftest.c: In function
|
|
62
|
-
conftest.c:
|
|
63
|
-
conftest.c:
|
|
64
|
-
conftest.c:
|
|
88
|
+
"gcc -o conftest -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/x86_64-linux -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1 -I. -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -Wl,-R/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L. -rdynamic -Wl,-export-dynamic -lffi -lffi -Wl,-R -Wl,/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -lruby -lffi -lffi -lpthread -lrt -ldl -lcrypt -lm -lc"
|
|
89
|
+
conftest.c: In function ‘t’:
|
|
90
|
+
conftest.c:4:53: error: ‘ffi_raw_call’ undeclared (first use in this function)
|
|
91
|
+
conftest.c:4:53: note: each undeclared identifier is reported only once for each function it appears in
|
|
92
|
+
conftest.c:4:28: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]
|
|
65
93
|
checked program was:
|
|
66
94
|
/* begin */
|
|
67
|
-
1: #include "ruby.h"
|
|
68
|
-
2:
|
|
69
|
-
3: /*top*/
|
|
70
|
-
4: int
|
|
71
|
-
5: int
|
|
95
|
+
1: #include "ruby.h"
|
|
96
|
+
2:
|
|
97
|
+
3: /*top*/
|
|
98
|
+
4: int t() { void ((*volatile p)()); p = (void ((*)()))ffi_raw_call; return 0; }
|
|
99
|
+
5: int main(int argc, char **argv)
|
|
100
|
+
6: {
|
|
101
|
+
7: if (argc > 1000000) {
|
|
102
|
+
8: printf("%p", &t);
|
|
103
|
+
9: }
|
|
104
|
+
10:
|
|
105
|
+
11: return 0;
|
|
106
|
+
12: }
|
|
72
107
|
/* end */
|
|
73
108
|
|
|
74
|
-
"
|
|
109
|
+
"gcc -o conftest -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/x86_64-linux -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1 -I. -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -Wl,-R/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L. -rdynamic -Wl,-export-dynamic -lffi -lffi -Wl,-R -Wl,/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -lruby -lffi -lffi -lpthread -lrt -ldl -lcrypt -lm -lc"
|
|
110
|
+
conftest.c: In function ‘t’:
|
|
111
|
+
conftest.c:4:1: warning: implicit declaration of function ‘ffi_raw_call’ [-Wimplicit-function-declaration]
|
|
75
112
|
checked program was:
|
|
76
113
|
/* begin */
|
|
77
|
-
1: #include "ruby.h"
|
|
78
|
-
2:
|
|
79
|
-
3: /*top*/
|
|
80
|
-
4: int
|
|
81
|
-
5: int
|
|
114
|
+
1: #include "ruby.h"
|
|
115
|
+
2:
|
|
116
|
+
3: /*top*/
|
|
117
|
+
4: int t() { ffi_raw_call(); return 0; }
|
|
118
|
+
5: int main(int argc, char **argv)
|
|
119
|
+
6: {
|
|
120
|
+
7: if (argc > 1000000) {
|
|
121
|
+
8: printf("%p", &t);
|
|
122
|
+
9: }
|
|
123
|
+
10:
|
|
124
|
+
11: return 0;
|
|
125
|
+
12: }
|
|
82
126
|
/* end */
|
|
83
127
|
|
|
84
128
|
--------------------
|
|
85
129
|
|
|
86
130
|
have_func: checking for ffi_prep_raw_closure()... -------------------- yes
|
|
87
131
|
|
|
88
|
-
"
|
|
89
|
-
conftest.c: In function
|
|
90
|
-
conftest.c:
|
|
91
|
-
conftest.c:
|
|
92
|
-
conftest.c:
|
|
132
|
+
"gcc -o conftest -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/x86_64-linux -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1 -I. -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -Wl,-R/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L. -rdynamic -Wl,-export-dynamic -lffi -lffi -Wl,-R -Wl,/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -lruby -lffi -lffi -lpthread -lrt -ldl -lcrypt -lm -lc"
|
|
133
|
+
conftest.c: In function ‘t’:
|
|
134
|
+
conftest.c:4:53: error: ‘ffi_prep_raw_closure’ undeclared (first use in this function)
|
|
135
|
+
conftest.c:4:53: note: each undeclared identifier is reported only once for each function it appears in
|
|
136
|
+
conftest.c:4:28: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]
|
|
93
137
|
checked program was:
|
|
94
138
|
/* begin */
|
|
95
|
-
1: #include "ruby.h"
|
|
96
|
-
2:
|
|
97
|
-
3: /*top*/
|
|
98
|
-
4: int
|
|
99
|
-
5: int
|
|
139
|
+
1: #include "ruby.h"
|
|
140
|
+
2:
|
|
141
|
+
3: /*top*/
|
|
142
|
+
4: int t() { void ((*volatile p)()); p = (void ((*)()))ffi_prep_raw_closure; return 0; }
|
|
143
|
+
5: int main(int argc, char **argv)
|
|
144
|
+
6: {
|
|
145
|
+
7: if (argc > 1000000) {
|
|
146
|
+
8: printf("%p", &t);
|
|
147
|
+
9: }
|
|
148
|
+
10:
|
|
149
|
+
11: return 0;
|
|
150
|
+
12: }
|
|
100
151
|
/* end */
|
|
101
152
|
|
|
102
|
-
"
|
|
153
|
+
"gcc -o conftest -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/x86_64-linux -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1 -I. -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -Wl,-R/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L. -rdynamic -Wl,-export-dynamic -lffi -lffi -Wl,-R -Wl,/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -lruby -lffi -lffi -lpthread -lrt -ldl -lcrypt -lm -lc"
|
|
154
|
+
conftest.c: In function ‘t’:
|
|
155
|
+
conftest.c:4:1: warning: implicit declaration of function ‘ffi_prep_raw_closure’ [-Wimplicit-function-declaration]
|
|
103
156
|
checked program was:
|
|
104
157
|
/* begin */
|
|
105
|
-
1: #include "ruby.h"
|
|
106
|
-
2:
|
|
107
|
-
3: /*top*/
|
|
108
|
-
4: int
|
|
109
|
-
5: int
|
|
158
|
+
1: #include "ruby.h"
|
|
159
|
+
2:
|
|
160
|
+
3: /*top*/
|
|
161
|
+
4: int t() { ffi_prep_raw_closure(); return 0; }
|
|
162
|
+
5: int main(int argc, char **argv)
|
|
163
|
+
6: {
|
|
164
|
+
7: if (argc > 1000000) {
|
|
165
|
+
8: printf("%p", &t);
|
|
166
|
+
9: }
|
|
167
|
+
10:
|
|
168
|
+
11: return 0;
|
|
169
|
+
12: }
|
|
110
170
|
/* end */
|
|
111
171
|
|
|
112
172
|
--------------------
|
|
113
173
|
|
|
114
174
|
have_func: checking for rb_thread_blocking_region()... -------------------- yes
|
|
115
175
|
|
|
116
|
-
"
|
|
176
|
+
"gcc -o conftest -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/x86_64-linux -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1 -I. -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -Wl,-R/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L. -rdynamic -Wl,-export-dynamic -lffi -lffi -Wl,-R -Wl,/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -lruby -lffi -lffi -lpthread -lrt -ldl -lcrypt -lm -lc"
|
|
177
|
+
conftest.c: In function ‘t’:
|
|
178
|
+
conftest.c:4:28: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]
|
|
117
179
|
checked program was:
|
|
118
180
|
/* begin */
|
|
119
|
-
1: #include "ruby.h"
|
|
120
|
-
2:
|
|
121
|
-
3: /*top*/
|
|
122
|
-
4: int
|
|
123
|
-
5: int
|
|
181
|
+
1: #include "ruby.h"
|
|
182
|
+
2:
|
|
183
|
+
3: /*top*/
|
|
184
|
+
4: int t() { void ((*volatile p)()); p = (void ((*)()))rb_thread_blocking_region; return 0; }
|
|
185
|
+
5: int main(int argc, char **argv)
|
|
186
|
+
6: {
|
|
187
|
+
7: if (argc > 1000000) {
|
|
188
|
+
8: printf("%p", &t);
|
|
189
|
+
9: }
|
|
190
|
+
10:
|
|
191
|
+
11: return 0;
|
|
192
|
+
12: }
|
|
124
193
|
/* end */
|
|
125
194
|
|
|
126
195
|
--------------------
|
|
127
196
|
|
|
128
197
|
have_func: checking for rb_thread_call_with_gvl()... -------------------- yes
|
|
129
198
|
|
|
130
|
-
"
|
|
131
|
-
conftest.c: In function
|
|
132
|
-
conftest.c:
|
|
133
|
-
conftest.c:
|
|
134
|
-
conftest.c:
|
|
199
|
+
"gcc -o conftest -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/x86_64-linux -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1 -I. -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -Wl,-R/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L. -rdynamic -Wl,-export-dynamic -lffi -lffi -Wl,-R -Wl,/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -lruby -lffi -lffi -lpthread -lrt -ldl -lcrypt -lm -lc"
|
|
200
|
+
conftest.c: In function ‘t’:
|
|
201
|
+
conftest.c:4:53: error: ‘rb_thread_call_with_gvl’ undeclared (first use in this function)
|
|
202
|
+
conftest.c:4:53: note: each undeclared identifier is reported only once for each function it appears in
|
|
203
|
+
conftest.c:4:28: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]
|
|
135
204
|
checked program was:
|
|
136
205
|
/* begin */
|
|
137
|
-
1: #include "ruby.h"
|
|
138
|
-
2:
|
|
139
|
-
3: /*top*/
|
|
140
|
-
4: int
|
|
141
|
-
5: int
|
|
206
|
+
1: #include "ruby.h"
|
|
207
|
+
2:
|
|
208
|
+
3: /*top*/
|
|
209
|
+
4: int t() { void ((*volatile p)()); p = (void ((*)()))rb_thread_call_with_gvl; return 0; }
|
|
210
|
+
5: int main(int argc, char **argv)
|
|
211
|
+
6: {
|
|
212
|
+
7: if (argc > 1000000) {
|
|
213
|
+
8: printf("%p", &t);
|
|
214
|
+
9: }
|
|
215
|
+
10:
|
|
216
|
+
11: return 0;
|
|
217
|
+
12: }
|
|
142
218
|
/* end */
|
|
143
219
|
|
|
144
|
-
"
|
|
220
|
+
"gcc -o conftest -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/x86_64-linux -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1 -I. -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -Wl,-R/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L. -rdynamic -Wl,-export-dynamic -lffi -lffi -Wl,-R -Wl,/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -lruby -lffi -lffi -lpthread -lrt -ldl -lcrypt -lm -lc"
|
|
221
|
+
conftest.c: In function ‘t’:
|
|
222
|
+
conftest.c:4:1: warning: implicit declaration of function ‘rb_thread_call_with_gvl’ [-Wimplicit-function-declaration]
|
|
145
223
|
checked program was:
|
|
146
224
|
/* begin */
|
|
147
|
-
1: #include "ruby.h"
|
|
148
|
-
2:
|
|
149
|
-
3: /*top*/
|
|
150
|
-
4: int
|
|
151
|
-
5: int
|
|
225
|
+
1: #include "ruby.h"
|
|
226
|
+
2:
|
|
227
|
+
3: /*top*/
|
|
228
|
+
4: int t() { rb_thread_call_with_gvl(); return 0; }
|
|
229
|
+
5: int main(int argc, char **argv)
|
|
230
|
+
6: {
|
|
231
|
+
7: if (argc > 1000000) {
|
|
232
|
+
8: printf("%p", &t);
|
|
233
|
+
9: }
|
|
234
|
+
10:
|
|
235
|
+
11: return 0;
|
|
236
|
+
12: }
|
|
152
237
|
/* end */
|
|
153
238
|
|
|
154
239
|
--------------------
|
|
155
240
|
|
|
156
241
|
have_func: checking for rb_thread_call_without_gvl()... -------------------- yes
|
|
157
242
|
|
|
158
|
-
"
|
|
159
|
-
conftest.c: In function
|
|
160
|
-
conftest.c:
|
|
161
|
-
conftest.c:
|
|
162
|
-
conftest.c:
|
|
243
|
+
"gcc -o conftest -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/x86_64-linux -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1 -I. -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -Wl,-R/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L. -rdynamic -Wl,-export-dynamic -lffi -lffi -Wl,-R -Wl,/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -lruby -lffi -lffi -lpthread -lrt -ldl -lcrypt -lm -lc"
|
|
244
|
+
conftest.c: In function ‘t’:
|
|
245
|
+
conftest.c:4:53: error: ‘rb_thread_call_without_gvl’ undeclared (first use in this function)
|
|
246
|
+
conftest.c:4:53: note: each undeclared identifier is reported only once for each function it appears in
|
|
247
|
+
conftest.c:4:28: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]
|
|
163
248
|
checked program was:
|
|
164
249
|
/* begin */
|
|
165
|
-
1: #include "ruby.h"
|
|
166
|
-
2:
|
|
167
|
-
3: /*top*/
|
|
168
|
-
4: int
|
|
169
|
-
5: int
|
|
250
|
+
1: #include "ruby.h"
|
|
251
|
+
2:
|
|
252
|
+
3: /*top*/
|
|
253
|
+
4: int t() { void ((*volatile p)()); p = (void ((*)()))rb_thread_call_without_gvl; return 0; }
|
|
254
|
+
5: int main(int argc, char **argv)
|
|
255
|
+
6: {
|
|
256
|
+
7: if (argc > 1000000) {
|
|
257
|
+
8: printf("%p", &t);
|
|
258
|
+
9: }
|
|
259
|
+
10:
|
|
260
|
+
11: return 0;
|
|
261
|
+
12: }
|
|
170
262
|
/* end */
|
|
171
263
|
|
|
172
|
-
"
|
|
264
|
+
"gcc -o conftest -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/x86_64-linux -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1 -I. -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -Wl,-R/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L. -rdynamic -Wl,-export-dynamic -lffi -lffi -Wl,-R -Wl,/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -lruby -lffi -lffi -lpthread -lrt -ldl -lcrypt -lm -lc"
|
|
265
|
+
conftest.c: In function ‘t’:
|
|
266
|
+
conftest.c:4:1: warning: implicit declaration of function ‘rb_thread_call_without_gvl’ [-Wimplicit-function-declaration]
|
|
173
267
|
checked program was:
|
|
174
268
|
/* begin */
|
|
175
|
-
1: #include "ruby.h"
|
|
176
|
-
2:
|
|
177
|
-
3: /*top*/
|
|
178
|
-
4: int
|
|
179
|
-
5: int
|
|
269
|
+
1: #include "ruby.h"
|
|
270
|
+
2:
|
|
271
|
+
3: /*top*/
|
|
272
|
+
4: int t() { rb_thread_call_without_gvl(); return 0; }
|
|
273
|
+
5: int main(int argc, char **argv)
|
|
274
|
+
6: {
|
|
275
|
+
7: if (argc > 1000000) {
|
|
276
|
+
8: printf("%p", &t);
|
|
277
|
+
9: }
|
|
278
|
+
10:
|
|
279
|
+
11: return 0;
|
|
280
|
+
12: }
|
|
180
281
|
/* end */
|
|
181
282
|
|
|
182
283
|
--------------------
|
|
183
284
|
|
|
184
285
|
have_func: checking for ffi_prep_cif_var()... -------------------- yes
|
|
185
286
|
|
|
186
|
-
"
|
|
187
|
-
conftest.c: In function
|
|
188
|
-
conftest.c:
|
|
189
|
-
conftest.c:
|
|
190
|
-
conftest.c:
|
|
287
|
+
"gcc -o conftest -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/x86_64-linux -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1 -I. -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -Wl,-R/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L. -rdynamic -Wl,-export-dynamic -lffi -lffi -Wl,-R -Wl,/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -lruby -lffi -lffi -lpthread -lrt -ldl -lcrypt -lm -lc"
|
|
288
|
+
conftest.c: In function ‘t’:
|
|
289
|
+
conftest.c:4:53: error: ‘ffi_prep_cif_var’ undeclared (first use in this function)
|
|
290
|
+
conftest.c:4:53: note: each undeclared identifier is reported only once for each function it appears in
|
|
291
|
+
conftest.c:4:28: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]
|
|
191
292
|
checked program was:
|
|
192
293
|
/* begin */
|
|
193
|
-
1: #include "ruby.h"
|
|
194
|
-
2:
|
|
195
|
-
3: /*top*/
|
|
196
|
-
4: int
|
|
197
|
-
5: int
|
|
294
|
+
1: #include "ruby.h"
|
|
295
|
+
2:
|
|
296
|
+
3: /*top*/
|
|
297
|
+
4: int t() { void ((*volatile p)()); p = (void ((*)()))ffi_prep_cif_var; return 0; }
|
|
298
|
+
5: int main(int argc, char **argv)
|
|
299
|
+
6: {
|
|
300
|
+
7: if (argc > 1000000) {
|
|
301
|
+
8: printf("%p", &t);
|
|
302
|
+
9: }
|
|
303
|
+
10:
|
|
304
|
+
11: return 0;
|
|
305
|
+
12: }
|
|
198
306
|
/* end */
|
|
199
307
|
|
|
200
|
-
"
|
|
308
|
+
"gcc -o conftest -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/x86_64-linux -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1/ruby/backward -I/usr/local/rvm/rubies/ruby-1.9.3-p429/include/ruby-1.9.1 -I. -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC conftest.c -L. -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -Wl,-R/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L. -rdynamic -Wl,-export-dynamic -lffi -lffi -Wl,-R -Wl,/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -L/usr/local/rvm/rubies/ruby-1.9.3-p429/lib -lruby -lffi -lffi -lpthread -lrt -ldl -lcrypt -lm -lc"
|
|
309
|
+
conftest.c: In function ‘t’:
|
|
310
|
+
conftest.c:4:1: warning: implicit declaration of function ‘ffi_prep_cif_var’ [-Wimplicit-function-declaration]
|
|
201
311
|
checked program was:
|
|
202
312
|
/* begin */
|
|
203
|
-
1: #include "ruby.h"
|
|
204
|
-
2:
|
|
205
|
-
3: /*top*/
|
|
206
|
-
4: int
|
|
207
|
-
5: int
|
|
313
|
+
1: #include "ruby.h"
|
|
314
|
+
2:
|
|
315
|
+
3: /*top*/
|
|
316
|
+
4: int t() { ffi_prep_cif_var(); return 0; }
|
|
317
|
+
5: int main(int argc, char **argv)
|
|
318
|
+
6: {
|
|
319
|
+
7: if (argc > 1000000) {
|
|
320
|
+
8: printf("%p", &t);
|
|
321
|
+
9: }
|
|
322
|
+
10:
|
|
323
|
+
11: return 0;
|
|
324
|
+
12: }
|
|
208
325
|
/* end */
|
|
209
326
|
|
|
210
327
|
--------------------
|