[GRASS-dev] 6.4.0svn compilation error with undefined reference to
`_'
Glynn Clements
glynn at gclements.plus.com
Mon Oct 5 20:46:43 EDT 2009
Markus Neteler wrote:
> I am trying to compie 6.4.0svn on a Centos Linux system but have this strange
> undefined reference to `_' problem:
>
> cd d.extend/
>
> make
> ...
> /private/software/grass-6.4.svn/dist.x86_64-unknown-linux-gnu/lib/libgrass_vect.so:
> undefined reference to `_'
> collect2: ld returned 1 exit status
> make: *** [/private/software/grass-6.4.svn/dist.x86_64-unknown-linux-gnu/bin/d.extend]
> Error 1
>
> nm /private/software/grass-6.4.svn/dist.x86_64-unknown-linux-gnu/lib/libgrass_vect.so
> | grep ' _'
> U _
> 0000000000237250 a _DYNAMIC
> 00000000002374b8 a _GLOBAL_OFFSET_TABLE_
> w _Jv_RegisterClasses
>
> Actually, NLS was included in libgrass_vect.so?
>
> In configure, I have set --with-nls=no. Nontheless the error
> appears.
>
> any idea?
lib/vector/Vlib/rewind.c uses _() so it needs:
#include <grass/glocale.h>
This should have caused an "implicit function declaration" warning.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list