Hi Rich,
Can you try running rake instead of setup.rb to run tests. The problem
is that the incorrect tests are being run. Sorry, my fault. I need to
fix setup.rb.
> sudo rake # assuming you need sudo for ferret to create the directories.
Apart from that you should be able to ignore the warnings. I'll make
sure both of these problems are fixed in the next release.
Cheers,
Dave
On 5/12/06, Rich Marisa <[EMAIL PROTECTED]> wrote:
> Dave,
>
> Deleting sys/dir.h allows the code to compile but results in an
> unhandled exception:
>
> 254: sudo ruby setup.rb test
> Running tests...
> Loaded suite test
> Started
> ........F...../test/unit/../unit/document/../../unit/index/../../unit/store/tc_fs_store.rb:18:in
> `refresh': : Error occured at <nix_io.c>:122 (Exception)
> Error: exception 2 not handled: No such file or directory
> from
> ./test/unit/../unit/document/../../unit/index/../../unit/store/tc_fs_store.rb:18:in
> `teardown'
> from /usr/local/lib/ruby/1.8/test/unit/testcase.rb:77:in `run'
> from /usr/local/lib/ruby/1.8/test/unit/testsuite.rb:32:in `run'
> from /usr/local/lib/ruby/1.8/test/unit/testsuite.rb:31:in `run'
> from /usr/local/lib/ruby/1.8/test/unit/testsuite.rb:32:in `run'
> from /usr/local/lib/ruby/1.8/test/unit/testsuite.rb:31:in `run'
> from
> /usr/local/lib/ruby/1.8/test/unit/ui/testrunnermediator.rb:44:in `run_suite'
> from
> /usr/local/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:65:in
> `start_mediator'
> from
> /usr/local/lib/ruby/1.8/test/unit/ui/console/testrunner.rb:39:in `start'
> from
> /usr/local/lib/ruby/1.8/test/unit/ui/testrunnerutilities.rb:27:in `run'
> from /usr/local/lib/ruby/1.8/test/unit/autorunner.rb:200:in `run'
> from setup.rb:1426:in `exec_test'
> from setup.rb:1006:in `exec_test'
> from setup.rb:829:in `invoke'
> from setup.rb:776:in `invoke'
> from setup.rb:1548
>
> There are a bunch of compiler warnings in the Solaris build as well...
> here is a sample:
>
> In file included from /usr/local/lib/ruby/1.8/sparc-solaris2.8/ruby.h:24,
> from lang.h:4,
> from global.h:20,
> from index.h:5,
> from search.h:8,
> from src/query_parser/q_parser.y:3:
> /usr/local/lib/ruby/1.8/sparc-solaris2.8/config.h:17:1: warning:
> "_FILE_OFFSET_BITS" redefined
> In file included from /usr/include/iso/string_iso.h:31,
> from /usr/include/string.h:18,
> from src/query_parser/q_parser.y:2:
> /usr/include/sys/feature_tests.h:96:1: warning: this is the location of
> the previous definition
> gcc -fPIC -g -O2 -fno-common -I.
> -I/usr/local/lib/ruby/1.8/sparc-solaris2.8
> -I/usr/local/lib/ruby/1.8/sparc-solaris2.8 -I. -c q_const_score.c
> In file included from /usr/local/lib/ruby/1.8/sparc-solaris2.8/ruby.h:24,
> from lang.h:4,
> from global.h:20,
> from index.h:5,
> from search.h:8,
> from q_const_score.c:1:
> /usr/local/lib/ruby/1.8/sparc-solaris2.8/config.h:17:1: warning:
> "_FILE_OFFSET_BITS" redefined
> In file included from
> /opt/common/lib/gcc-lib/sparc-sun-solaris2.8/3.2.3/include/syslimits.h:27,
> from
> /opt/common/lib/gcc-lib/sparc-sun-solaris2.8/3.2.3/include/limits.h:11,
> from index.h:4,
> from search.h:8,
> from q_const_score.c:1:
> /usr/include/sys/feature_tests.h:96:1: warning: this is the location of
> the previous definition
> gcc -fPIC -g -O2 -fno-common -I.
> -I/usr/local/lib/ruby/1.8/sparc-solaris2.8
> -I/usr/local/lib/ruby/1.8/sparc-solaris2.8 -I. -c q_boolean.c
> In file included from /usr/local/lib/ruby/1.8/sparc-solaris2.8/ruby.h:24,
> from lang.h:4,
> from global.h:20,
> from index.h:5,
> from search.h:8,
> from q_boolean.c:2:
> /usr/local/lib/ruby/1.8/sparc-solaris2.8/config.h:17:1: warning:
> "_FILE_OFFSET_BITS" redefined
>
>
> I found there is a "compatability library" of include files in
> /usr/ucbinclude which has include files, including dir.h, but I haven't
> been able to find a way to integrate it into the build without causing
> lots of other incompatabilities to pop up in the compilation...
>
> Thanks,
> -- Rich
>
> David Balmain wrote:
>
> >On second thoughts, just delete that line. Hopefully that'll fix it.
> >
> >
> >On 5/11/06, David Balmain <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Hi Richard,
> >>
> >>Can you try changing line 5 of ext/nix_io.c to
> >>
> >>#include <sys/dirent.h>
> >>
> >>I think that may be the equivalent on solaris. Please report back if it
> >>works.
> >>
> >>Cheers,
> >>Dave
> >>
> >>On 5/11/06, Richard Marisa <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >>>I was trying to install ferret 0.9.2 on solaris (SunOS 5.8) which
> >>>does not have a sys/dir.h
> >>>
> >>>nix_io.c:5:21: sys/dir.h: No such file or directory
> >>>make: *** [nix_io.o] Error 1
> >>>
> >>>I couldn't find an obvious way around this... any suggestions?
> >>>
> >>>Thanks,
> >>> Rich Marisa
> >>> Cornell Information Technologies
> >>> Cornell University
> >>>
> >>>
> >>>_______________________________________________
> >>>Ferret-talk mailing list
> >>>[email protected]
> >>>http://rubyforge.org/mailman/listinfo/ferret-talk
> >>>
> >>>
> >>>
> >
> >_______________________________________________
> >Ferret-talk mailing list
> >[email protected]
> >http://rubyforge.org/mailman/listinfo/ferret-talk
> >
> >
>
> _______________________________________________
> Ferret-talk mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/ferret-talk
>
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk