From: John Lodder (jlodder_at_ripco.com)
Date: Wed Mar 31 2004 - 12:23:06 EST
I'm attempting to compile enchant on Solaris 8, with gcc 3.3.3.
I've tried enchant 1.1.3, and enchant from VCS. Both fail, with
different errors (though I notice enchant in CVS includes unistd.h).
Using enchant 1.1.3, after putting #include <unisted.h> in enchant.c, ld
fails later in the compile:
/usr/ccs/bin/ld -L/local/stuff/tnt/gcc-3.3.3/lib -G -z defs -h libenchant_ispell.so.1 -o .libs/libenchant_ispell.so.1.1.3 correct.lo good.lo hash.lo lookup.lo makedent.lo tgood.lo ispell_checker.lo -R/local/stuff/tnt/abiword/build/lib -R/local/stuff/tnt/enchant/enchant-1.1.3/src/.libs -R/local/stuff/tnt/abiword/build/lib -L/local/stuff/tnt/abiword/build/lib /local/stuff/tnt/abiword/build/lib/libgmodule-2.0.so -ldl /local/stuff/tnt/abiword/build/lib/libglib-2.0.so ../../src/.libs/libenchant.so -lc
Undefined first referenced
symbol in file
_Znwj ispell_checker.lo
_ZNSsC1ERKSsjj ispell_checker.lo
_ZNSt24__default_alloc_templateILb1ELi0EE10deallocateEPvj ispell_checker.lo
_ZNSs4_Rep10_M_destroyERKSaIcE ispell_checker.lo
_ZNSs6assignERKSs ispell_checker.lo
__cxa_rethrow ispell_checker.lo
_ZNSt24__default_alloc_templateILb1ELi0EE8allocateEj ispell_checker.lo
_ZNSs6assignEPKcj ispell_checker.lo
_ZdlPv ispell_checker.lo
_ZNSs4_Rep11_S_terminalE ispell_checker.lo
_ZNSsC1EPKcRKSaIcE ispell_checker.lo
_ZNSsC1ERKSs ispell_checker.lo
_ZNKSs5rfindEcj ispell_checker.lo
__cxa_end_catch ispell_checker.lo
_Unwind_Resume ispell_checker.lo (symbol belongs to implicit dependency /local/stuff/tnt/gcc-3.3.3/lib/libgcc_s.so.1)
__gxx_personality_v0 correct.lo
_ZNSs20_S_empty_rep_storageE ispell_checker.lo
__cxa_begin_catch ispell_checker.lo
ld: fatal: Symbol referencing errors. No output written to .libs/libenchant_ispell.so.1.1.3
make[2]: *** [libenchant_ispell.la] Error 1
make[2]: Leaving directory `/local/stuff/tnt/enchant/enchant-1.1.3/src/ispell'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/local/stuff/tnt/enchant/enchant-1.1.3/src'
make: *** [all-recursive] Error 1
With enchant from CVS, gcc fails on aspell_provider.c:
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"enchant\" -DVERSION=\"1.1.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LOCKF=1 -I. -I. -I../../src -I/local/stuff/tnt/abiword/build/include/glib-2.0 -I/local/stuff/tnt/abiword/build/lib/glib-2.0/include -I-I/local/stuff/tnt/abiword/build/include -D_ENCHANT_BUILD=1 @ASPELL_CFLAGS@ -I/local/stuff/tnt/abiword/build/include -g -O2 -MT aspell_provider.lo -MD -MP -MF .deps/aspell_provider.Tpo -c aspell_provider.c -fPIC -DPIC -o .libs/aspell_provider.o
gcc: cannot specify -o with -c or -S and multiple compilations
make[2]: *** [aspell_provider.lo] Error 1
make[2]: Leaving directory `/local/stuff/tnt/enchant/enchant/src/aspell'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/local/stuff/tnt/enchant/enchant/src'
make: *** [all-recursive] Error 1
Has anyone seen either of these? Any suggestions welcome.
thanks,
john.
This archive was generated by hypermail 2.1.4 : Wed Mar 31 2004 - 12:24:17 EST