您的位置:首页 > 服装鞋帽 > 女装 > SUNWgnome-spell link with apache C++...

SUNWgnome-spell link with apache C++...

luyued 发布于 2011-03-18 21:16   浏览 N 次  

  with cbe patch:

  compile SUNWgnome-spell without apache std:

  pkgbuild: /ws/onnv-tools-prc/SUNWspro/SS12/bin/CC -norunpath -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"enchant\" -DVERSION=\"1.5.0\" -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_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LOCKF=1 -DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 -I. -I../../src -I/usr/include/glib-2.0 -I/usr/lib/sparcv9/glib-2.0/include -DENCHANT_PREFIX_DIR=\"/usr\" -Wall -Wextra -Wsign-compare -Wpointer-arith -Wwrite-strings -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -fno-strict-aliasing -DENCHANT_ISPELL_DICT_DIR=\"/usr/share/enchant/isp ell\" -D_ENCHANT_BUILD=1 -i -xO3 -xspace -xarch=v9 -xcode=pic32 -mr -norunpath -c tgood.cpp -KPIC -DPIC -o .libs/tgood.o

  pkgbuild: CC: Warning: Option -Winline passed to ld, if ld is invoked, ignored otherwise

  pkgbuild: CC: Warning: Option -fno-strict-aliasing passed to ld, if ld is invoked, ignored otherwise

  pkgbuild: /bin/bash ../../libtool --tag=CXX --mode=link /ws/onnv-tools-prc/SUNWspro/SS12/bin/CC -norunpath -i -xO3 -xspace -xarch=v9 -xcode=pic32 -mr -norunpath -module -avoid-version -no-undefined -Wl,-zignore -Wl,-zcombreloc -Wl,-Bdirect -o libenchant_ispell.la -rpath /usr/lib/sparcv9/enchant correct.lo good.lo hash.lo ispell_checker.lo lookup.lo makedent.lo tgood.lo ../../src/libenchant.la -L/usr/lib/sparcv9 -lgmodule-2.0 -lglib-2.0

  pkgbuild: /ws/onnv-tools-prc/SUNWspro/SS12/bin/CC -norunpath -G -zdefs -hlibenchant_ispell.so -o .libs/libenchant_ispell.so .libs/correct.o .libs/good.o .libs/hash.o .libs/ispell_checker.o .libs/lookup.o .libs/makedent.o .libs/tgood.o -R/export/home/jds/packages/BUILD/SUNWgnome-spell- 2.27.91/sparcv9/enchant-1.5.0/src/.libs -R/usr/lib/sparcv9 ../../src/.libs/libenchant.so -L/usr/lib/sparcv9 -lgmodule-2.0 -lglib-2.0 -lCrun -lc -xarch=v9 -mr -Qoption ld -zignore -Qoption ld -zcombreloc -Qoption ld -Bdirect

  pkgbuild: CC: Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs

  pkgbuild: Undefined first referenced

  pkgbuild: symbol in file

  pkgbuild: std::string &std::string::operator=(const char*) .libs/ispell_checker.o

  pkgbuild: std::string &std::string::operator=(const std::string &) .libs/ispell_checker.o

  pkgbuild: std::string::basic_string(const char*,const std::allocator&) .libs/ispell_checker.o

  pkgbuild: std::string::~basic_string() .libs/ispell_checker.o

  pkgbuild: std::string::__nullref .libs/ispell_checker.o

  pkgbuild: [Hint: static member std::string::__nullref must be defined in the program]

  pkgbuild:

  pkgbuild: __rwstd::__string_ref,std ::allocator

  >*std::string::__getRep(unsigned long,unsigned long) .libs/ispell_checker.o

  pkgbuild: const char*__rwstd::rw_traits >::rfind(const char*,char,unsigned long) .libs/ispell_checker.o

  pkgbuild: std::string std::string::substr(unsigned long,unsigned long)const .libs/ispell_checker.o

  pkgbuild: void std::string::__unLink() .libs/ispell_checker.o

  pkgbuild: ld: fatal: symbol referencing errors. No output written to .libs/libenchant_ispell.so

  pkgbuild: make[2]: *** [libenchant_ispell.la] Error 1

  pkgbuild: make[2]: Leaving directory `/export/home/jds/packages/BUILD/SUNWgnome-spell-2 .27.91/sparcv9/enchant-1.5.0/src/ispell'

  pkgbuild: make[1]: *** [all-recursive] Error 1

  pkgbuild: make[1]: Leaving directory `/export/home/jds/packages/BUILD/SUNWgnome-spell-2 .27.91/sparcv9/enchant-1.5.0/src'

  pkgbuild: make: *** [all-recursive] Error 1

  pkgbuild: Bad exit status from /var/tmp/pkgbuild-jds/pkgbuild-tmp-2.29853 (%build)

  --- command output ends --- finished at Thu Sep 10 13:49:54 CST 2009

  INFO: pkgbuild -ba finished at Thu Sep 10 13:49:54 CST 2009

  Some thing with the cbe patch:

  change back to ld=CC

  kgbuild: /bin/bash ../libtool --tag=CC --mode=compile /ws/onnv-tools-prc/SUNWspro/SS12/bin/cc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"enchant\" -DVERSION=\"1.5.0\" -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_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LOCKF=1 -DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/sparcv9/glib-2.0/include -DENCHANT_PREFIX_DIR='"/usr"' -fno-strict-aliasing -DENCHANT_GLOBAL_MODULE_DIR=\"/usr/lib/sparcv9/enc hant\" -DENCHANT_GLOBAL_ORDERING=\"/usr/share/enchant\" -D_ENCHANT_BUILD=1 -I/usr/include/stdcxx4/ansi -I/usr/include/stdcxx4/tr1 -I/usr/include/stdcxx4 -i -xO4 -xspace -xstrconst -xarch=v9 -xcode=pic32 -mr -c -o pwl.lo pwl.c

  pkgbuild: /ws/onnv-tools-prc/SUNWspro/SS12/bin/cc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"enchant\" -DVERSION=\"1.5.0\" -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_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LOCKF=1 -DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/sparcv9/glib-2.0/include -DENCHANT_PREFIX_DIR=\"/usr\" -fno-strict-aliasing -DENCHANT_GLOBAL_MODULE_DIR=\"/usr/lib/sparcv9/enc hant\" -DENCHANT_GLOBAL_ORDERING=\"/usr/share/enchant\" -D_ENCHANT_BUILD=1 -I/usr/include/stdcxx4/ansi -I/usr/include/stdcxx4/tr1 -I/usr/include/stdcxx4 -i -xO4 -xspace -xstrconst -xarch=v9 -xcode=pic32 -mr -c pwl.c -KPIC -DPIC -o .libs/pwl.o

  pkgbuild: cc: Warning: illegal option -fno-strict-aliasing

  pkgbuild: /opt/jdsbld/bin/ld-wrapper -64 -G -z text -h libenchant.so.1 -o .libs/libenchant.so.1.5.0 .libs/prefix.o .libs/enchant.o .libs/pwl.o -L/usr/lib/sparcv9 -lc -lm -lCrun -lstdcxx4 -lgmodule-2.0 -lglib-2.0 -lc -zignore -zcombreloc -Bdirect

  pkgbuild: ld: fatal: library -lCrun: not found

  pkgbuild: ld: fatal: file processing errors. No output written to .libs/libenchant.so.1.5.0

  pkgbuild: make[2]: *** [libenchant.la] Error 1

  Change to --tag=CXX fix this:

  So add

  # See http://bugzilla.abisource.com/show_bug.cgi?id=1066 8 for why LD is set

  # to $CXX.

  export LD=$CXX

  pkgbuild: /bin/bash ../libtool --tag=CC --mode=link /ws/onnv-tools-prc/SUNWspro/SS12/bin/cc -i -xO4 -xspace -xstrconst -xarch=v9 -xcode=pic32 -mr -no-undefined -export-dynamic -version-info 6:0:5 -Wl,-zignore -Wl,-zcombreloc -Wl,-Bdirect -L/usr/lib/sparcv9 -lc -lm -lCrun -lstdcxx4 -o libenchant.la -rpath /usr/lib/sparcv9 prefix.lo enchant.lo pwl.lo -L/usr/lib/sparcv9 -lgmodule-2.0 -lglib-2.0

  pkgbuild: /ws/onnv-tools-prc/SUNWspro/SS12/bin/CC -norunpath -64 -G -z text -h libenchant.so.1 -o .libs/libenchant.so.1.5.0 .libs/prefix.o .libs/enchant.o .libs/pwl.o -L/usr/lib/sparcv9 -lc -lm -lCrun -lstdcxx4 -lgmodule-2.0 -lglib-2.0 -lc -zignore -zcombreloc -Bdirect

  pkgbuild: CC: Warning: Option -64 passed to ld, if ld is invoked, ignored otherwise

  pkgbuild: ld: fatal: file /ws/onnv-tools-prc/SUNWspro/SS12/prod/lib/crti.o: wrong ELF class: ELFCLASS32

  pkgbuild: ld: fatal: file processing errors. No output written to .libs/libenchant.so.1.5.0

  This means lack of -m64 for 64bit.

  So, add export LD="${CXX} -m64" for 64 bit and change it back to export LD=$CXX

图文资讯
广告赞助商