GNOME Bugzilla – Bug 145533
compile fails on spell-check gcc-3.4.1
Last modified: 2004-12-22 21:47:04 UTC
While compiling balsa-2.1.90 with aspell-0.50.5 pspell 12.2 using gcc-3.4.1,glibc-2.3.2, kernel-2.7 I get the following errors: spell-check.o(.text+0x1425): In function `check_pspell_errors': /usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:1277: undefined reference to `pspell_manager_error_number' spell-check.o(.text+0x143b):/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:1278: undefined reference to `pspell_manager_error_message' spell-check.o(.text+0x1505): In function `spch_finish': /usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:1116: undefined reference to `pspell_manager_save_all_word_lists' spell-check.o(.text+0x158e):/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:1136: undefined reference to `delete_pspell_manager' spell-check.o(.text+0x1813): In function `balsa_spell_check_learn': /usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:964: undefined reference to `pspell_manager_add_to_session' spell-check.o(.text+0x184a):/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:968: undefined reference to `pspell_manager_add_to_personal' spell-check.o(.text+0x185c):/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:975: undefined reference to `pspell_manager_error_number' spell-check.o(.text+0x186e):/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:976: undefined reference to `pspell_manager_error_message' spell-check.o(.text+0x2024): In function `balsa_spell_check_next': /usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:1210: undefined reference to `pspell_config_retrieve' spell-check.o(.text+0x2096):/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:1224: undefined reference to `pspell_manager_check' spell-check.o(.text+0x20cb):/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:1234: undefined reference to `pspell_manager_suggest' spell-check.o(.text+0x20f0):/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:1162: undefined reference to `pspell_word_list_elements' spell-check.o(.text+0x216c):/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:1184: undefined reference to `pspell_string_emulation_next' spell-check.o(.text+0x2197):/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:1169: undefined reference to `pspell_config_retrieve' spell-check.o(.text+0x23b9): In function `balsa_spell_check_start': /usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:782: undefined reference to `new_pspell_config' spell-check.o(.text+0x23dc):/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:783: undefined reference to `pspell_config_replace' spell-check.o(.text+0x23ff):/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:785: undefined reference to `pspell_config_replace' spell-check.o(.text+0x241f):/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:787: undefined reference to `pspell_config_replace' spell-check.o(.text+0x2464):/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:795: undefined reference to `pspell_config_replace' spell-check.o(.text+0x24a4):/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:800: undefined reference to `pspell_config_replace' spell-check.o(.text+0x24ba):/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:803: undefined reference to `new_pspell_manager' spell-check.o(.text+0x24ca):/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:804: undefined reference to `delete_pspell_config' spell-check.o(.text+0x24d2):/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:806: undefined reference to `pspell_error_number' spell-check.o(.text+0x24de):/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:808: undefined reference to `pspell_error_message' spell-check.o(.text+0x2530):/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:817: undefined reference to `to_pspell_manager' spell-check.o(.text+0x2541):/usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:818: undefined reference to `pspell_manager_config' spell-check.o(.text+0x2b8c): In function `balsa_spell_check_fix': /usr/download/projects/garnome--kenny--2.7--patch-8/garnome/broken/balsa/work/main.d/balsa-2.1.90/src/spell-check.c:1019: undefined reference to `pspell_manager_store_replacement' collect2: ld returned 1 exit status make[4]: *** [balsa] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [build-work/main.d/balsa-2.1.90/Makefile] Error 2 make: *** [paranoid-install] Error 2
What is the result of "grep '^LIBS' src/Makefile"? Did configure script detect aspell or it did fall back on pspell?
This is the feedback LIBS = -laspell -lesmtp -lpthread -lesmtp It lookls like aspell was found
I believe there is a conflict on your system between aspell and pspell headers. I think the compiler picks up pspell-0.12 headers but aspell library. aspell contains pspell.h (located in /usr/include/pspell/pspell.h on my system) which maps pspell_* namespace calles to aspell_* calls. the object files should contain references to aspell only.
I've thrown out all the aspell libs from /usr/local/lib and recompiled them. After that balsa 2.1.91 compiled like a charm. Sounds like not a bug to me ? I'll close the bug.