Hi Younès -
I am attempting to build this project, but am unable to build
warc-tools-read-only due to a missing file extractor.h:
egh@gales:~/software/search-tools-read-only$ uname -a
Linux gales.cdlib.org 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008 i686 GNU/Linux
aka Ubuntu Intrepid
egh@gales:~/software/search-tools-read-only/warc-tools-read-only$ make ruby
make[1]: Entering directory `/home/egh/software/search-tools-read-only/warc-tools-read-only'
swig -ruby -outdir lib/private/plugin/ruby lib/private/plugin/ruby/warctools.i
gcc -I. -Ilib/private -Ilib/public -Ilib/private/plugin/gzip -Ilib/private/plugin/cunit -Ilib/private/plugin/tiger -Ilib/private/plugin/event -Ilib/private/plugin/event/compat -Ilib/private/plugin/regex -Ilib/private/plugin/python -Ilib/private/plugin/ruby -Ilib/private/os -Ilib/private/plugin/event/os/linux -Ilib/private/plugin/cunit/os/linux -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -fno-strict-aliasing -g -g -O2 -fPIC -I. -I/usr/lib/ruby/1.8/i486-linux -c lib/private/plugin/ruby/warctools_wrap.c -o lib/private/plugin/ruby/warctools_wrap.o
In file included from lib/private/plugin/ruby/warctools_wrap.c:2090:
lib/private/plugin/ruby/wextract.h:30:23: error: extractor.h: No such file or directory
make[1]: *** [lib/private/plugin/ruby/warctools_wrap.o] Error 1
make[1]: Leaving directory `/home/egh/software/search-tools-read-only/warc-tools-read-only'
make: *** [ruby] Error 2
Thanks for any help you can give. Let me know if you need any more
system information.
best,
Erik Hetzner
At Mon, 1 Dec 2008 05:22:53 -0800 (PST),
voidptrptr <voidp...@gmail.com> wrote:Hi All,As discussed at Aarhus IIPC meeting in september, the first BETArelease of WARC fulltext seach project is ready.[…]
Hi Younès -
I am attempting to build this project, but am unable to build
warc-tools-read-only due to a missing file extractor.h:
egh@gales:~/software/search-tools-read-only$ uname -a
Linux gales.cdlib.org 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008 i686 GNU/Linux
aka Ubuntu Intrepid
egh@gales:~/software/search-tools-read-only/warc-tools-read-only$ make ruby
make[1]: Entering directory `/home/egh/software/search-tools-read-only/warc-tools-read-only'
swig -ruby -outdir lib/private/plugin/ruby lib/private/plugin/ruby/warctools.i
gcc -I. -Ilib/private -Ilib/public -Ilib/private/plugin/gzip -Ilib/private/plugin/cunit -Ilib/private/plugin/tiger -Ilib/private/plugin/event -Ilib/private/plugin/event/compat -Ilib/private/plugin/regex -Ilib/private/plugin/python -Ilib/private/plugin/ruby -Ilib/private/os -Ilib/private/plugin/event/os/linux -Ilib/private/plugin/cunit/os/linux -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -fno-strict-aliasing -g -g -O2 -fPIC -I. -I/usr/lib/ruby/1.8/i486-linux -c lib/private/plugin/ruby/warctools_wrap.c -o lib/private/plugin/ruby/warctools_wrap.o
In file included from lib/private/plugin/ruby/warctools_wrap.c:2090:
lib/private/plugin/ruby/wextract.h:30:23: error: extractor.h: No such file or directory
make[1]: *** [lib/private/plugin/ruby/warctools_wrap.o] Error 1
make[1]: Leaving directory `/home/egh/software/search-tools-read-only/warc-tools-read-only'
make: *** [ruby] Error 2
Thanks for any help you can give. Let me know if you need any more
system information.
best,
Erik Hetzner
;; Erik Hetzner, California Digital Library
;; gnupg key id: 1024D/01DB07E3
Hi Younès -
And first of all, from me, apologies for not reading the install doc!
Could you consider moving the install doc to
search-tools-read-only/INSTALL? This is the location recommended by
Karl Fogel in his book Producing open source software and where I tend
to look for it [1].
Things seem to work once I install the libextractor-dev, with the
exception of a problem like one encountered previously:
gcc -I. -Ilib/private -Ilib/public -Ilib/private/plugin/gzip -Ilib/private/plugin/cunit -Ilib/private/plugin/tiger -Ilib/private/plugin/event -Ilib/private/plugin/event/compat -Ilib/private/plugin/regex -Ilib/private/plugin/python -Ilib/private/plugin/ruby -Ilib/private/os -Ilib/private/plugin/event/os/linux -Ilib/private/plugin/cunit/os/linux -I/usr/include -L/usr/lib -lextractor -Wall -W -Wunused -ansi -Werror -Wno-long-long -Wunused-function -std=gnu89 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -g -pedantic-errors -Wextra -fno-strict-aliasing -g -g -O2 -fPIC -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_ALLOCA_H=1 -DEBUG=1 \
-I. -I/usr/lib/ruby/1.8/i486-linux -c lib/private/plugin/ruby/wextract.c -o lib/private/plugin/ruby/wextract.o
In file included from lib/private/plugin/ruby/wextract.c:26:
/usr/include/extractor.h:190: error: comma at end of enumerator list
make[1]: *** [lib/private/plugin/ruby/wextract.o] Error 1
make[1]: Leaving directory `/home/egh/software/search-tools-read-only/warc-tools-read-only'
make: *** [ruby] Error 2
I was able to fix this by removing -pedantic and -pendatic-errors from
the CFLAGS. This was what was triggering the problems with commas at
the end of an enumerator list. There is some information about this
problem here [2].
After this, and install the hpricot, ferret, & rubyzip ruby gems, and
adding the
search-tools-read-only/warc-tools-read-only/lib/private/plugin/ruby
directory to RUBYLIB, I was able to get the warc2index.rb script to
run (though I have not created an index yet). Thanks.
best,
Erik Hetzner
1. <http://producingoss.com/en/packaging.html#packaging-name-and-layout>
2. <http://www.cpptalk.net/extra-comma-in-enum-is-valid-vt20540.html>
> Hi Younès -
>
> And first of all, from me, apologies for not reading the install doc!
>
> Could you consider moving the install doc to
> search-tools-read-only/INSTALL? This is the location recommended by
> Karl Fogel in his book Producing open source software and where I tend
> to look for it [1].
Ok, next release !
> Things seem to work once I install the libextractor-dev, with the
> exception of a problem like one encountered previously:
>
> gcc -I. -Ilib/private -Ilib/public -Ilib/private/plugin/gzip -Ilib/
> private/plugin/cunit -Ilib/private/plugin/tiger -Ilib/private/plugin/
> event -Ilib/private/plugin/event/compat -Ilib/private/plugin/regex -
> Ilib/private/plugin/python -Ilib/private/plugin/ruby -Ilib/private/
> os -Ilib/private/plugin/event/os/linux -Ilib/private/plugin/cunit/os/
> linux -I/usr/include -L/usr/lib -lextractor -Wall -W -Wunused -ansi -
> Werror -Wno-long-long -Wunused-function -std=gnu89 -
> D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -g -
> pedantic-errors -Wextra -fno-strict-aliasing -g -g -O2 -fPIC -
> DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_ALLOCA_H=1 -DEBUG=1 \
> -I. -I/usr/lib/ruby/1.8/i486-linux -c lib/private/plugin/ruby/
> wextract.c -o lib/private/plugin/ruby/wextract.o
> In file included from lib/private/plugin/ruby/wextract.c:26:
> /usr/include/extractor.h:190: error: comma at end of enumerator list
> make[1]: *** [lib/private/plugin/ruby/wextract.o] Error 1
> make[1]: Leaving directory `/home/egh/software/search-tools-read-
> only/warc-tools-read-only'
> make: *** [ruby] Error 2
>
> I was able to fix this by removing -pedantic and -pendatic-errors from
> the CFLAGS.
This to GCC flags ensure that everything is hardened. Another solution
is to leave them and fix the error by removing the comma
manually.
> This was what was triggering the problems with commas at
> the end of an enumerator list. There is some information about this
> problem here [2].
New C norm (+1999) tolerate this kind of extra commas at the end od
data structures, but not old one (ANSI, 1989).
This is why we're trying to have backward compatibilities with old
compilers using these flags.
> After this, and install the hpricot, ferret, & rubyzip ruby gems, and
> adding the
> search-tools-read-only/warc-tools-read-only/lib/private/plugin/ruby
> directory to RUBYLIB, I was able to get the warc2index.rb script to
> run (though I have not created an index yet). Thanks.
Cool. Fun is close.
> best,
> Erik Hetzner
>
> 1. <http://producingoss.com/en/packaging.html#packaging-name-and-layout
> >
> 2. <http://www.cpptalk.net/extra-comma-in-enum-is-valid-vt20540.html>