Code Monkey home page Code Monkey logo

ferret's People

Contributors

blackwinter avatar davidegrayson avatar dbalmain avatar dustin avatar ehabkost avatar jkraemer avatar sdsykes avatar voxik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ferret's Issues

Won't compile for ruby-2.0.0-p195

It works well with ruby-2.0.0-rc2, but not with p195.
I didn't dig deeper to see the problem, just switch back to 2.0.0-rc2 for now.

Here is the output:

user@app:~/sandbox/app$ gem install ferret
Building native extensions.  This could take a while...
ERROR:  Error installing ferret:
ERROR: Failed to build gem native extension.

/home/user/.rvm/rubies/ruby-2.0.0-p195/bin/ruby extconf.rb
creating Makefile

make
compiling BZLIB_blocksort.c
compiling STEMMER_stem_UTF_8_norwegian.c
compiling STEMMER_stem_UTF_8_romanian.c
compiling STEMMER_api.c
compiling hash.c
In file included from /home/user/.rvm/rubies/ruby-2.0.0-p195/include/ruby-2.0.0/ruby/ruby.h:1567,
   from /home/user/.rvm/rubies/ruby-2.0.0-p195/include/ruby-2.0.0/ruby.h:33,
   from lang.h:7,
   from global.h:10,
   from hash.h:8,
   from hash.c:1:
   /home/user/.rvm/rubies/ruby-2.0.0-p195/include/ruby-2.0.0/ruby/intern.h:323: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rb_fdset_t’
   /home/user/.rvm/rubies/ruby-2.0.0-p195/include/ruby-2.0.0/ruby/intern.h:412: error: expected declaration specifiers or ‘...’ before ‘fd_set’
   /home/user/.rvm/rubies/ruby-2.0.0-p195/include/ruby-2.0.0/ruby/intern.h:412: error: expected declaration specifiers or ‘...’ before ‘fd_set’
   /home/user/.rvm/rubies/ruby-2.0.0-p195/include/ruby-2.0.0/ruby/intern.h:412: error: expected declaration specifiers or ‘...’ before ‘fd_set’
   /home/user/.rvm/rubies/ruby-2.0.0-p195/include/ruby-2.0.0/ruby/intern.h:412: warning: ‘struct timeval’ declared inside parameter list
   /home/user/.rvm/rubies/ruby-2.0.0-p195/include/ruby-2.0.0/ruby/intern.h:412: warning: its scope is only this definition or declaration, which is probably not what you want
   /home/user/.rvm/rubies/ruby-2.0.0-p195/include/ruby-2.0.0/ruby/intern.h:413: error: expected declaration specifiers or ‘...’ before ‘rb_fdset_t’
   /home/user/.rvm/rubies/ruby-2.0.0-p195/include/ruby-2.0.0/ruby/intern.h:413: error: expected declaration specifiers or ‘...’ before ‘rb_fdset_t’
   /home/user/.rvm/rubies/ruby-2.0.0-p195/include/ruby-2.0.0/ruby/intern.h:413: error: expected declaration specifiers or ‘...’ before ‘rb_fdset_t’
   /home/user/.rvm/rubies/ruby-2.0.0-p195/include/ruby-2.0.0/ruby/intern.h:413: warning: ‘struct timeval’ declared inside parameter list
   /home/user/.rvm/rubies/ruby-2.0.0-p195/include/ruby-2.0.0/ruby/intern.h:414: warning: ‘struct timeval’ declared inside parameter list
   hash.c:14: warning: initialization discards qualifiers from pointer target type
   hash.c:15: warning: initialization discards qualifiers from pointer target type
   make: *** [hash.o] Error 1

Cannot install on Ruby 3.0

$ gem install ferret
Building native extensions. This could take a while...
ERROR:  Error installing ferret:
        ERROR: Failed to build gem native extension.

followed by many errors related to BZLIB:

current directory: /usr/share/rvm/gems/ruby-3.0.0/gems/ferret-0.11.8.7/ext
/usr/share/rvm/rubies/ruby-3.0.0/bin/ruby -I /usr/share/rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0 -r ./siteconf20201231-19724-cqie8u.rb extconf.rb
creating Makefile

current directory: /usr/share/rvm/gems/ruby-3.0.0/gems/ferret-0.11.8.7/ext
make "DESTDIR=" clean

current directory: /usr/share/rvm/gems/ruby-3.0.0/gems/ferret-0.11.8.7/ext
make "DESTDIR="
compiling BZLIB_blocksort.c
compiling BZLIB_bzlib.c
BZLIB_bzlib.c: In function ‘BZ2_bz__AssertH__fail’:
BZLIB_bzlib.c:41:6: warning: function might be candidate for attribute ‘noreturn’ [-Wsuggest-attribute=noreturn]
 void BZ2_bz__AssertH__fail ( int errcode )
      ^~~~~~~~~~~~~~~~~~~~~
BZLIB_bzlib.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1: warning: unrecognized command line option ‘-Wno-cast-function-type’
compiling BZLIB_compress.c
BZLIB_compress.c: In function ‘BZ2_compressBlock’:
BZLIB_compress.c:391:54: warning: ‘cost[5]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
                for (t = 0; t < nGroups; t++) cost[t] += s->len[t][icv];
                                                      ^~
BZLIB_compress.c:256:11: note: ‘cost[5]’ was declared here
    UInt16 cost[BZ_N_GROUPS];
           ^~~~
BZLIB_compress.c:401:21: warning: ‘cost[3]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             if (cost[t] < bc) { bc = cost[t]; bt = t; };
                 ~~~~^~~
BZLIB_compress.c:256:11: note: ‘cost[3]’ was declared here
    UInt16 cost[BZ_N_GROUPS];
           ^~~~
BZLIB_compress.c:401:21: warning: ‘cost[2]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             if (cost[t] < bc) { bc = cost[t]; bt = t; };
                 ~~~~^~~
BZLIB_compress.c:256:11: note: ‘cost[2]’ was declared here
    UInt16 cost[BZ_N_GROUPS];
           ^~~~
BZLIB_compress.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1: warning: unrecognized command line option ‘-Wno-cast-function-type’
compiling BZLIB_crctable.c
compiling BZLIB_decompress.c
compiling BZLIB_huffman.c
compiling BZLIB_randtable.c
compiling STEMMER_api.c
compiling STEMMER_libstemmer.c
compiling STEMMER_stem_ISO_8859_1_danish.c
compiling STEMMER_stem_ISO_8859_1_dutch.c
compiling STEMMER_stem_ISO_8859_1_english.c
compiling STEMMER_stem_ISO_8859_1_finnish.c
compiling STEMMER_stem_ISO_8859_1_french.c
compiling STEMMER_stem_ISO_8859_1_german.c
compiling STEMMER_stem_ISO_8859_1_hungarian.c
compiling STEMMER_stem_ISO_8859_1_italian.c
compiling STEMMER_stem_ISO_8859_1_norwegian.c
compiling STEMMER_stem_ISO_8859_1_porter.c
compiling STEMMER_stem_ISO_8859_1_portuguese.c
compiling STEMMER_stem_ISO_8859_1_spanish.c
compiling STEMMER_stem_ISO_8859_1_swedish.c
compiling STEMMER_stem_ISO_8859_2_romanian.c
compiling STEMMER_stem_KOI8_R_russian.c
compiling STEMMER_stem_UTF_8_danish.c
compiling STEMMER_stem_UTF_8_dutch.c
compiling STEMMER_stem_UTF_8_english.c
compiling STEMMER_stem_UTF_8_finnish.c
compiling STEMMER_stem_UTF_8_french.c
compiling STEMMER_stem_UTF_8_german.c
compiling STEMMER_stem_UTF_8_hungarian.c
compiling STEMMER_stem_UTF_8_italian.c
compiling STEMMER_stem_UTF_8_norwegian.c
compiling STEMMER_stem_UTF_8_porter.c
compiling STEMMER_stem_UTF_8_portuguese.c
compiling STEMMER_stem_UTF_8_romanian.c
compiling STEMMER_stem_UTF_8_russian.c
compiling STEMMER_stem_UTF_8_spanish.c
compiling STEMMER_stem_UTF_8_swedish.c
compiling STEMMER_stem_UTF_8_turkish.c
compiling STEMMER_utilities.c
compiling analysis.c
compiling array.c
compiling bitvector.c
In file included from bitvector.c:1:0:
bitvector.h: In function ‘frt_bv_scan_next_from’:
bitvector.h:280:16: warning: left shift of negative value [-Wshift-negative-value]
     word &= ~0 << (bit & 31);
                ^~
bitvector.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1: warning: unrecognized command line option ‘-Wno-cast-function-type’
compiling compound_io.c
In file included from index.h:16:0,
                 from compound_io.c:1:
bitvector.h: In function ‘frt_bv_scan_next_from’:
bitvector.h:280:16: warning: left shift of negative value [-Wshift-negative-value]
     word &= ~0 << (bit & 31);
                ^~
In file included from compound_io.c:1:0:
index.h: At top level:
index.h:595:25: error: width of ‘is_compressed’ exceeds its type
     bool                is_compressed : 2; /* set to 2 after all data is loaded */
                         ^~~~~~~~~~~~~
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1: warning: unrecognized command line option ‘-Wno-cast-function-type’
Makefile:244: recipe for target 'compound_io.o' failed
make: *** [compound_io.o] Error 1

make failed, exit code 2

native extensions fail to build under Ruby 1.9.2 on AMD64

Attempting to install ferret 0.11.6 under Ruby 1.9.2 on AMD64 fails to install the gem, and results in the following errors:

/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb
creating Makefile

make
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o stem_UTF_8_french.o -c stem_UTF_8_french.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o hash.o -c hash.c
hash.c:13:26: warning: initialization discards qualifiers from pointer target type
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o hashset.o -c hashset.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o stem_ISO_8859_1_porter.o -c stem_ISO_8859_1_porter.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o posh.o -c posh.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o q_wildcard.o -c q_wildcard.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o stopwords.o -c stopwords.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o stem_ISO_8859_1_norwegian.o -c stem_ISO_8859_1_norwegian.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o r_utils.o -c r_utils.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o multimapper.o -c multimapper.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o stem_ISO_8859_1_swedish.o -c stem_ISO_8859_1_swedish.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o r_store.o -c r_store.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o store.o -c store.c
store.c: In function ‘is_read_string_safe’:
store.c:349:27: warning: variable ‘res’ might be clobbered by ‘longjmp’ or ‘vfork’
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o stem_UTF_8_russian.o -c stem_UTF_8_russian.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o ram_store.o -c ram_store.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o stem_UTF_8_german.o -c stem_UTF_8_german.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o sort.o -c sort.c
sort.c: In function ‘sort_field_to_s’:
sort.c:106:18: warning: assignment discards qualifiers from pointer target type
sort.c:109:18: warning: assignment discards qualifiers from pointer target type
sort.c:112:18: warning: assignment discards qualifiers from pointer target type
sort.c:115:18: warning: assignment discards qualifiers from pointer target type
sort.c:118:18: warning: assignment discards qualifiers from pointer target type
sort.c:121:18: warning: assignment discards qualifiers from pointer target type
sort.c:124:18: warning: assignment discards qualifiers from pointer target type
sort.c: In function ‘sort_to_s’:
sort.c:966:7: warning: assignment discards qualifiers from pointer target type
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o search.o -c search.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o filter.o -c filter.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o api.o -c api.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o stem_ISO_8859_1_dutch.o -c stem_ISO_8859_1_dutch.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o stem_ISO_8859_1_english.o -c stem_ISO_8859_1_english.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o q_prefix.o -c q_prefix.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o stem_UTF_8_spanish.o -c stem_UTF_8_spanish.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o stem_UTF_8_italian.o -c stem_UTF_8_italian.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o stem_ISO_8859_1_spanish.o -c stem_ISO_8859_1_spanish.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o stem_ISO_8859_1_french.o -c stem_ISO_8859_1_french.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o stem_UTF_8_portuguese.o -c stem_UTF_8_portuguese.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o q_term.o -c q_term.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o stem_UTF_8_dutch.o -c stem_UTF_8_dutch.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o except.o -c except.c
except.c:28:37: warning: initialization discards qualifiers from pointer target type
except.c:29:29: warning: initialization discards qualifiers from pointer target type
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o stem_UTF_8_norwegian.o -c stem_UTF_8_norwegian.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o fs_store.o -c fs_store.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o q_multi_term.o -c q_multi_term.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o q_filtered_query.o -c q_filtered_query.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o q_match_all.o -c q_match_all.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o compound_io.o -c compound_io.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o q_const_score.o -c q_const_score.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o priorityqueue.o -c priorityqueue.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o stem_UTF_8_swedish.o -c stem_UTF_8_swedish.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o document.o -c document.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o term_vectors.o -c term_vectors.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o q_parser.o -c q_parser.c
src/q_parser.y: In function ‘get_phrase_q’:
src/q_parser.y:775:12: warning: variable ‘q’ might be clobbered by ‘longjmp’ or ‘vfork’
src/q_parser.y:776:5: warning: variable ‘i’ might be clobbered by ‘longjmp’ or ‘vfork’
y.tab.c: In function ‘yyparse’:
y.tab.c:1313:5: warning: variable ‘yychar’ might be clobbered by ‘longjmp’ or ‘vfork’
y.tab.c:1325:7: warning: variable ‘yyerrstatus’ might be clobbered by ‘longjmp’ or ‘vfork’
y.tab.c:1346:17: warning: variable ‘yyssp’ might be clobbered by ‘longjmp’ or ‘vfork’
src/q_parser.y:151:7: warning: variable ‘i’ might be clobbered by ‘longjmp’ or ‘vfork’
src/q_parser.y:152:7: warning: variable ‘i’ might be clobbered by ‘longjmp’ or ‘vfork’
src/q_parser.y:153:7: warning: variable ‘i’ might be clobbered by ‘longjmp’ or ‘vfork’
src/q_parser.y:155:7: warning: variable ‘i’ might be clobbered by ‘longjmp’ or ‘vfork’
src/q_parser.y:176:7: warning: variable ‘i’ might be clobbered by ‘longjmp’ or ‘vfork’
src/q_parser.y:177:7: warning: variable ‘i’ might be clobbered by ‘longjmp’ or ‘vfork’
src/q_parser.y:178:7: warning: variable ‘i’ might be clobbered by ‘longjmp’ or ‘vfork’
src/q_parser.y:179:7: warning: variable ‘i’ might be clobbered by ‘longjmp’ or ‘vfork’
src/q_parser.y:180:7: warning: variable ‘i’ might be clobbered by ‘longjmp’ or ‘vfork’
src/q_parser.y:181:7: warning: variable ‘i’ might be clobbered by ‘longjmp’ or ‘vfork’
src/q_parser.y:182:7: warning: variable ‘i’ might be clobbered by ‘longjmp’ or ‘vfork’
src/q_parser.y:183:7: warning: variable ‘i’ might be clobbered by ‘longjmp’ or ‘vfork’
src/q_parser.y:184:7: warning: variable ‘i’ might be clobbered by ‘longjmp’ or ‘vfork’
src/q_parser.y:185:7: warning: variable ‘i’ might be clobbered by ‘longjmp’ or ‘vfork’
src/q_parser.y:186:7: warning: variable ‘i’ might be clobbered by ‘longjmp’ or ‘vfork’
src/q_parser.y:187:7: warning: variable ‘i’ might be clobbered by ‘longjmp’ or ‘vfork’
src/q_parser.y: In function ‘qp_get_bad_query’:
src/q_parser.y:977:5: warning: variable ‘i’ might be clobbered by ‘longjmp’ or ‘vfork’
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o q_fuzzy.o -c q_fuzzy.c
gcc -I. -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC -D_FILE_OFFSET_BITS=64  -o r_index.o -c r_index.c
In file included from r_index.c:3:0:
/home/codegnome/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward/st.h:2:2: warning: #warning use "ruby/st.h" instead of bare "st.h"
r_index.c: In function ‘frt_te_each’:
r_index.c:768:17: error: ‘struct RArray’ has no member named ‘len’
r_index.c:769:30: error: ‘struct RArray’ has no member named ‘ptr’
r_index.c:778:21: error: ‘struct RArray’ has no member named ‘ptr’
r_index.c:779:21: error: ‘struct RArray’ has no member named ‘ptr’
r_index.c: In function ‘frt_tde_each’:
r_index.c:1043:17: error: ‘struct RArray’ has no member named ‘len’
r_index.c:1044:30: error: ‘struct RArray’ has no member named ‘ptr’
r_index.c:1048:21: error: ‘struct RArray’ has no member named ‘ptr’
r_index.c:1049:21: error: ‘struct RArray’ has no member named ‘ptr’
r_index.c: In function ‘frt_tde_to_json’:
r_index.c:1096:20: warning: assignment discards qualifiers from pointer target type
r_index.c:1099:20: warning: assignment discards qualifiers from pointer target type
r_index.c:1104:20: warning: assignment discards qualifiers from pointer target type
r_index.c:1107:20: warning: assignment discards qualifiers from pointer target type
r_index.c: In function ‘frt_get_tv_term’:
r_index.c:1218:34: error: ‘struct RArray’ has no member named ‘ptr’
r_index.c:1222:27: error: ‘struct RArray’ has no member named ‘len’
r_index.c: In function ‘frt_get_tv’:
r_index.c:1245:25: error: ‘struct RArray’ has no member named ‘ptr’
r_index.c:1248:23: error: ‘struct RArray’ has no member named ‘len’
r_index.c:1255:31: error: ‘struct RArray’ has no member named ‘ptr’
r_index.c:1258:29: error: ‘struct RArray’ has no member named ‘len’
r_index.c: In function ‘frt_iw_init’:
r_index.c:1384:5: warning: passing argument 2 of ‘store->exists’ discards qualifiers from pointer target type
r_index.c:1384:5: note: expected ‘char *’ but argument is of type ‘const char *’
r_index.c: In function ‘frt_hash_to_doc_i’:
r_index.c:1442:23: warning: assignment discards qualifiers from pointer target type
r_index.c:1461:50: error: ‘struct RArray’ has no member named ‘len’
r_index.c:1462:61: error: ‘struct RArray’ has no member named ‘ptr’
r_index.c:1463:71: error: ‘struct RString’ has no member named ‘len’
r_index.c:1468:64: error: ‘struct RString’ has no member named ‘len’
r_index.c:1473:63: error: ‘struct RString’ has no member named ‘len’
r_index.c: In function ‘frt_get_doc’:
r_index.c:1501:45: error: ‘struct RArray’ has no member named ‘len’
r_index.c:1502:56: error: ‘struct RArray’ has no member named ‘ptr’
r_index.c:1503:67: error: ‘struct RString’ has no member named ‘len’
r_index.c:1509:13: warning: passing argument 2 of ‘df_add_data’ discards qualifiers from pointer target type
document.h:26:18: note: expected ‘char *’ but argument is of type ‘const char *’
r_index.c:1514:47: error: ‘struct RString’ has no member named ‘len’
r_index.c:1520:46: error: ‘struct RString’ has no member named ‘len’
r_index.c: In function ‘frt_iw_add_readers’:
r_index.c:1600:11: error: ‘struct RArray’ has no member named ‘len’
r_index.c:1601:25: error: ‘struct RArray’ has no member named ‘len’
r_index.c:1604:9: error: ‘struct RArray’ has no member named ‘ptr’
r_index.c:1604:9: error: ‘struct RArray’ has no member named ‘ptr’
r_index.c:1607:45: error: ‘struct RArray’ has no member named ‘len’
r_index.c: In function ‘frt_lazy_df_load’:
r_index.c:1956:30: error: ‘struct RArray’ has no member named ‘ptr’
r_index.c:1958:30: error: ‘struct RArray’ has no member named ‘len’
r_index.c: In function ‘frt_get_lazy_doc’:
r_index.c:2041:24: error: ‘struct RArray’ has no member named ‘ptr’
r_index.c:2042:24: error: ‘struct RArray’ has no member named ‘len’
r_index.c: In function ‘frt_ir_init’:
r_index.c:2118:44: error: ‘struct RArray’ has no member named ‘len’
r_index.c:2122:33: error: ‘struct RArray’ has no member named ‘ptr’
r_index.c: In function ‘frt_ir_get_norms_into’:
r_index.c:2238:24: error: ‘struct RString’ has no member named ‘len’
r_index.c:2242:33: error: ‘struct RString’ has no member named ‘len’
r_index.c: In function ‘frt_get_doc_range’:
r_index.c:2385:20: error: ‘struct RArray’ has no member named ‘ptr’
r_index.c:2386:20: error: ‘struct RArray’ has no member named ‘len’
r_index.c: In function ‘frt_ir_get_doc’:
r_index.c:2415:26: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long int’
r_index.c:2415:26: warning: format ‘%d’ expects type ‘int’, but argument 5 has type ‘long int’
make: *** [r_index.o] Error 1

make test fails to build with new bzlib

If I checkout b0bd90f and run (on Ubuntu 14.04):

$ cd ferret/c
$ make all test

I get this error:

Building task: testall ...
libferret.a(compress.o): In function `sendMTFValues':
/tmp/ferret/c/lib/bzlib/compress.c:272: undefined reference to `bz_internal_error'
/tmp/ferret/c/lib/bzlib/compress.c:455: undefined reference to `bz_internal_error'
/tmp/ferret/c/lib/bzlib/compress.c:456: undefined reference to `bz_internal_error'
/tmp/ferret/c/lib/bzlib/compress.c:488: undefined reference to `bz_internal_error'
/tmp/ferret/c/lib/bzlib/compress.c:489: undefined reference to `bz_internal_error'
libferret.a(compress.o):/tmp/ferret/c/lib/bzlib/compress.c:552: more undefined references to `bz_internal_error' follow
collect2: error: ld returned 1 exit status
make: *** [testall] Error 1

Sadly, my understanding of the Dependency build step in the Makefile is not good enough for me to suggest a solution.

RubyNLP

Dear Dave,

I've recently added your project to our RubyNLP list: https://github.com/arbox/nlp-with-ruby

I wonder if you want to participate in the Ruby for NLP network. You could do this in a very simple step by adding the rubynlp topic to your GitHub repository.

Thank you for the project!

Where is the setup.rb file?

Hello all,

I was having some trouble with ferret after successfully installing with rubygems, so I decided to try it with the manual approach of $ruby setup.rb config

But I noticed that there is no such file 'setup.rb' in the repo.

Any idea what I should do?

I keep getting the ferret error of

/blah/blah/app.rb:9:in `require': cannot load such file -- ferret (LoadError)

This error occurs in the header of a ruby script, I'm simply importing the ferret library with

require 'ferret'

Here's the log of the successful gem installation.

$ sudo gem install ferret
Password:
Building native extensions.  This could take a while...
Successfully installed ferret-0.11.8.6
Parsing documentation for ferret-0.11.8.6
Done installing documentation for ferret after 5 seconds
1 gem installed

Feature request: Get field match information (without storing field data)

Hi David,

This is the query that led me to the other issue. I'm trying to figure out how I can extract information about the match for the query. I'm potentially indexing a lot of fields that are already stored externally, and I don't want to use Ferret as the database. I've spent most of the day sifting through the Ferret C source, and I think I finally see a couple of ways to do it, but I was wondering if I was missing something obvious.

Ideally, what I'd like is either the matching fields (and the offsets and length if so configured) to be part of the Hit information you get from #search or #search_each so that I could know which fields to show to the user without resorting to the hack used in the previous issue report. Is this already part of the API?

Looking at the code, one approach would be to bubble this up from the various terms through the boolean and have it part of the core Scorer C structure. I don't see how to get the offsets this way, however.

Do you have any idea how much work it would be to add this to Ferret? I'm not sure my C chops are up to the task, and I'm still somewhat fuzzy about how the whole thing fits together.

It would be extremely useful for my project.

Cheers,

ast

Is this repo maintained?

Hi, I'd just like to ask, whether this repo is maintained or you have moved somewhere else or you don't maintain in at all any more.

Thanks!

Failed to build gem native extension with Ruby1.9.2

Building native extensions. This could take a while...
ERROR: Error installing ferret-0.11.6.gem:
ERROR: Failed to build gem native extension.

    /home/castiel/Ruby1.9.2/bin/ruby extconf.rb

creating Makefile

make
gcc -I. -I/home/castiel/Ruby1.9.2/include/ruby-1.9.1/i686-linux -I/home/castiel/Ruby1.9.2/include/ruby-1.9.1/ruby/backward -I/home/castiel/Ruby1.9.2/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64 -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -D_FILE_OFFSET_BITS=64 -o stem_ISO_8859_1_norwegian.o -c stem_ISO_8859_1_norwegian.c
gcc -I. -I/home/castiel/Ruby1.9.2/include/ruby-1.9.1/i686-linux -I/home/castiel/Ruby1.9.2/include/ruby-1.9.1/ruby/backward -I/home/castiel/Ruby1.9.2/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64 -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -D_FILE_OFFSET_BITS=64 -o stem_KOI8_R_russian.o -c stem_KOI8_R_russian.c
gcc -I. -I/home/castiel/Ruby1.9.2/include/ruby-1.9.1/i686-linux -I/home/castiel/Ruby1.9.2/include/ruby-1.9.1/ruby/backward -I/home/castiel/Ruby1.9.2/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64 -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -D_FILE_OFFSET_BITS=64 -o bitvector.o -c bitvector.c
gcc -I. -I/home/castiel/Ruby1.9.2/include/ruby-1.9.1/i686-linux -I/home/castiel/Ruby1.9.2/include/ruby-1.9.1/ruby/backward -I/home/castiel/Ruby1.9.2/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64 -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -D_FILE_OFFSET_BITS=64 -o stem_UTF_8_russian.o -c stem_UTF_8_russian.c
gcc -I. -I/home/castiel/Ruby1.9.2/include/ruby-1.9.1/i686-linux -I/home/castiel/Ruby1.9.2/include/ruby-1.9.1/ruby/backward -I/home/castiel/Ruby1.9.2/include/ruby-1.9.1 -I. -D_FILE_OFFSET_BITS=64 -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -D_FILE_OFFSET_BITS=64 -o ferret.o -c ferret.c
ferret.c: In function ‘rs2s’:
ferret.c:165:34: error: ‘struct RString’ has no member named ‘ptr’
ferret.c:165:55: error: ‘struct RString’ has no member named ‘ptr’
ferret.c: In function ‘nstrdup’:
ferret.c:172:28: error: ‘struct RString’ has no member named ‘len’
ferret.c: In function ‘frt_field’:
ferret.c:183:13: warning: return discards qualifiers from pointer target type
ferret.c: In function ‘vfrt_rb_raise’:
ferret.c:254:5: warning: format not a string literal and no format arguments
ferret.c: In function ‘frt_term_to_s’:
ferret.c:297:22: error: ‘struct RString’ has no member named ‘len’
ferret.c:297:22: error: ‘struct RString’ has no member named ‘len’
make: *** [ferret.o] 错误 1

Gem files will remain installed in /home/castiel/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/ferret-0.11.6 for inspection.
Results logged to /home/castiel/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/ferret-0.11.6/ext/gem_make.out

Indexing hashes using ruby

Hi:

I'm trying to index a Hash in ruby and this is what I get:

irb(main):211:0> indexer << {:test => { :test1 => "hola", :test2=> 23}}
=> nil
irb(main):212:0> indexer[0][:test]
=> "{:test1=>"hi", :test2=>23}"

I take a look to the code of index.rb and I found that add_document method don't take into account if something is a Hash and convert it to string. Can this be patched to take into account this case?

Regards from Canary Islands

Manuel Padrón Martínez

Highlighter behavior for unmatched fields

Hi David,

Been playing with Ferret and trying to figure out the best way to determine the matching fields within a particular document so I can do something meaningful with them (other than highlight them). I came across this behavior that I thought was odd (ferret 0.11.6 gem):

require 'rubygems'
require 'ferret'
include Ferret

index = Index::Index.new
index << {:title => "Cat on a Hot Tin Roof", :description => "Cats and flats", :arf => "foo" }
index << {:title => "Catwoman", :description => "Spandex and cats", :arf => "bar" }

query = "cats"
index.search_each(query) do |id, score|
  puts "doc #{id}: #{score}"
  index.field_infos.fields.each do |field|
    puts "field: #{field}"
    highlights = index.highlight(query, id, :field => field,
:pre_tag => "\033[36m",
:post_tag => "\033[m")
    puts highlights.inspect
  end
  puts index.explain(query, id)
end

And the output:

doc 0: 0.029847851023078
field: description
["\e[36mCats\e[m and flats"]
field: arf
["foo"]
field: title
["Cat on a Hot Tin Roof"]
0.02984785 = product of:
  0.08954355 = weight(description:cats in 0), product of:
    0.2409777 = query_weight(description:cats), product of:
      0.5945349 = idf(doc_freq=2)
      0.4053214 = query_norm
    0.3715843 = field_weight(description:cats in 0), product of:
      1.0 = tf(term_freq(description:cats)=1)
      0.5945349 = idf(doc_freq=2)
      0.625 = field_norm(field=description, doc=0)
  0.3333333 = coord(1/3)
doc 1: 0.029847851023078
field: description
["Spandex and \e[36mcats\e[m"]
field: arf
["bar"]
field: title
["Catwoman"]
0.02984785 = product of:
  0.08954355 = weight(description:cats in 1), product of:
    0.2409777 = query_weight(description:cats), product of:
      0.5945349 = idf(doc_freq=2)
      0.4053214 = query_norm
    0.3715843 = field_weight(description:cats in 1), product of:
      1.0 = tf(term_freq(description:cats)=1)
      0.5945349 = idf(doc_freq=2)
      0.625 = field_norm(field=description, doc=1)
  0.3333333 = coord(1/3)

Based on the API documentation, I would expect #highlight to return an empty array (according to the C code, it seems it'll return nil in some cases), but it doesn't. It happily returns the field contents as a "match" when clearly it isn't. Is this what you'd expect?

Cheers,

ast

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.