Subject: textproc/aspell not building on 4.99.3
To: None <pkgsrc-users@netbsd.org>
From: Henry R. Bent <Henry.Bent@oberlin.edu>
List: pkgsrc-users
Date: 10/26/2006 00:09:27
Hi everyone,

I am using pkgsrc-2006Q3 on a 4.99.3 i386 machine and I do not seem to 
be able to build textproc/aspell.  I submitted pkg/34819 about this 
problem but have not heard anything back; I decided to see if the list 
had any suggestions.  This build failure breaks any number of apps that 
are interesting/important to me (gaim and bluefish come to mind).  Here 
is the failure excerpt:

--

         if c++ -DHAVE_CONFIG_H -I. -I. -I./gen  -I./gen -I./common 
-I./interfaces/cc/ -I./modules/speller/default/ 
-DLOCALEDIR=\"/usr/pkg/share/locale\" -I/usr/include  -O3 -march=opteron 
-I/usr/include -fno-exceptions -MT prog/checker_string.o -MD -MP -MF 
"$depbase.Tpo" -c -o prog/checker_string.o prog/checker_string.cpp; \
         then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f 
"$depbase.Tpo"; exit 1; fi
/bin/sh ./libtool --tag=CXX --mode=link c++  -O3 -march=opteron 
-I/usr/include -fno-exceptions  -L/usr/lib -Wl,-R/usr/lib 
-Wl,-R/usr/pkg/lib -o aspell  prog/aspell.o prog/check_funs.o 
prog/checker_string.o libaspell.la -lncurses
c++ -O3 -march=opteron -fno-exceptions -Wl,-R/usr/pkg/lib -o 
.libs/aspell prog/aspell.o prog/check_funs.o prog/checker_string.o 
./.libs/libaspell.so -lintl 
-L/usr/pkgsrc/textproc/aspell/work/.buildlink/lib -lcurses -Wl,--rpath 
-Wl,/usr/pkg/lib
./.libs/libaspell.so: undefined reference to 
`acommon::HashTable<acommon::StringMap::Parms>::init(unsigned int)'
./.libs/libaspell.so: undefined reference to 
`acommon::HashTable<acommon::StringMap::Parms>::del()'
./.libs/libaspell.so: undefined reference to 
`acommon::BlockSList<acommon::StringPair>::clear()'
./.libs/libaspell.so: undefined reference to 
`acommon::HashTable<acommon::StringMap::Parms>::erase(char const* const&)'
gmake[1]: *** [aspell] Error 1
gmake[1]: Leaving directory `/usr/pkgsrc/textproc/aspell/work/aspell-0.60.4'
gmake: *** [all-recursive] Error 1
*** Error code 2

--

Just for kicks I tried building with the most recent aspell patch from 
the mainline (the one that fixes building on IRIX 5) but unsurprisingly 
it did not work.  I am relatively sure that this is a gcc4 problem; 
aspell built correctly with pkgsrc-2006Q3 on a 3.99.18 system.

Any ideas?  Thanks in advance!

-Henry Bent