[GRASS-dev] 6.4.0svn compilation error with undefined reference to `_'

Hi,

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?
Markus

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@gclements.plus.com>