[GRASS-windows] Re: Compiling WINGrass 7.0SVN

Glynn Clements glynn at gclements.plus.com
Mon Oct 17 12:28:22 EDT 2011


Johannes Radinger wrote:

> > > I checked if there is anything in the osgeo4w setup which
> > > looks like XDR but couldn't find anything.
> > 
> > At:
> > 	http://download.osgeo.org/osgeo4w/versions.html
> > 
> > the package is listed as "libxdr". I don't know if that's the name
> > shown to the user. Other common names are "rpclib" and "sunrpc".
> 
> Yes, libxdr is shown to the user when using the osgeo4w setup. The
> thing is that libxdr(4.0-1) is already installed (I checked and
> there is also a xdr.lib in c://osgeo4w/lib but I still get following
> error in the package.log:
> ...
> ...
> checking for xdrmem_create... no
> checking for xdrmem_create in -lsun... no
> checking for xdrmem_create in -lnsl... no
> checking for xdrmem_create in -lrpclib... no
> checking for xdrmem_create in -lxdr... no
> configure: error: *** Unable to locate XDR functions.
> 
> Is that a different thing from the XDR-libary?

That's XDR.

> Attached there is also my config.log which probably
> provides some additional information.

Yep:

configure:4592: checking for xdrmem_create in -lxdr
configure:4609: gcc -o conftest.exe -g -O2    -I/c/OSGeo4W/include  -Wl,--export-dynamic,--enable-runtime-pseudo-reloc  -L/c/OSGeo4W/lib -L/osgeo4w/usr/src/grass-7.0.svn/mswindows/osgeo4w/lib conftest.c -lxdr -liberty -lws2_32   1>&5
c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: warning: --export-dynamic is not supported for PE targets, did you mean --export-all-symbols?
c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../crt2.o:crt1.c:(.text+0x28): undefined reference to `__dyn_tls_init_callback'

This indicates a problem with the compiler or linker. The exact same
error occurs for every other test (except those which fail for some
other reason). The XDR check is just the first one which aborts the
configure script.

Some brief googling suggest that this is related to a version mismatch
between various components of MinGW. You might want to try
uninstalling and reinstalling MinGW, or possibly installing an older
version.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-windows mailing list