[GRASS5] r.in.gdal compile error in 5.3.0

Using shared libraries (dll), PROJ 4.4.8 and GDAL 1.2.0 (or 15 May CVS snapshot), configure line
CHOST="i586-pc-linux-gnu" CFLAGS="-march=pentium -O3 -pipe -fomit-frame-pointer" ../grass/configure --with-postgres=no --with-tcltk-includes=/usr/local/include --with-tcltk-libs=/usr/local/lib --enable-gmake=no --with-odbc=no --with-fftw=no --with-opengl=yes --with-proj-includes=/usr/local/include --with-proj-libs=/usr/local/lib
gives this error

make: Entering directory `/cygdrive/d/paul/grass/src/raster/r.in.gdal'
mkdir -p /cygdrive/d/paul/gbld/src/raster/r.in.gdal
make -f makefile
make[1]: Entering directory `/cygdrive/d/paul/grass/src/raster/r.in.gdal'
gcc -L/cygdrive/d/paul/gbld/src/libes -Wl,--export-dynamic -o /cygdrive/d/paul/gbld/dist.i686-pc-cygwin/etc/bin/cmd/r.in.gdal /cygdrive/d/paul/gbld/src/raster/r.in.gdal/main.o /cygdrive/d/paul/gbld/src/raster/r.in.gdal/gbgetsymbol.o /cygdrive/d/paul/gbld/src/raster/r.in.gdal/gdalbridge.o \
   -L/usr/local/lib -lgdal -lgrass_gproj -L/usr/local/lib -lproj -lgrass_gis -lgrass_I -lgrass_gmath -lrpclib -lz collect2: ld terminated with signal 11 [Segmentation fault], core dumped
/usr/local/lib/libgdal.dll(.text+0x0):crtstuff.c: multiple definition of `___do_sjlj_init'
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/crtbegin.o(.text+0x0):crtstuff.c: first defined here
make[1]: *** [/cygdrive/d/paul/gbld/dist.i686-pc-cygwin/etc/bin/cmd/r.in.gdal] Error 1
make[1]: Leaving directory `/cygdrive/d/paul/grass/src/raster/r.in.gdal'
make: *** [dir] Error 2
make: Leaving directory `/cygdrive/d/paul/grass/src/raster/r.in.gdal'

Doesn't happen with an older shared libgdal.1.1.dll.
Might be a GDAL problem but thought I'd post it here to start with.

Hello Frank

On Tue, 18 May 2004, Frank Warmerdam wrote:

Paul Kelly wrote:

/cygdrive/d/paul/gbld/src/raster/r.in.gdal/main.o /cygdrive/d/paul/gbld/src/raster/r.in.gdal/gbgetsymbol.o /cygdrive/d/paul/gbld/src/raster/r.in.gdal/gdalbridge.o \
    -L/usr/local/lib -lgdal -lgrass_gproj -L/usr/local/lib -lproj -lgrass_gis -lgrass_I -lgrass_gmath -lrpclib -lz collect2: ld terminated with signal 11 [Segmentation fault], core dumped
/usr/local/lib/libgdal.dll(.text+0x0):crtstuff.c: multiple definition of `___do_sjlj_init'

Paul,

This doesn't ring any bells for me. Have you made any progess? Based on
the fact that it reports crtstuff.c, I am wondering if a main() is getting
linked into libgdal.dll somehow?

Well I've discovered it works when I compile using libtool. Had been using without-libtool as it didn't create DLLs properly on Cygwin before but that
seems to have been fixed now. So I suppose it is OK for now.

Paul