trenni 3.13.1 → 3.13.2

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.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/ext/.DS_Store +0 -0
  3. data/ext/tmp/.DS_Store +0 -0
  4. data/ext/tmp/x86_64-darwin16/lib/trenni/trenni.bundle +0 -0
  5. data/ext/tmp/{x86_64-linux → x86_64-darwin16}/trenni/2.4.0/Makefile +25 -24
  6. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/escape.o +0 -0
  7. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/markup.o +0 -0
  8. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/mkmf.log +105 -0
  9. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/tag.o +0 -0
  10. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/template.o +0 -0
  11. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/trenni.bundle +0 -0
  12. data/ext/tmp/x86_64-darwin16/trenni/2.4.0/trenni.o +0 -0
  13. data/ext/tmp/x86_64-darwin18/lib/trenni/trenni.bundle +0 -0
  14. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/Makefile +266 -0
  15. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/escape.o +0 -0
  16. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/markup.o +0 -0
  17. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/mkmf.log +109 -0
  18. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/tag.o +0 -0
  19. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/template.o +0 -0
  20. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/trenni.bundle +0 -0
  21. data/ext/tmp/x86_64-darwin18/trenni/2.6.1/trenni.o +0 -0
  22. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/Makefile +266 -0
  23. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/escape.o +0 -0
  24. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/markup.o +0 -0
  25. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/mkmf.log +109 -0
  26. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/tag.o +0 -0
  27. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/template.o +0 -0
  28. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/trenni.bundle +0 -0
  29. data/ext/tmp/x86_64-darwin18/trenni/2.6.2/trenni.o +0 -0
  30. data/ext/tmp/x86_64-darwin19/lib/trenni/trenni.bundle +0 -0
  31. data/ext/tmp/{x86_64-linux → x86_64-darwin19}/trenni/2.7.1/Makefile +28 -27
  32. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/escape.o +0 -0
  33. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/markup.o +0 -0
  34. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/mkmf.log +109 -0
  35. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/query.o +0 -0
  36. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/tag.o +0 -0
  37. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/template.o +0 -0
  38. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/trenni.bundle +0 -0
  39. data/ext/tmp/x86_64-darwin19/trenni/2.7.1/trenni.o +0 -0
  40. data/ext/tmp/x86_64-darwin20/lib/trenni/trenni.bundle +0 -0
  41. data/ext/tmp/{x86_64-linux/trenni/2.7.0 → x86_64-darwin20/trenni/3.0.0}/Makefile +29 -28
  42. data/ext/tmp/x86_64-darwin20/trenni/3.0.0/escape.o +0 -0
  43. data/ext/tmp/x86_64-darwin20/trenni/3.0.0/markup.o +0 -0
  44. data/ext/tmp/x86_64-darwin20/trenni/3.0.0/mkmf.log +109 -0
  45. data/ext/tmp/x86_64-darwin20/trenni/3.0.0/query.o +0 -0
  46. data/ext/tmp/x86_64-darwin20/trenni/3.0.0/tag.o +0 -0
  47. data/ext/tmp/x86_64-darwin20/trenni/3.0.0/template.o +0 -0
  48. data/ext/tmp/x86_64-darwin20/trenni/3.0.0/trenni.bundle +0 -0
  49. data/ext/tmp/x86_64-darwin20/trenni/3.0.0/trenni.o +0 -0
  50. data/ext/trenni/.DS_Store +0 -0
  51. data/ext/trenni/escape.c +2 -0
  52. data/ext/trenni/extconf.rb +0 -0
  53. data/ext/trenni/trenni.c +7 -0
  54. data/lib/.DS_Store +0 -0
  55. data/lib/trenni/.DS_Store +0 -0
  56. data/lib/trenni/native.rb +1 -1
  57. data/lib/trenni/version.rb +1 -1
  58. data/parsers/.DS_Store +0 -0
  59. data/spec/.DS_Store +0 -0
  60. data/spec/trenni/template_spec/.DS_Store +0 -0
  61. metadata +58 -74
  62. data/ext/Rakefile +0 -19
  63. data/ext/tmp/x86_64-linux/lib/trenni/trenni.so +0 -0
  64. data/ext/tmp/x86_64-linux/trenni/2.4.0/escape.o +0 -0
  65. data/ext/tmp/x86_64-linux/trenni/2.4.0/markup.o +0 -0
  66. data/ext/tmp/x86_64-linux/trenni/2.4.0/mkmf.log +0 -108
  67. data/ext/tmp/x86_64-linux/trenni/2.4.0/tag.o +0 -0
  68. data/ext/tmp/x86_64-linux/trenni/2.4.0/template.o +0 -0
  69. data/ext/tmp/x86_64-linux/trenni/2.4.0/trenni.o +0 -0
  70. data/ext/tmp/x86_64-linux/trenni/2.4.0/trenni.so +0 -0
  71. data/ext/tmp/x86_64-linux/trenni/2.7.0/escape.o +0 -0
  72. data/ext/tmp/x86_64-linux/trenni/2.7.0/markup.o +0 -0
  73. data/ext/tmp/x86_64-linux/trenni/2.7.0/mkmf.log +0 -113
  74. data/ext/tmp/x86_64-linux/trenni/2.7.0/query.o +0 -0
  75. data/ext/tmp/x86_64-linux/trenni/2.7.0/tag.o +0 -0
  76. data/ext/tmp/x86_64-linux/trenni/2.7.0/template.o +0 -0
  77. data/ext/tmp/x86_64-linux/trenni/2.7.0/trenni.o +0 -0
  78. data/ext/tmp/x86_64-linux/trenni/2.7.0/trenni.so +0 -0
  79. data/ext/tmp/x86_64-linux/trenni/2.7.1/escape.o +0 -0
  80. data/ext/tmp/x86_64-linux/trenni/2.7.1/markup.o +0 -0
  81. data/ext/tmp/x86_64-linux/trenni/2.7.1/mkmf.log +0 -113
  82. data/ext/tmp/x86_64-linux/trenni/2.7.1/query.o +0 -0
  83. data/ext/tmp/x86_64-linux/trenni/2.7.1/tag.o +0 -0
  84. data/ext/tmp/x86_64-linux/trenni/2.7.1/template.o +0 -0
  85. data/ext/tmp/x86_64-linux/trenni/2.7.1/trenni.o +0 -0
  86. data/ext/tmp/x86_64-linux/trenni/2.7.1/trenni.so +0 -0
@@ -0,0 +1,266 @@
1
+
2
+ SHELL = /bin/sh
3
+
4
+ # V=0 quiet, V=1 verbose. other values don't work.
5
+ V = 0
6
+ Q1 = $(V:1=)
7
+ Q = $(Q1:0=@)
8
+ ECHO1 = $(V:1=@ :)
9
+ ECHO = $(ECHO1:0=@ echo)
10
+ NULLCMD = :
11
+
12
+ #### Start of system configuration section. ####
13
+
14
+ srcdir = ../../../../trenni
15
+ topdir = /Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0
16
+ hdrdir = $(topdir)
17
+ arch_hdrdir = /Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0/x86_64-darwin18
18
+ PATH_SEPARATOR = :
19
+ VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
20
+ prefix = $(DESTDIR)/Users/samuel/.rvm/rubies/ruby-2.6.2
21
+ rubysitearchprefix = $(rubylibprefix)/$(sitearch)
22
+ rubyarchprefix = $(rubylibprefix)/$(arch)
23
+ rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
24
+ exec_prefix = $(prefix)
25
+ vendorarchhdrdir = $(vendorhdrdir)/$(sitearch)
26
+ sitearchhdrdir = $(sitehdrdir)/$(sitearch)
27
+ rubyarchhdrdir = $(rubyhdrdir)/$(arch)
28
+ vendorhdrdir = $(rubyhdrdir)/vendor_ruby
29
+ sitehdrdir = $(rubyhdrdir)/site_ruby
30
+ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
31
+ vendorarchdir = $(vendorlibdir)/$(sitearch)
32
+ vendorlibdir = $(vendordir)/$(ruby_version)
33
+ vendordir = $(rubylibprefix)/vendor_ruby
34
+ sitearchdir = $(sitelibdir)/$(sitearch)
35
+ sitelibdir = $(sitedir)/$(ruby_version)
36
+ sitedir = $(rubylibprefix)/site_ruby
37
+ rubyarchdir = $(rubylibdir)/$(arch)
38
+ rubylibdir = $(rubylibprefix)/$(ruby_version)
39
+ sitearchincludedir = $(includedir)/$(sitearch)
40
+ archincludedir = $(includedir)/$(arch)
41
+ sitearchlibdir = $(libdir)/$(sitearch)
42
+ archlibdir = $(libdir)/$(arch)
43
+ ridir = $(datarootdir)/$(RI_BASE_NAME)
44
+ mandir = $(datarootdir)/man
45
+ localedir = $(datarootdir)/locale
46
+ libdir = $(exec_prefix)/lib
47
+ psdir = $(docdir)
48
+ pdfdir = $(docdir)
49
+ dvidir = $(docdir)
50
+ htmldir = $(docdir)
51
+ infodir = $(datarootdir)/info
52
+ docdir = $(datarootdir)/doc/$(PACKAGE)
53
+ oldincludedir = $(SDKROOT)/usr/include
54
+ includedir = $(prefix)/include
55
+ localstatedir = $(prefix)/var
56
+ sharedstatedir = $(prefix)/com
57
+ sysconfdir = $(prefix)/etc
58
+ datadir = $(datarootdir)
59
+ datarootdir = $(prefix)/share
60
+ libexecdir = $(exec_prefix)/libexec
61
+ sbindir = $(exec_prefix)/sbin
62
+ bindir = $(exec_prefix)/bin
63
+ archdir = $(rubyarchdir)
64
+
65
+
66
+ CC_WRAPPER =
67
+ CC = $(CC_WRAPPER) gcc
68
+ CXX = g++
69
+ LIBRUBY = $(LIBRUBY_SO)
70
+ LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
71
+ LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
72
+ LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static -framework Security -framework Foundation $(MAINLIBS)
73
+ empty =
74
+ OUTFLAG = -o $(empty)
75
+ COUTFLAG = -o $(empty)
76
+ CSRCFLAG = $(empty)
77
+
78
+ RUBY_EXTCONF_H =
79
+ cflags = $(optflags) $(debugflags) $(warnflags)
80
+ cxxflags = $(optflags) $(debugflags) $(warnflags)
81
+ optflags = -O3
82
+ debugflags = -ggdb3
83
+ warnflags = -Wall -Wextra -Wdeclaration-after-statement -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wmissing-noreturn -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens
84
+ cppflags =
85
+ CCDLFLAGS = -fno-common
86
+ CFLAGS = $(CCDLFLAGS) $(cflags) -fno-common -pipe -O3 -std=c99 $(ARCH_FLAG)
87
+ INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
88
+ DEFS =
89
+ CPPFLAGS = -DHAVE_RB_SYM2STR -DHAVE_RB_STR_CAT_CSTR -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT $(DEFS) $(cppflags)
90
+ CXXFLAGS = $(CCDLFLAGS) $(cxxflags) $(ARCH_FLAG)
91
+ ldflags = -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib
92
+ dldflags = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -L/opt/local/lib
93
+ ARCH_FLAG =
94
+ DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
95
+ LDSHARED = $(CC) -dynamic -bundle
96
+ LDSHAREDXX = $(CXX) -dynamic -bundle
97
+ AR = libtool -static
98
+ EXEEXT =
99
+
100
+ RUBY_INSTALL_NAME = $(RUBY_BASE_NAME)
101
+ RUBY_SO_NAME = ruby.2.6
102
+ RUBYW_INSTALL_NAME =
103
+ RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
104
+ RUBYW_BASE_NAME = rubyw
105
+ RUBY_BASE_NAME = ruby
106
+
107
+ arch = x86_64-darwin18
108
+ sitearch = $(arch)
109
+ ruby_version = 2.6.0
110
+ ruby = $(bindir)/$(RUBY_BASE_NAME)
111
+ RUBY = $(ruby)
112
+ ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/backward.h $(hdrdir)/ruby/ruby.h $(hdrdir)/ruby/defines.h $(hdrdir)/ruby/missing.h $(hdrdir)/ruby/intern.h $(hdrdir)/ruby/st.h $(hdrdir)/ruby/subst.h $(arch_hdrdir)/ruby/config.h
113
+
114
+ RM = rm -f
115
+ RM_RF = $(RUBY) -run -e rm -- -rf
116
+ RMDIRS = rmdir -p
117
+ MAKEDIRS = /opt/local/bin/gmkdir -p
118
+ INSTALL = /opt/local/bin/ginstall -c
119
+ INSTALL_PROG = $(INSTALL) -m 0755
120
+ INSTALL_DATA = $(INSTALL) -m 644
121
+ COPY = cp
122
+ TOUCH = exit >
123
+
124
+ #### End of system configuration section. ####
125
+
126
+ preload =
127
+ libpath = . $(libdir) /opt/local/lib
128
+ LIBPATH = -L. -L$(libdir) -L/opt/local/lib
129
+ DEFFILE =
130
+
131
+ CLEANFILES = mkmf.log
132
+ DISTCLEANFILES =
133
+ DISTCLEANDIRS =
134
+
135
+ extout =
136
+ extout_prefix =
137
+ target_prefix = /trenni
138
+ LOCAL_LIBS =
139
+ LIBS = $(LIBRUBYARG_SHARED)
140
+ ORIG_SRCS = escape.c markup.c tag.c template.c trenni.c
141
+ SRCS = $(ORIG_SRCS)
142
+ OBJS = escape.o markup.o tag.o template.o trenni.o
143
+ HDRS = $(srcdir)/tag.h $(srcdir)/markup.h $(srcdir)/escape.h $(srcdir)/trenni.h $(srcdir)/template.h
144
+ LOCAL_HDRS =
145
+ TARGET = trenni
146
+ TARGET_NAME = trenni
147
+ TARGET_ENTRY = Init_$(TARGET_NAME)
148
+ DLLIB = $(TARGET).bundle
149
+ EXTSTATIC =
150
+ STATIC_LIB =
151
+
152
+ TIMESTAMP_DIR = .
153
+ BINDIR = $(bindir)
154
+ RUBYCOMMONDIR = $(sitedir)$(target_prefix)
155
+ RUBYLIBDIR = $(sitelibdir)$(target_prefix)
156
+ RUBYARCHDIR = $(sitearchdir)$(target_prefix)
157
+ HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
158
+ ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
159
+ TARGET_SO_DIR =
160
+ TARGET_SO = $(TARGET_SO_DIR)$(DLLIB)
161
+ CLEANLIBS = $(TARGET_SO)
162
+ CLEANOBJS = *.o *.bak
163
+
164
+ all: $(DLLIB)
165
+ static: $(STATIC_LIB)
166
+ .PHONY: all install static install-so install-rb
167
+ .PHONY: clean clean-so clean-static clean-rb
168
+
169
+ clean-static::
170
+ clean-rb-default::
171
+ clean-rb::
172
+ clean-so::
173
+ clean: clean-so clean-static clean-rb-default clean-rb
174
+ -$(Q)$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) .*.time
175
+
176
+ distclean-rb-default::
177
+ distclean-rb::
178
+ distclean-so::
179
+ distclean-static::
180
+ distclean: clean distclean-so distclean-static distclean-rb-default distclean-rb
181
+ -$(Q)$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
182
+ -$(Q)$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
183
+ -$(Q)$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
184
+
185
+ realclean: distclean
186
+ install: install-so install-rb
187
+
188
+ install-so: $(DLLIB) $(TIMESTAMP_DIR)/.sitearchdir.-.trenni.time
189
+ $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
190
+ clean-static::
191
+ -$(Q)$(RM) $(STATIC_LIB)
192
+ install-rb: pre-install-rb do-install-rb install-rb-default
193
+ install-rb-default: pre-install-rb-default do-install-rb-default
194
+ pre-install-rb: Makefile
195
+ pre-install-rb-default: Makefile
196
+ do-install-rb:
197
+ do-install-rb-default:
198
+ pre-install-rb-default:
199
+ @$(NULLCMD)
200
+ $(TIMESTAMP_DIR)/.sitearchdir.-.trenni.time:
201
+ $(Q) $(MAKEDIRS) $(@D) $(RUBYARCHDIR)
202
+ $(Q) $(TOUCH) $@
203
+
204
+ site-install: site-install-so site-install-rb
205
+ site-install-so: install-so
206
+ site-install-rb: install-rb
207
+
208
+ .SUFFIXES: .c .m .cc .mm .cxx .cpp .o .S
209
+
210
+ .cc.o:
211
+ $(ECHO) compiling $(<)
212
+ $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
213
+
214
+ .cc.S:
215
+ $(ECHO) translating $(<)
216
+ $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
217
+
218
+ .mm.o:
219
+ $(ECHO) compiling $(<)
220
+ $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
221
+
222
+ .mm.S:
223
+ $(ECHO) translating $(<)
224
+ $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
225
+
226
+ .cxx.o:
227
+ $(ECHO) compiling $(<)
228
+ $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
229
+
230
+ .cxx.S:
231
+ $(ECHO) translating $(<)
232
+ $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
233
+
234
+ .cpp.o:
235
+ $(ECHO) compiling $(<)
236
+ $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
237
+
238
+ .cpp.S:
239
+ $(ECHO) translating $(<)
240
+ $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
241
+
242
+ .c.o:
243
+ $(ECHO) compiling $(<)
244
+ $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
245
+
246
+ .c.S:
247
+ $(ECHO) translating $(<)
248
+ $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
249
+
250
+ .m.o:
251
+ $(ECHO) compiling $(<)
252
+ $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
253
+
254
+ .m.S:
255
+ $(ECHO) translating $(<)
256
+ $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
257
+
258
+ $(TARGET_SO): $(OBJS) Makefile
259
+ $(ECHO) linking shared-object trenni/$(DLLIB)
260
+ -$(Q)$(RM) $(@)
261
+ $(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
262
+ $(Q) $(POSTLINK)
263
+
264
+
265
+
266
+ $(OBJS): $(HDRS) $(ruby_headers)
@@ -0,0 +1,109 @@
1
+ have_func: checking for rb_sym2str()... -------------------- yes
2
+
3
+ " gcc -o conftest -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0/x86_64-darwin18 -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0/ruby/backward -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0 -I../../../../trenni -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -ggdb3 -Wall -Wextra -Wdeclaration-after-statement -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wmissing-noreturn -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens -fno-common -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rvm/rubies/ruby-2.6.2/lib -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib -lruby.2.6 "
4
+ checked program was:
5
+ /* begin */
6
+ 1: #include "ruby.h"
7
+ 2:
8
+ 3: int main(int argc, char **argv)
9
+ 4: {
10
+ 5: return 0;
11
+ 6: }
12
+ /* end */
13
+
14
+ " gcc -o conftest -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0/x86_64-darwin18 -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0/ruby/backward -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0 -I../../../../trenni -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -ggdb3 -Wall -Wextra -Wdeclaration-after-statement -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wmissing-noreturn -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens -fno-common -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rvm/rubies/ruby-2.6.2/lib -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib -lruby.2.6 "
15
+ checked program was:
16
+ /* begin */
17
+ 1: #include "ruby.h"
18
+ 2:
19
+ 3: /*top*/
20
+ 4: extern int t(void);
21
+ 5: int main(int argc, char **argv)
22
+ 6: {
23
+ 7: if (argc > 1000000) {
24
+ 8: int (* volatile tp)(void)=(int (*)(void))&t;
25
+ 9: printf("%d", (*tp)());
26
+ 10: }
27
+ 11:
28
+ 12: return 0;
29
+ 13: }
30
+ 14: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_sym2str; return !p; }
31
+ /* end */
32
+
33
+ --------------------
34
+
35
+ have_func: checking for rb_str_cat_cstr()... -------------------- yes
36
+
37
+ " gcc -o conftest -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0/x86_64-darwin18 -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0/ruby/backward -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0 -I../../../../trenni -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -ggdb3 -Wall -Wextra -Wdeclaration-after-statement -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wmissing-noreturn -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens -fno-common -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rvm/rubies/ruby-2.6.2/lib -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib -lruby.2.6 "
38
+ checked program was:
39
+ /* begin */
40
+ 1: #include "ruby.h"
41
+ 2:
42
+ 3: /*top*/
43
+ 4: extern int t(void);
44
+ 5: int main(int argc, char **argv)
45
+ 6: {
46
+ 7: if (argc > 1000000) {
47
+ 8: int (* volatile tp)(void)=(int (*)(void))&t;
48
+ 9: printf("%d", (*tp)());
49
+ 10: }
50
+ 11:
51
+ 12: return 0;
52
+ 13: }
53
+ 14: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_str_cat_cstr; return !p; }
54
+ /* end */
55
+
56
+ --------------------
57
+
58
+ have_func: checking for rb_str_reserve()... -------------------- no
59
+
60
+ " gcc -o conftest -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0/x86_64-darwin18 -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0/ruby/backward -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0 -I../../../../trenni -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -ggdb3 -Wall -Wextra -Wdeclaration-after-statement -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wmissing-noreturn -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens -fno-common -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rvm/rubies/ruby-2.6.2/lib -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib -lruby.2.6 "
61
+ conftest.c:14:57: error: use of undeclared identifier 'rb_str_reserve'
62
+ int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_str_reserve; return !p; }
63
+ ^
64
+ 1 error generated.
65
+ checked program was:
66
+ /* begin */
67
+ 1: #include "ruby.h"
68
+ 2:
69
+ 3: /*top*/
70
+ 4: extern int t(void);
71
+ 5: int main(int argc, char **argv)
72
+ 6: {
73
+ 7: if (argc > 1000000) {
74
+ 8: int (* volatile tp)(void)=(int (*)(void))&t;
75
+ 9: printf("%d", (*tp)());
76
+ 10: }
77
+ 11:
78
+ 12: return 0;
79
+ 13: }
80
+ 14: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_str_reserve; return !p; }
81
+ /* end */
82
+
83
+ " gcc -o conftest -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0/x86_64-darwin18 -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0/ruby/backward -I/Users/samuel/.rvm/rubies/ruby-2.6.2/include/ruby-2.6.0 -I../../../../trenni -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -ggdb3 -Wall -Wextra -Wdeclaration-after-statement -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wmissing-noreturn -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens -fno-common -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rvm/rubies/ruby-2.6.2/lib -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib -lruby.2.6 "
84
+ Undefined symbols for architecture x86_64:
85
+ "_rb_str_reserve", referenced from:
86
+ _t in conftest-3d978f.o
87
+ ld: symbol(s) not found for architecture x86_64
88
+ clang: error: linker command failed with exit code 1 (use -v to see invocation)
89
+ checked program was:
90
+ /* begin */
91
+ 1: #include "ruby.h"
92
+ 2:
93
+ 3: /*top*/
94
+ 4: extern int t(void);
95
+ 5: int main(int argc, char **argv)
96
+ 6: {
97
+ 7: if (argc > 1000000) {
98
+ 8: int (* volatile tp)(void)=(int (*)(void))&t;
99
+ 9: printf("%d", (*tp)());
100
+ 10: }
101
+ 11:
102
+ 12: return 0;
103
+ 13: }
104
+ 14: extern void rb_str_reserve();
105
+ 15: int t(void) { rb_str_reserve(); return 0; }
106
+ /* end */
107
+
108
+ --------------------
109
+
@@ -12,12 +12,12 @@ NULLCMD = :
12
12
  #### Start of system configuration section. ####
13
13
 
14
14
  srcdir = ../../../../trenni
15
- topdir = /home/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0
15
+ topdir = /Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0
16
16
  hdrdir = $(topdir)
17
- arch_hdrdir = /home/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0/x86_64-linux
17
+ arch_hdrdir = /Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0/x86_64-darwin19
18
18
  PATH_SEPARATOR = :
19
19
  VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
20
- prefix = $(DESTDIR)/home/samuel/.rubies/ruby-2.7.1
20
+ prefix = $(DESTDIR)/Users/samuel/.rubies/ruby-2.7.1
21
21
  rubysitearchprefix = $(rubylibprefix)/$(sitearch)
22
22
  rubyarchprefix = $(rubylibprefix)/$(arch)
23
23
  rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
@@ -50,7 +50,7 @@ dvidir = $(docdir)
50
50
  htmldir = $(docdir)
51
51
  infodir = $(datarootdir)/info
52
52
  docdir = $(datarootdir)/doc/$(PACKAGE)
53
- oldincludedir = $(DESTDIR)/usr/include
53
+ oldincludedir = $(SDKROOT)/usr/include
54
54
  includedir = $(prefix)/include
55
55
  runstatedir = $(localstatedir)/run
56
56
  localstatedir = $(prefix)/var
@@ -65,12 +65,12 @@ archdir = $(rubyarchdir)
65
65
 
66
66
 
67
67
  CC_WRAPPER =
68
- CC = gcc
69
- CXX = g++
68
+ CC = clang
69
+ CXX = clang++
70
70
  LIBRUBY = $(LIBRUBY_A)
71
71
  LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
72
- LIBRUBYARG_SHARED = -Wl,-rpath,$(libdir) -L$(libdir)
73
- LIBRUBYARG_STATIC = -Wl,-rpath,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static $(MAINLIBS)
72
+ LIBRUBYARG_SHARED =
73
+ LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static -framework Security -framework Foundation $(MAINLIBS)
74
74
  empty =
75
75
  OUTFLAG = -o $(empty)
76
76
  COUTFLAG = -o $(empty)
@@ -81,31 +81,31 @@ cflags = $(optflags) $(debugflags) $(warnflags)
81
81
  cxxflags =
82
82
  optflags = -O3
83
83
  debugflags = -ggdb3
84
- warnflags = -Wall -Wextra -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable
84
+ warnflags = -Wall -Wextra -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wmissing-noreturn -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens
85
85
  cppflags =
86
- CCDLFLAGS = -fPIC
87
- CFLAGS = $(CCDLFLAGS) $(cflags) -O3 -std=c99 $(ARCH_FLAG)
86
+ CCDLFLAGS = -fno-common
87
+ CFLAGS = $(CCDLFLAGS) $(cflags) -pipe -O3 -std=c99 $(ARCH_FLAG)
88
88
  INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
89
89
  DEFS =
90
- CPPFLAGS = -DHAVE_RB_SYM2STR -DHAVE_RB_STR_CAT_CSTR $(DEFS) $(cppflags)
90
+ CPPFLAGS = -DHAVE_RB_SYM2STR -DHAVE_RB_STR_CAT_CSTR -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT $(DEFS) $(cppflags)
91
91
  CXXFLAGS = $(CCDLFLAGS) -g -O2 $(ARCH_FLAG)
92
- ldflags = -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic
93
- dldflags = -Wl,--compress-debug-sections=zlib
92
+ ldflags = -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib
93
+ dldflags = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -L/opt/local/lib
94
94
  ARCH_FLAG =
95
95
  DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
96
- LDSHARED = $(CC) -shared
97
- LDSHAREDXX = $(CXX) -shared
98
- AR = ar
96
+ LDSHARED = $(CC) -dynamic -bundle
97
+ LDSHAREDXX = $(CXX) -dynamic -bundle
98
+ AR = libtool -static
99
99
  EXEEXT =
100
100
 
101
101
  RUBY_INSTALL_NAME = $(RUBY_BASE_NAME)
102
- RUBY_SO_NAME = ruby
102
+ RUBY_SO_NAME = ruby.2.7
103
103
  RUBYW_INSTALL_NAME =
104
104
  RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
105
105
  RUBYW_BASE_NAME = rubyw
106
106
  RUBY_BASE_NAME = ruby
107
107
 
108
- arch = x86_64-linux
108
+ arch = x86_64-darwin19
109
109
  sitearch = $(arch)
110
110
  ruby_version = 2.7.0
111
111
  ruby = $(bindir)/$(RUBY_BASE_NAME)
@@ -114,9 +114,9 @@ ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/backward.h $(hdrdir)/ruby/ruby.h
114
114
 
115
115
  RM = rm -f
116
116
  RM_RF = $(RUBY) -run -e rm -- -rf
117
- RMDIRS = rmdir --ignore-fail-on-non-empty -p
118
- MAKEDIRS = /usr/bin/mkdir -p
119
- INSTALL = /usr/bin/install -c
117
+ RMDIRS = rmdir -p
118
+ MAKEDIRS = /opt/local/bin/gmkdir -p
119
+ INSTALL = /opt/local/bin/ginstall -c
120
120
  INSTALL_PROG = $(INSTALL) -m 0755
121
121
  INSTALL_DATA = $(INSTALL) -m 644
122
122
  COPY = cp
@@ -125,8 +125,8 @@ TOUCH = exit >
125
125
  #### End of system configuration section. ####
126
126
 
127
127
  preload =
128
- libpath = . $(libdir)
129
- LIBPATH = -L. -L$(libdir) -Wl,-rpath,$(libdir)
128
+ libpath = . $(libdir) /opt/local/lib
129
+ LIBPATH = -L. -L$(libdir) -L/opt/local/lib
130
130
  DEFFILE =
131
131
 
132
132
  CLEANFILES = mkmf.log
@@ -137,16 +137,16 @@ extout =
137
137
  extout_prefix =
138
138
  target_prefix = /trenni
139
139
  LOCAL_LIBS =
140
- LIBS = -lm -lc
140
+ LIBS =
141
141
  ORIG_SRCS = escape.c markup.c query.c tag.c template.c trenni.c
142
142
  SRCS = $(ORIG_SRCS)
143
143
  OBJS = escape.o markup.o query.o tag.o template.o trenni.o
144
- HDRS = $(srcdir)/tag.h $(srcdir)/trenni.h $(srcdir)/markup.h $(srcdir)/query.h $(srcdir)/escape.h $(srcdir)/template.h
144
+ HDRS = $(srcdir)/tag.h $(srcdir)/query.h $(srcdir)/markup.h $(srcdir)/escape.h $(srcdir)/trenni.h $(srcdir)/template.h
145
145
  LOCAL_HDRS =
146
146
  TARGET = trenni
147
147
  TARGET_NAME = trenni
148
148
  TARGET_ENTRY = Init_$(TARGET_NAME)
149
- DLLIB = $(TARGET).so
149
+ DLLIB = $(TARGET).bundle
150
150
  EXTSTATIC =
151
151
  STATIC_LIB =
152
152
 
@@ -260,6 +260,7 @@ $(TARGET_SO): $(OBJS) Makefile
260
260
  $(ECHO) linking shared-object trenni/$(DLLIB)
261
261
  -$(Q)$(RM) $(@)
262
262
  $(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
263
+ $(Q) $(POSTLINK)
263
264
 
264
265
 
265
266
 
@@ -0,0 +1,109 @@
1
+ have_func: checking for rb_sym2str()... -------------------- yes
2
+
3
+ "clang -o conftest -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0/x86_64-darwin19 -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0/ruby/backward -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0 -I../../../../trenni -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wmissing-noreturn -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rubies/ruby-2.7.1/lib -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib -lruby.2.7-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc "
4
+ checked program was:
5
+ /* begin */
6
+ 1: #include "ruby.h"
7
+ 2:
8
+ 3: int main(int argc, char **argv)
9
+ 4: {
10
+ 5: return !!argv[argc];
11
+ 6: }
12
+ /* end */
13
+
14
+ "clang -o conftest -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0/x86_64-darwin19 -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0/ruby/backward -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0 -I../../../../trenni -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wmissing-noreturn -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rubies/ruby-2.7.1/lib -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib -lruby.2.7-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc "
15
+ checked program was:
16
+ /* begin */
17
+ 1: #include "ruby.h"
18
+ 2:
19
+ 3: /*top*/
20
+ 4: extern int t(void);
21
+ 5: int main(int argc, char **argv)
22
+ 6: {
23
+ 7: if (argc > 1000000) {
24
+ 8: int (* volatile tp)(void)=(int (*)(void))&t;
25
+ 9: printf("%d", (*tp)());
26
+ 10: }
27
+ 11:
28
+ 12: return !!argv[argc];
29
+ 13: }
30
+ 14: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_sym2str; return !p; }
31
+ /* end */
32
+
33
+ --------------------
34
+
35
+ have_func: checking for rb_str_cat_cstr()... -------------------- yes
36
+
37
+ "clang -o conftest -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0/x86_64-darwin19 -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0/ruby/backward -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0 -I../../../../trenni -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wmissing-noreturn -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rubies/ruby-2.7.1/lib -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib -lruby.2.7-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc "
38
+ checked program was:
39
+ /* begin */
40
+ 1: #include "ruby.h"
41
+ 2:
42
+ 3: /*top*/
43
+ 4: extern int t(void);
44
+ 5: int main(int argc, char **argv)
45
+ 6: {
46
+ 7: if (argc > 1000000) {
47
+ 8: int (* volatile tp)(void)=(int (*)(void))&t;
48
+ 9: printf("%d", (*tp)());
49
+ 10: }
50
+ 11:
51
+ 12: return !!argv[argc];
52
+ 13: }
53
+ 14: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_str_cat_cstr; return !p; }
54
+ /* end */
55
+
56
+ --------------------
57
+
58
+ have_func: checking for rb_str_reserve()... -------------------- no
59
+
60
+ "clang -o conftest -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0/x86_64-darwin19 -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0/ruby/backward -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0 -I../../../../trenni -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wmissing-noreturn -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rubies/ruby-2.7.1/lib -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib -lruby.2.7-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc "
61
+ conftest.c:14:57: error: use of undeclared identifier 'rb_str_reserve'
62
+ int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_str_reserve; return !p; }
63
+ ^
64
+ 1 error generated.
65
+ checked program was:
66
+ /* begin */
67
+ 1: #include "ruby.h"
68
+ 2:
69
+ 3: /*top*/
70
+ 4: extern int t(void);
71
+ 5: int main(int argc, char **argv)
72
+ 6: {
73
+ 7: if (argc > 1000000) {
74
+ 8: int (* volatile tp)(void)=(int (*)(void))&t;
75
+ 9: printf("%d", (*tp)());
76
+ 10: }
77
+ 11:
78
+ 12: return !!argv[argc];
79
+ 13: }
80
+ 14: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_str_reserve; return !p; }
81
+ /* end */
82
+
83
+ "clang -o conftest -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0/x86_64-darwin19 -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0/ruby/backward -I/Users/samuel/.rubies/ruby-2.7.1/include/ruby-2.7.0 -I../../../../trenni -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wmissing-noreturn -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens -pipe -O3 -std=c99 conftest.c -L. -L/Users/samuel/.rubies/ruby-2.7.1/lib -L/opt/local/lib -L. -fstack-protector-strong -L/usr/local/lib -L/opt/local/lib -lruby.2.7-static -framework Security -framework Foundation -lpthread -lgmp -ldl -lobjc "
84
+ Undefined symbols for architecture x86_64:
85
+ "_rb_str_reserve", referenced from:
86
+ _t in conftest-b80e49.o
87
+ ld: symbol(s) not found for architecture x86_64
88
+ clang: error: linker command failed with exit code 1 (use -v to see invocation)
89
+ checked program was:
90
+ /* begin */
91
+ 1: #include "ruby.h"
92
+ 2:
93
+ 3: /*top*/
94
+ 4: extern int t(void);
95
+ 5: int main(int argc, char **argv)
96
+ 6: {
97
+ 7: if (argc > 1000000) {
98
+ 8: int (* volatile tp)(void)=(int (*)(void))&t;
99
+ 9: printf("%d", (*tp)());
100
+ 10: }
101
+ 11:
102
+ 12: return !!argv[argc];
103
+ 13: }
104
+ 14: extern void rb_str_reserve();
105
+ 15: int t(void) { rb_str_reserve(); return 0; }
106
+ /* end */
107
+
108
+ --------------------
109
+