memo

気分転換にRuby/groongaで家のIMAPサーバーに溜まってるメールの全文検索システムでも作ろうとしたら、extconf.rb がエラーで落ちるお(ノД`)

extconf とか何やってるかわからないし、気分転換でエラーの原因探るとか萎えまくりなので mkmf.log だけ貼って放置。

checking for GCC... -------------------- yes

"cc -I. -I/usr/lib/ruby/1.8/i486-linux -I.  -fno-strict-aliasing -g -g -O2  -fPIC   -c conftest.c"
checked program was:
/* begin */
1: /*top*/
2: #ifndef __GNUC__
3: # error
4: >>>>>> __GNUC__ undefined <<<<<<
5: #endif
/* end */

--------------------

have_macro: checking for HAVE_RUBY_ST_H in ruby.h... -------------------- no

"cc -I. -I/usr/lib/ruby/1.8/i486-linux -I.  -fno-strict-aliasing -g -g -O2  -fPIC -Wall -I/home/haya/usr/include/groonga   -c conftest.c"
conftest.c:4:3: error: #error 
conftest.c:5: error: expected identifier or ‘(’ before ‘>>’ token
checked program was:
/* begin */
1: #include <ruby.h>
2: /*top*/
3: #ifndef HAVE_RUBY_ST_H
4: # error
5: >>>>>> HAVE_RUBY_ST_H undefined <<<<<<
6: #endif
/* end */

--------------------

have_header: checking for ruby/st.h... -------------------- no

"cc -E -I. -I/usr/lib/ruby/1.8/i486-linux -I.  -fno-strict-aliasing -g -g -O2  -fPIC -Wall -I/home/haya/usr/include/groonga  conftest.c -o conftest.i"
conftest.c:1:21: error: ruby/st.h: No such file or directory
checked program was:
/* begin */
1: #include <ruby/st.h>
/* end */

--------------------

have_func: checking for rb_errinfo() in ruby.h... -------------------- no

"cc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I.  -fno-strict-aliasing -g -g -O2  -fPIC -Wall -I/home/haya/usr/include/groonga conftest.c  -L"." -L"/usr/lib" -L. -Wl,-Bsymbolic-functions -rdynamic -Wl,-export-dynamic -L/home/haya/usr/lib     -lgroonga -lruby1.8-static  -lgroonga -lpthread -ldl -lcrypt -lm   -lc"
conftest.c: In function ‘t’:
conftest.c:5: error: ‘rb_errinfo’ undeclared (first use in this function)
conftest.c:5: error: (Each undeclared identifier is reported only once
conftest.c:5: error: for each function it appears in.)
checked program was:
/* begin */
1: #include <ruby.h>
2: 
3: /*top*/
4: int main() { return 0; }
5: int t() { void ((*volatile p)()); p = (void ((*)()))rb_errinfo; return 0; }
/* end */

"cc -o conftest -I. -I/usr/lib/ruby/1.8/i486-linux -I.  -fno-strict-aliasing -g -g -O2  -fPIC -Wall -I/home/haya/usr/include/groonga conftest.c  -L"." -L"/usr/lib" -L. -Wl,-Bsymbolic-functions -rdynamic -Wl,-export-dynamic -L/home/haya/usr/lib     -lgroonga -lruby1.8-static  -lgroonga -lpthread -ldl -lcrypt -lm   -lc"
conftest.c: In function ‘t’:
conftest.c:5: warning: implicit declaration of function ‘rb_errinfo’
/tmp/cc4jrx04.o: In function `t':
/home/haya/repos/ruby-groonga/groonga/trunk/conftest.c:5: undefined reference to `rb_errinfo'
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include <ruby.h>
2: 
3: /*top*/
4: int main() { return 0; }
5: int t() { rb_errinfo(); return 0; }
/* end */

--------------------

have_type: checking for enum ruby_value_type in ruby.h... -------------------- no

"cc -I. -I/usr/lib/ruby/1.8/i486-linux -I.  -fno-strict-aliasing -g -g -O2  -fPIC -Wall -I/home/haya/usr/include/groonga   -c conftest.c"
conftest.c:5: error: invalid application of ‘sizeof’ to incomplete type ‘conftest_type’ 
conftest.c:5: error: size of array ‘conftestval’ is negative
conftest.c:5: error: array type has incomplete element type
checked program was:
/* begin */
1: #include <ruby.h>
2: 
3: /*top*/
4: typedef enum ruby_value_type conftest_type;
5: static conftest_type conftestval[sizeof(conftest_type)?1:-1];
/* end */

--------------------