#222 Filters do not work with static build

closed-fixed
compile (52)
5
2008-07-11
2008-07-11
Greg Ward
No

I am trying to build a statically linked aspell. I configured it like this:

$ ./configure \ --prefix=/tmp/aspell/install-static \ --disable-shared \ --enable-static \ --enable-compile-in-filters

and then compiled and installed:

$ make
$ make install

After unpacking aspell6-en-6.0.tar.gz, I was able to run this version just fine:

$ echo "cat dogg" | \ /tmp/aspell/install-static/bin/aspell -a \ --dict-dir /tmp/aspell/aspell6-en-6.0
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6)
*
& dogg 7 4: doggy, dog, Doug, doge, dogs, dong, dog's

But if I enable any filters, it crashes:

$ echo "cat dogg" | \ /tmp/aspell/install-static/bin/aspell -a -H \ --dict-dir /tmp/aspell/aspell6-en-6.0
Unhandled Error: The key "f-html-skip" is unknown.
zsh: done echo "cat dogg" |
zsh: abort (core dumped) /tmp/aspell/install-static/bin/aspell -a -H --dict-dir

Discussion

  • Greg Ward

    Greg Ward - 2008-07-11

    Logged In: YES
    user_id=14422
    Originator: YES

    Running "gdb /tmp/aspell/install-static/bin/aspell --core core" to get a stack trace:

    (gdb) where
    #0 0xffffe410 in __kernel_vsyscall ()
    #1 0xb7d8fdf0 in raise () from /lib/tls/i686/cmov/libc.so.6
    #2 0xb7d91641 in abort () from /lib/tls/i686/cmov/libc.so.6
    #3 0x08075cd4 in acommon::PosibErrBase::handle_err (this=0xbfd26a04) at common/posib_err.cpp:103
    #4 0x080cbeea in (anonymous namespace)::SgmlFilter::setup (this=0x8124aa0, opts=0x80f9ec8)
    at ./common/posib_err.hpp:72
    #5 0x080b5f31 in acommon::setup_filter (filter=@0x8123220, config=0x80f9ec8, use_decoder=true,
    use_filter=true, use_encoder=false) at lib/new_filter.cpp:191
    #6 0x080c613a in acommon::new_document_checker (speller=0x80f9170) at lib/new_checker.cpp:21
    #7 0x0804d081 in new_checker (speller=0x80f9170, status_fun_inf=@0xbfd26cd0) at prog/aspell.cpp:686
    #8 0x08052235 in pipe () at prog/aspell.cpp:737
    #9 0x0805ddef in main (argc=5, argv=0xbfd271b4) at prog/aspell.cpp:416

     
  • Greg Ward

    Greg Ward - 2008-07-11

    Logged In: YES
    user_id=14422
    Originator: YES

    Forgot to mention: I'm seeing this behaviour on Ubuntu 7.04 (feisty) with aspell 0.60.6, gcc 4.1.2, and GNU ld version 2.17.50.

    And I got very similar behaviour yesterday on a much older OS: Red Hat Enterprise Linux 2.1 with gcc "2.96".

     
  • Greg Ward

    Greg Ward - 2008-07-11

    Logged In: YES
    user_id=14422
    Originator: YES

    Finally, this looks *extremely* similar to bug #1964141. I chose to open a new bug because I'm seeing this on Linux rather than OS X, and I know nothing about how that OS X version was built.

     
  • Kevin Atkinson

    Kevin Atkinson - 2008-07-11
    • status: open --> closed-fixed
     
  • Kevin Atkinson

    Kevin Atkinson - 2008-07-11

    Logged In: YES
    user_id=6591
    Originator: NO

    This is already fixed in CVS, the following patch should fix it.

    You may need to start from a fresh build tree.

    File Added: static-filter.patch

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks