GNUAspell / aspell

http://aspell.net
GNU Lesser General Public License v2.1
243 stars 53 forks source link

Compile of 0.60.4 fails in nroff.cpp #397

Closed aspell-helper closed 7 years ago

aspell-helper commented 17 years ago

Bob Atkins bobatkins\@sf created a bug report on 2006-12-16 06:18:11 UTC (Orig. from https://sourceforge.net/p/aspell/bugs/200)

./configure --prefix=/opt \ --disable-static \ CFLAGS="-O3 -mcpu=ultrasparc -I/opt/include" \ CXXFLAGS="-O3 -mcpu=ultrasparc -I/opt/include" \ LDFLAGS="-L/opt/lib -R/opt/lib"

The result is:

g++ -DHAVE_CONFIG_H -I. -I. -I./gen -I./gen -I./common -I./interfaces/cc/ -I./modules/speller/default/ -DLOCALEDIR=\"/opt/share/locale\" -O3 -m64 -mcpu=ultrasparc -I/opt/include -fno-exceptions -MT modules/filter/nroff.lo -MD -MP -MF modules/filter/.deps/nroff.Tpo -c modules/filter/nroff.cpp -fPIC -DPIC -o modules/filter/.libs/nroff.o modules/filter/nroff.cpp:76: error: extra qualification '::NroffFilter::' on member 'process_char' gmake[1]: *** [modules/filter/nroff.lo] Error 1

Compiled using: % gcc -v Using built-in specs. Target: sparc-sun-solaris2.10 Configured with: ../gcc-4.1.1/configure --prefix=/opt --with-local-prefix=/opt/include --with-cpu=ultrasparc --enable-languages=c,c++,java Thread model: posix gcc version 4.1.1

aspell-helper commented 17 years ago

Kevin Atkinson kevina\@sf updated the issue on 2006-12-16 06:32:42 UTC

aspell-helper commented 17 years ago

Kevin Atkinson kevina\@sf commented on 2006-12-16 06:32:42 UTC

Logged In: YES user_id=6591 Originator: NO

This should already be fixed. Please try: ftp://alpha.gnu.org/gnu/aspell/aspell-0.60.5-pre1.tar.gz

aspell-helper commented 17 years ago

Bob Atkins bobatkins\@sf updated the issue on 2006-12-18 00:44:20 UTC

aspell-helper commented 17 years ago

Bob Atkins bobatkins\@sf commented on 2006-12-18 00:44:20 UTC

Logged In: YES user_id=655552 Originator: YES

Compiling with aspell-0.60.5-pre1 seems to have fixed the original compilation failure that I reported. However, it is still failing. I tried to build both with and without the --without-libintl-prefix configure option and got the same results.

./configure --prefix=/opt \ --disable-static \ --without-libintl-prefix \ CFLAGS="-O3 -mcpu=ultrasparc -I/opt/include" \ CXXFLAGS="-O3 -mcpu=ultrasparc -I/opt/include" \ LDFLAGS="-L/opt/lib -R/opt/lib"

g++ -O3 -m64 -mcpu=ultrasparc -I/opt/include -fno-exceptions -o .libs/aspell prog/aspell.o prog/check_funs.o prog/checker_string.o -L/opt/lib/sparcv9 ./.libs/libaspell.so /opt/lib/sparcv9/libintl.so -L/opt/lib -lc /opt/lib/sparcv9/libstdc++.so -L/home/bob/src/SunOS-5.10.sun4u/sparc-sun-solaris2.10/sparcv9/libstdc++-v3/src -L/home/bob/src/SunOS-5.10.sun4u/sparc-sun-solaris2.10/sparcv9/libstdc++-v3/src/.libs -L/home/bob/src/SunOS-5.10.sun4u/./gcc/sparcv9 -lncurses -ldl -Wl,-R -Wl,/opt/lib/sparcv9 ld: warning: file /opt/lib/sparcv9/libstdc++.so: attempted multiple inclusion of file Undefined first referenced symbol in file acommon::HashTable::erase(char const* const&)./.libs/libaspell.so ld: fatal: Symbol referencing errors. No output written to .libs/aspell

aspell-helper commented 17 years ago

Jose Da Silva josedasilva\@sf commented on 2007-08-06 06:57:21 UTC

Logged In: YES user_id=1138138 Originator: NO

When you did a ./configure and you included "-O3" you instructed g++ to do some inline optimizations for the library. Then aspell.cpp was not able to find the lost entry points since it is not an official aspell.h entry point.

Go to file common/string_map.cpp and add the 2 lines below: --------------------- --- aspell-0.60.5/common/string_map.cpp 2006-01-22 08:04:46.000000000 -0500 +++ aspell-0.60.5-patched/common/string_map.cpp 2007-01-05 15:07:36.000000000 -0500 @@ -23,6 +23,8 @@ HashTable::insert(const StringPair &); template void HashTable::init(unsigned int); template void HashTable::del(void); + template HashTable::size_type + HashTable::erase(char const* const&); template void BlockSList::clear(void);

void StringMap::copy(const StringMap & other) ---------------------

The above 2 lines are described in a patch, see bug 1768166 https://sourceforge.net/tracker/index.php?func=detail&aid=1768166&group_id=245&atid=100245

[Note: #​1768166 = https://sourceforge.net/p/aspell/bugs/210/ = #417] [Note: #​1768166 = https://sourceforge.net/p/aspell/bugs/210/ = #417]

aspell-helper commented 17 years ago

Kevin Atkinson kevina\@sf updated the issue on 2007-10-09 05:51:35 UTC

aspell-helper commented 17 years ago

Kevin Atkinson kevina\@sf commented on 2007-10-09 05:51:35 UTC

Logged In: YES user_id=6591 Originator: NO

I applied the fix josedasilva suggested.

I am going to assume it's fixed since I can't reproduce it.