felixge (owner)

Revisions

gist: 223766 Download_button fork
public
Public Clone URL: git://gist.github.com/223766.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
felix-mbp-2009:~ felix$ sudo gem install oniguruma
Building native extensions. This could take a while...
ERROR: Error installing oniguruma:
ERROR: Failed to build gem native extension.
 
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
checking for main() in -lonig... no
creating Makefile
 
make
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -fno-common -Wall -c oregexp.c
oregexp.c:2:23: error: oniguruma.h: No such file or directory
oregexp.c:9: error: syntax error before ‘regex_t’
oregexp.c:9: warning: no semicolon at end of struct or union
oregexp.c:10: warning: type defaults to ‘int’ in declaration of ‘ORegexp’
oregexp.c:10: warning: data definition has no type or storage class
oregexp.c:15: error: syntax error before ‘*’ token
oregexp.c: In function ‘oregexp_free’:
oregexp.c:16: warning: implicit declaration of function ‘onig_free’
oregexp.c:16: error: ‘oregexp’ undeclared (first use in this function)
oregexp.c:16: error: (Each undeclared identifier is reported only once
oregexp.c:16: error: for each function it appears in.)
oregexp.c: In function ‘oregexp_allocate’:
oregexp.c:21: error: ‘oregexp’ undeclared (first use in this function)
oregexp.c: At top level:
oregexp.c:27: error: syntax error before ‘*’ token
oregexp.c:27: warning: return type defaults to ‘int’
oregexp.c: In function ‘int2encoding’:
oregexp.c:32: error: ‘ONIG_ENCODING_ASCII’ undeclared (first use in this function)
oregexp.c:33: error: ‘ONIG_ENCODING_ISO_8859_1’ undeclared (first use in this function)
oregexp.c:34: error: ‘ONIG_ENCODING_ISO_8859_2’ undeclared (first use in this function)
oregexp.c:35: error: ‘ONIG_ENCODING_ISO_8859_3’ undeclared (first use in this function)
oregexp.c:36: error: ‘ONIG_ENCODING_ISO_8859_4’ undeclared (first use in this function)
oregexp.c:37: error: ‘ONIG_ENCODING_ISO_8859_5’ undeclared (first use in this function)
oregexp.c:38: error: ‘ONIG_ENCODING_ISO_8859_6’ undeclared (first use in this function)
oregexp.c:39: error: ‘ONIG_ENCODING_ISO_8859_7’ undeclared (first use in this function)
oregexp.c:40: error: ‘ONIG_ENCODING_ISO_8859_8’ undeclared (first use in this function)
oregexp.c:41: error: ‘ONIG_ENCODING_ISO_8859_9’ undeclared (first use in this function)
oregexp.c:42: error: ‘ONIG_ENCODING_ISO_8859_10’ undeclared (first use in this function)
oregexp.c:43: error: ‘ONIG_ENCODING_ISO_8859_11’ undeclared (first use in this function)
oregexp.c:45: error: ‘ONIG_ENCODING_ISO_8859_13’ undeclared (first use in this function)
oregexp.c:46: error: ‘ONIG_ENCODING_ISO_8859_14’ undeclared (first use in this function)
oregexp.c:47: error: ‘ONIG_ENCODING_ISO_8859_15’ undeclared (first use in this function)
oregexp.c:48: error: ‘ONIG_ENCODING_ISO_8859_16’ undeclared (first use in this function)
oregexp.c:49: error: ‘ONIG_ENCODING_UTF8’ undeclared (first use in this function)
oregexp.c:50: error: ‘ONIG_ENCODING_UTF16_BE’ undeclared (first use in this function)
oregexp.c:51: error: ‘ONIG_ENCODING_UTF16_LE’ undeclared (first use in this function)
oregexp.c:52: error: ‘ONIG_ENCODING_UTF32_BE’ undeclared (first use in this function)
oregexp.c:53: error: ‘ONIG_ENCODING_UTF32_LE’ undeclared (first use in this function)
oregexp.c:54: error: ‘ONIG_ENCODING_EUC_JP’ undeclared (first use in this function)
oregexp.c:55: error: ‘ONIG_ENCODING_EUC_TW’ undeclared (first use in this function)
oregexp.c:56: error: ‘ONIG_ENCODING_EUC_KR’ undeclared (first use in this function)
oregexp.c:57: error: ‘ONIG_ENCODING_EUC_CN’ undeclared (first use in this function)
oregexp.c:58: error: ‘ONIG_ENCODING_SJIS’ undeclared (first use in this function)
oregexp.c:60: error: ‘ONIG_ENCODING_KOI8_R’ undeclared (first use in this function)
oregexp.c:64: error: ‘ONIG_ENCODING_BIG5’ undeclared (first use in this function)
oregexp.c:65: error: ‘ONIG_ENCODING_GB18030’ undeclared (first use in this function)
oregexp.c:66: error: ‘ONIG_ENCODING_UNDEF’ undeclared (first use in this function)
oregexp.c:70: warning: control reaches end of non-void function
oregexp.c: At top level:
oregexp.c:72: error: syntax error before ‘*’ token
oregexp.c:72: warning: return type defaults to ‘int’
oregexp.c: In function ‘int2syntax’:
oregexp.c:77: error: ‘ONIG_SYNTAX_ASIS’ undeclared (first use in this function)
oregexp.c:78: error: ‘ONIG_SYNTAX_POSIX_BASIC’ undeclared (first use in this function)
oregexp.c:79: error: ‘ONIG_SYNTAX_POSIX_EXTENDED’ undeclared (first use in this function)
oregexp.c:80: error: ‘ONIG_SYNTAX_EMACS’ undeclared (first use in this function)
oregexp.c:81: error: ‘ONIG_SYNTAX_GREP’ undeclared (first use in this function)
oregexp.c:82: error: ‘ONIG_SYNTAX_GNU_REGEX’ undeclared (first use in this function)
oregexp.c:83: error: ‘ONIG_SYNTAX_JAVA’ undeclared (first use in this function)
oregexp.c:84: error: ‘ONIG_SYNTAX_PERL’ undeclared (first use in this function)
oregexp.c:85: error: ‘ONIG_SYNTAX_PERL_NG’ undeclared (first use in this function)
oregexp.c:86: error: ‘ONIG_SYNTAX_RUBY’ undeclared (first use in this function)
oregexp.c:87: error: ‘ONIG_SYNTAX_DEFAULT’ undeclared (first use in this function)
oregexp.c:91: warning: control reaches end of non-void function
oregexp.c: At top level:
oregexp.c:95: error: syntax error before ‘OnigRegion’
oregexp.c:95: warning: no semicolon at end of struct or union
oregexp.c:99: warning: type defaults to ‘int’ in declaration of ‘UChar’
oregexp.c:99: error: syntax error before ‘*’ token
oregexp.c: In function ‘name_callback’:
oregexp.c:107: error: ‘arg’ undeclared (first use in this function)
oregexp.c:109: error: ‘ngroup_num’ undeclared (first use in this function)
oregexp.c:110: error: ‘group_nums’ undeclared (first use in this function)
oregexp.c:111: error: ‘name’ undeclared (first use in this function)
oregexp.c: In function ‘oregexp_initialize’:
oregexp.c:117: error: ‘oregexp’ undeclared (first use in this function)
oregexp.c:118: error: syntax error before ‘)’ token
oregexp.c:123: error: ‘UChar’ undeclared (first use in this function)
oregexp.c:123: error: ‘pat_ptr’ undeclared (first use in this function)
oregexp.c:129: error: ‘OnigEncodingType’ undeclared (first use in this function)
oregexp.c:129: error: ‘iEncoding’ undeclared (first use in this function)
oregexp.c:130: error: ‘OnigSyntaxType’ undeclared (first use in this function)
oregexp.c:130: error: ‘iSyntax’ undeclared (first use in this function)
oregexp.c:134: error: ‘OnigErrorInfo’ undeclared (first use in this function)
oregexp.c:134: error: syntax error before ‘einfo’
oregexp.c:135: warning: implicit declaration of function ‘onig_new’
oregexp.c:135: error: ‘einfo’ undeclared (first use in this function)
oregexp.c:136: error: ‘ONIG_NORMAL’ undeclared (first use in this function)
oregexp.c:137: error: ‘ONIG_MAX_ERROR_MESSAGE_LEN’ undeclared (first use in this function)
oregexp.c:138: warning: implicit declaration of function ‘onig_error_code_to_str’
oregexp.c:137: warning: unused variable ‘s’
oregexp.c: At top level:
oregexp.c:153: error: syntax error before ‘*’ token
oregexp.c: In function ‘oregexp_make_match_data’:
oregexp.c:158: error: ‘region’ undeclared (first use in this function)
oregexp.c:159: error: storage size of ‘packet’ isn’t known
oregexp.c:161: error: ‘string_str’ undeclared (first use in this function)
oregexp.c:162: error: invalid application of ‘sizeof’ to incomplete type ‘struct re_registers’
oregexp.c:163: error: dereferencing pointer to incomplete type
oregexp.c:164: error: dereferencing pointer to incomplete type
oregexp.c:165: error: dereferencing pointer to incomplete type
oregexp.c:166: error: dereferencing pointer to incomplete type
oregexp.c:169: error: dereferencing pointer to incomplete type
oregexp.c:170: error: dereferencing pointer to incomplete type
oregexp.c:174: warning: implicit declaration of function ‘onig_number_of_names’
oregexp.c:174: error: ‘oregexp’ undeclared (first use in this function)
oregexp.c:176: warning: implicit declaration of function ‘onig_foreach_name’
oregexp.c:159: warning: unused variable ‘packet’
oregexp.c: In function ‘oregexp_match’:
oregexp.c:205: error: ‘oregexp’ undeclared (first use in this function)
oregexp.c:206: error: syntax error before ‘)’ token
oregexp.c:211: warning: statement with no effect
oregexp.c:215: error: ‘UChar’ undeclared (first use in this function)
oregexp.c:215: error: ‘str_ptr’ undeclared (first use in this function)
oregexp.c:229: error: ‘OnigRegion’ undeclared (first use in this function)
oregexp.c:229: error: ‘region’ undeclared (first use in this function)
oregexp.c:229: warning: implicit declaration of function ‘onig_region_new’
oregexp.c:230: warning: implicit declaration of function ‘onig_search’
oregexp.c:230: error: ‘ONIG_OPTION_NONE’ undeclared (first use in this function)
oregexp.c:234: warning: implicit declaration of function ‘onig_region_free’
oregexp.c:238: error: ‘ONIG_MISMATCH’ undeclared (first use in this function)
oregexp.c:243: error: ‘ONIG_MAX_ERROR_MESSAGE_LEN’ undeclared (first use in this function)
oregexp.c:243: warning: unused variable ‘s’
oregexp.c:248: warning: control reaches end of non-void function
oregexp.c: At top level:
oregexp.c:250: error: syntax error before ‘BACKSLASH’
oregexp.c:250: warning: type defaults to ‘int’ in declaration of ‘BACKSLASH’
oregexp.c:250: warning: data definition has no type or storage class
oregexp.c: In function ‘oregexp_append_replacement’:
oregexp.c:262: error: syntax error before ‘OnigRegion’
oregexp.c:265: error: ‘oregexp’ undeclared (first use in this function)
oregexp.c:268: error: ‘UChar’ undeclared (first use in this function)
oregexp.c:268: error: ‘replacementText’ undeclared (first use in this function)
oregexp.c:269: error: ‘replacementEnd’ undeclared (first use in this function)
oregexp.c:272: error: ‘OnigCodePoint’ undeclared (first use in this function)
oregexp.c:272: error: syntax error before ‘digitC’
oregexp.c:273: error: ‘OnigEncoding’ undeclared (first use in this function)
oregexp.c:274: error: nested functions are disabled, use -fnested-functions to re-enable
oregexp.c:274: error: syntax error before ‘*’ token
oregexp.c:277: error: ‘matchText’ undeclared (first use in this function)
oregexp.c:279: error: syntax error before ‘)’ token
oregexp.c:280: error: ‘enc’ undeclared (first use in this function)
oregexp.c:280: warning: implicit declaration of function ‘onig_get_encoding’
oregexp.c:283: error: syntax error before ‘c’
oregexp.c:284: warning: implicit declaration of function ‘ONIGENC_MBC_ENC_LEN’
oregexp.c:286: error: ‘c’ undeclared (first use in this function)
oregexp.c:307: error: ‘digitC’ undeclared (first use in this function)
oregexp.c:307: warning: implicit declaration of function ‘ONIGENC_MBC_TO_CODE’
oregexp.c:309: warning: implicit declaration of function ‘ONIGENC_IS_CODE_DIGIT’
oregexp.c:328: error: invalid type argument of ‘->’
oregexp.c:328: error: invalid type argument of ‘->’
oregexp.c:328: error: invalid type argument of ‘->’
oregexp.c:332: error: invalid type argument of ‘->’
oregexp.c:336: error: invalid type argument of ‘->’
oregexp.c:336: error: invalid type argument of ‘->’
oregexp.c:346: error: invalid type argument of ‘->’
oregexp.c:347: error: invalid type argument of ‘->’
oregexp.c:348: error: invalid type argument of ‘->’
oregexp.c:363: warning: implicit declaration of function ‘ONIGENC_IS_CODE_WORD’
oregexp.c:375: warning: implicit declaration of function ‘onig_name_to_backref_number’
oregexp.c:378: error: invalid type argument of ‘->’
oregexp.c:379: error: invalid type argument of ‘->’
oregexp.c:379: error: invalid type argument of ‘->’
oregexp.c:391: error: invalid type argument of ‘->’
oregexp.c:391: error: invalid type argument of ‘->’
oregexp.c:392: error: invalid type argument of ‘->’
oregexp.c:392: error: invalid type argument of ‘->’
oregexp.c:392: error: invalid type argument of ‘->’
oregexp.c: In function ‘oregexp_gsub’:
oregexp.c:417: error: syntax error before ‘OnigRegion’
oregexp.c:428: error: ‘oregexp’ undeclared (first use in this function)
oregexp.c:429: error: ‘OnigEncoding’ undeclared (first use in this function)
oregexp.c:429: error: syntax error before ‘enc’
oregexp.c:441: error: syntax error before ‘)’ token
oregexp.c:444: error: ‘UChar’ undeclared (first use in this function)
oregexp.c:444: error: ‘str_ptr’ undeclared (first use in this function)
oregexp.c:447: error: ‘ONIG_OPTION_NONE’ undeclared (first use in this function)
oregexp.c:457: error: ‘enc’ undeclared (first use in this function)
oregexp.c:460: error: invalid type argument of ‘->’
oregexp.c:461: error: invalid type argument of ‘->’
oregexp.c: At top level:
oregexp.c:510: error: syntax error before ‘OnigRegion’
oregexp.c:510: warning: no semicolon at end of struct or union
oregexp.c:511: warning: type defaults to ‘int’ in declaration of ‘gsub_packet’
oregexp.c:511: warning: data definition has no type or storage class
oregexp.c:512: error: syntax error before ‘*’ token
oregexp.c: In function ‘oregexp_packed_gsub’:
oregexp.c:513: error: ‘args’ undeclared (first use in this function)
oregexp.c: At top level:
oregexp.c:515: error: syntax error before ‘*’ token
oregexp.c: In function ‘oregexp_cleanup_region’:
oregexp.c:516: error: ‘region’ undeclared (first use in this function)
oregexp.c: In function ‘oregexp_safe_gsub’:
oregexp.c:525: error: ‘OnigRegion’ undeclared (first use in this function)
oregexp.c:525: error: ‘region’ undeclared (first use in this function)
oregexp.c:526: error: syntax error before ‘call_args’
oregexp.c:526: warning: control reaches end of non-void function
oregexp.c: At top level:
oregexp.c:597: error: syntax error before ‘OnigRegion’
oregexp.c: In function ‘oregexp_scan’:
oregexp.c:605: error: ‘oregexp’ undeclared (first use in this function)
oregexp.c:606: error: ‘OnigEncoding’ undeclared (first use in this function)
oregexp.c:606: error: syntax error before ‘enc’
oregexp.c:611: error: ‘self’ undeclared (first use in this function)
oregexp.c:611: error: syntax error before ‘)’ token
oregexp.c:613: error: ‘str’ undeclared (first use in this function)
oregexp.c:614: error: ‘UChar’ undeclared (first use in this function)
oregexp.c:614: error: ‘str_ptr’ undeclared (first use in this function)
oregexp.c:616: error: ‘region’ undeclared (first use in this function)
oregexp.c:616: error: ‘ONIG_OPTION_NONE’ undeclared (first use in this function)
oregexp.c:622: error: ‘enc’ undeclared (first use in this function)
oregexp.c: At top level:
oregexp.c:651: error: syntax error before ‘OnigRegion’
oregexp.c:651: warning: no semicolon at end of struct or union
oregexp.c: In function ‘oregexp_packed_scan’:
oregexp.c:654: error: dereferencing pointer to incomplete type
oregexp.c:654: error: dereferencing pointer to incomplete type
oregexp.c:654: error: dereferencing pointer to incomplete type
oregexp.c: In function ‘oregexp_m_scan’:
oregexp.c:669: error: ‘OnigRegion’ undeclared (first use in this function)
oregexp.c:669: error: ‘region’ undeclared (first use in this function)
oregexp.c:670: error: variable ‘call_args’ has initializer but incomplete type
oregexp.c:670: warning: excess elements in struct initializer
oregexp.c:670: warning: (near initialization for ‘call_args’)
oregexp.c:670: warning: excess elements in struct initializer
oregexp.c:670: warning: (near initialization for ‘call_args’)
oregexp.c:670: warning: excess elements in struct initializer
oregexp.c:670: warning: (near initialization for ‘call_args’)
oregexp.c:670: error: storage size of ‘call_args’ isn’t known
oregexp.c:671: warning: passing argument 3 of ‘rb_ensure’ from incompatible pointer type
oregexp.c:670: warning: unused variable ‘call_args’
oregexp.c: In function ‘oregexp_match_op’:
oregexp.c:727: error: dereferencing pointer to incomplete type
oregexp.c:728: warning: control reaches end of non-void function
oregexp.c: In function ‘Init_oregexp’:
oregexp.c:743: warning: implicit declaration of function ‘onig_version’
oregexp.c:743: warning: passing argument 1 of ‘rb_str_new2’ makes pointer from integer without a cast
make: *** [oregexp.o] Error 1
 
 
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/oniguruma-1.1.0 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/oniguruma-1.1.0/ext/gem_make.out