Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Welcome to Help

Help
2006-02-17
2013-04-15
  • Mike Engelhart
    Mike Engelhart
    2006-02-17

    Getting an error during make on Mac OS X.   Are there any dependencies besides aspell?  I have version 0.60.4 installed and working on my mac. 

    Here's the output during make:
    gcc -fno-common  -arch ppc -g -Os -pipe -fno-common  -arch ppc -pipe -pipe -fno-common  -I. -I/usr/lib/ruby/1.8/powerpc-darwin8.0 -I/usr/lib/ruby/1.8/powerpc-darwin8.0 -I. -DHAVE_RUBY_H -DHAVE_ASPELL_H  -c aspell.c
    gcc -fno-common  -arch ppc -g -Os -pipe -fno-common  -arch ppc -pipe -pipe -fno-common  -I. -I/usr/lib/ruby/1.8/powerpc-darwin8.0 -I/usr/lib/ruby/1.8/powerpc-darwin8.0 -I. -DHAVE_RUBY_H -DHAVE_ASPELL_H  -c dictinfo.c
    gcc -fno-common  -arch ppc -g -Os -pipe -fno-common  -arch ppc -pipe -pipe -fno-common  -I. -I/usr/lib/ruby/1.8/powerpc-darwin8.0 -I/usr/lib/ruby/1.8/powerpc-darwin8.0 -I. -DHAVE_RUBY_H -DHAVE_ASPELL_H  -c raspell.c
    cc -dynamic -bundle -undefined suppress -flat_namespace  -L"/usr/lib" -o raspell.bundle aspell.o dictinfo.o raspell.o  -laspell  -lpthread -ldl -lobjc 
    /usr/bin/ld: multiple definitions of symbol _cAspell
    aspell.o definition of _cAspell in section (__DATA,__common)
    dictinfo.o definition of _cAspell in section (__DATA,__common)
    /usr/bin/ld: multiple definitions of symbol _cAspellError
    aspell.o definition of _cAspellError in section (__DATA,__common)
    dictinfo.o definition of _cAspellError in section (__DATA,__common)
    /usr/bin/ld: multiple definitions of symbol _cDictInfo
    aspell.o definition of _cDictInfo in section (__DATA,__common)
    dictinfo.o definition of _cDictInfo in section (__DATA,__common)
    raspell.o definition of _cAspell in section (__DATA,__common)
    raspell.o definition of _cAspellError in section (__DATA,__common)
    raspell.o definition of _cDictInfo in section (__DATA,__common)
    collect2: ld returned 1 exit status
    make: *** [raspell.bundle] Error 1

     
    • Rob Biedenharn
      Rob Biedenharn
      2006-11-28

      The problem is that all three of the C files include the raspell.h header and define (not just declare) the globals.

      It should be easy enough to appy these patches by hand (I don't know if patch will handle them as-is).

      -Rob

      --- raspell.c~    2005-08-20 14:51:18.000000000 -0400
      +++ raspell.c    2006-11-16 10:15:52.000000000 -0500
      @@ -1,4 +1,5 @@

      +#define IN_RASPELL_C
      #include "raspell.h"

      extern void Init_dictinfo();
      --- raspell.h~    2005-08-20 14:51:18.000000000 -0400
      +++ raspell.h    2006-11-16 10:09:25.000000000 -0500
      @@ -4,10 +4,16 @@
      #include <ruby.h>
      #include <aspell.h>

      -VALUE cAspell;
      -VALUE cDictInfo;
      +#ifdef IN_RASPELL_C
      +#define MAYBE /**/
      +#else
      +#define MAYBE extern
      +#endif
      +
      +MAYBE VALUE cAspell;
      +MAYBE VALUE cDictInfo;

      -VALUE cAspellError;
      +MAYBE VALUE cAspellError;

      #endif

       
  • Paul Strange
    Paul Strange
    2006-02-23

    I am getting the same error as Mr. Engelhart.  Any ideas or thoughts?

     
    • Paul Strange
      Paul Strange
      2006-02-23

      I was able to get it to compile with the following changes:

      raspell.h (7-10)
      //VALUE cAspell;
      //VALUE cDictInfo;

      //VALUE cAspellError;

      dictinfo.c (36)
      VALUE cDictInfo = rb_define_class("AspellDictInfo", rb_cObject);

      aspell.c (586)
      VALUE cAspell = rb_define_class("Aspell", rb_cObject);

      raspell.c (8)
      VALUE cAspellError = rb_define_class("AspellError", rb_eStandardError);

      I am no C expert, so I am not sure how this will effect the actual functionality of the tool.

      But, it compiles.

       

  • Anonymous
    2012-01-30

    I have some problems with raspell.

    My environment is a Backtrack 5, ruby 1.9.2 and raspell 1.3.

    raspell is ignoring the option ignore-accents as I can show here:

    {
    irb(main):046:0> r = Aspell.new("ES")
    => #<Aspell:0x9aacef0>
    irb(main):047:0> r.get_option("ignore-accents")
    => "false"
    irb(main):049:0> r.set_option("ignore-accents","true")
    => #<Aspell:0x9aacef0>
    irb(main):050:0> r.check("camión")
    => true
    irb(main):051:0> r.check("camion")
    => false
    irb(main):052:0>
    }