[GRASS5] Re: [GRASSLIST:1375] Re: cygwin 5.7 - db_driver_execute_immediate
Paul Kelly
paul-grass at stjohnspoint.co.uk
Tue Sep 30 04:47:49 EDT 2003
On Sun, 28 Sep 2003, Richard Greenwood wrote:
> I would be more than happy to package what I have thus far if it would
> be useful. I beleive a 'make bindist' is what would be required? I have
> built without nviz (seems that I read that nviz does not work propery
> under cygwin, but if I am mistaken I will add it to my build) and with
> the following options:
>
> --enable-shared=no \
> --with-gd=no \
> --with-tcltk=yes \
> --with-opengl=no \
> --with-fftw=no \
> --with-gdal=no \
> --with-postgres=yes \
> --with-blas=no \
> --with-lapack=no \
> --with-freetype=no \
> --with-odbc=no \
> --with-motif=no \
> --with-png=no
You get so much added value from compiling GRASS 5.7 with GDAL support
that it really does not show the full capabilities without it, IMHO. But
here is an error I get when compiling with a static GDAL on Cygwin (I know
it is possible to use a dll version of GDAL but this should work as well).
Seems to be the internal version of shapelib inside the GRASS vector
library is conflicting with the shapelib inside GDAL/OGR when both
libraries are linked together in v.out.ogr:
gcc -L/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib -o /cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/etc/bin/cmd/v.out.ogr OBJ.i686-pc-cygwin/main.o -lgrass_vect -lgrass_dig2 -lgrass_shape -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase -lgrass_gis -lgrass_datetime -lintl /usr/local/lib/ogrsf_frmts.a /usr/local/lib/gdal.a /usr/local/lib/ogr.a /usr/local/lib/gdal.a /usr/local/lib/cpl.a -lpng -lz -lm -lm -lrpclib -lz
/usr/local/lib/ogrsf_frmts.a(dbfopen.o)(.text+0x15c):dbfopen.c: multiple definition of `DBFOpen'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(dbfopen.o)(.text+0x15c):/cygdrive/g/loccvs/grass51/lib/external/shapelib/dbfopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(dbfopen.o)(.text+0x584):dbfopen.c: multiple definition of `DBFClose'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(dbfopen.o)(.text+0x510):/cygdrive/g/loccvs/grass51/lib/external/shapelib/dbfopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(dbfopen.o)(.text+0x6e8):dbfopen.c: multiple definition of `DBFCreate'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(dbfopen.o)(.text+0x674):/cygdrive/g/loccvs/grass51/lib/external/shapelib/dbfopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(dbfopen.o)(.text+0x8f0):dbfopen.c: multiple definition of `DBFAddField'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(dbfopen.o)(.text+0x87c):/cygdrive/g/loccvs/grass51/lib/external/shapelib/dbfopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(dbfopen.o)(.text+0xcf4):dbfopen.c: multiple definition of `DBFReadIntegerAttribute'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(dbfopen.o)(.text+0xbcc):/cygdrive/g/loccvs/grass51/lib/external/shapelib/dbfopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(dbfopen.o)(.text+0xd3c):dbfopen.c: multiple definition of `DBFReadDoubleAttribute'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(dbfopen.o)(.text+0xc08):/cygdrive/g/loccvs/grass51/lib/external/shapelib/dbfopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(dbfopen.o)(.text+0xd68):dbfopen.c: multiple definition of `DBFReadStringAttribute'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(dbfopen.o)(.text+0xc28):/cygdrive/g/loccvs/grass51/lib/external/shapelib/dbfopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(dbfopen.o)(.text+0xe68):dbfopen.c: multiple definition of `DBFGetFieldCount'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(dbfopen.o)(.text+0xc48):/cygdrive/g/loccvs/grass51/lib/external/shapelib/dbfopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(dbfopen.o)(.text+0xe78):dbfopen.c: multiple definition of `DBFGetRecordCount'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(dbfopen.o)(.text+0xc58):/cygdrive/g/loccvs/grass51/lib/external/shapelib/dbfopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(dbfopen.o)(.text+0xe88):dbfopen.c: multiple definition of `DBFGetFieldInfo'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(dbfopen.o)(.text+0xc68):/cygdrive/g/loccvs/grass51/lib/external/shapelib/dbfopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(dbfopen.o)(.text+0x14e0):dbfopen.c: multiple definition of `DBFWriteDoubleAttribute'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(dbfopen.o)(.text+0x1020):/cygdrive/g/loccvs/grass51/lib/external/shapelib/dbfopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(dbfopen.o)(.text+0x150c):dbfopen.c: multiple definition of `DBFWriteIntegerAttribute'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(dbfopen.o)(.text+0x104c):/cygdrive/g/loccvs/grass51/lib/external/shapelib/dbfopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(dbfopen.o)(.text+0x153c):dbfopen.c: multiple definition of `DBFWriteStringAttribute'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(dbfopen.o)(.text+0x107c):/cygdrive/g/loccvs/grass51/lib/external/shapelib/dbfopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(dbfopen.o)(.text+0x15ac):dbfopen.c: multiple definition of `DBFWriteTuple'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(dbfopen.o)(.text+0x10a0):/cygdrive/g/loccvs/grass51/lib/external/shapelib/dbfopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(dbfopen.o)(.text+0x167c):dbfopen.c: multiple definition of `DBFReadTuple'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(dbfopen.o)(.text+0x1170):/cygdrive/g/loccvs/grass51/lib/external/shapelib/dbfopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(dbfopen.o)(.text+0x1728):dbfopen.c: multiple definition of `DBFCloneEmpty'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(dbfopen.o)(.text+0x121c):/cygdrive/g/loccvs/grass51/lib/external/shapelib/dbfopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(shpopen.o)(.text+0x3dc):shpopen.c: multiple definition of `SHPOpen'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(shpopen.o)(.text+0x3dc):/cygdrive/g/loccvs/grass51/lib/external/shapelib/shpopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(shpopen.o)(.text+0x9ac):shpopen.c: multiple definition of `SHPClose'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(shpopen.o)(.text+0x964):/cygdrive/g/loccvs/grass51/lib/external/shapelib/shpopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(shpopen.o)(.text+0xa20):shpopen.c: multiple definition of `SHPGetInfo'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(shpopen.o)(.text+0x9f0):/cygdrive/g/loccvs/grass51/lib/external/shapelib/shpopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(shpopen.o)(.text+0xa74):shpopen.c: multiple definition of `SHPCreate'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(shpopen.o)(.text+0xa44):/cygdrive/g/loccvs/grass51/lib/external/shapelib/shpopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(shpopen.o)(.text+0xdc8):shpopen.c: multiple definition of `SHPComputeExtents'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(shpopen.o)(.text+0xd98):/cygdrive/g/loccvs/grass51/lib/external/shapelib/shpopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(shpopen.o)(.text+0xf40):shpopen.c: multiple definition of `SHPCreateObject'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(shpopen.o)(.text+0xf10):/cygdrive/g/loccvs/grass51/lib/external/shapelib/shpopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(shpopen.o)(.text+0x115c):shpopen.c: multiple definition of `SHPCreateSimpleObject'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(shpopen.o)(.text+0x1124):/cygdrive/g/loccvs/grass51/lib/external/shapelib/shpopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(shpopen.o)(.text+0x1290):shpopen.c: multiple definition of `SHPWriteObject'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(shpopen.o)(.text+0x11d0):/cygdrive/g/loccvs/grass51/lib/external/shapelib/shpopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(shpopen.o)(.text+0x1d58):shpopen.c: multiple definition of `SHPReadObject'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(shpopen.o)(.text+0x1c08):/cygdrive/g/loccvs/grass51/lib/external/shapelib/shpopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(shpopen.o)(.text+0x27d4):shpopen.c: multiple definition of `SHPTypeName'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(shpopen.o)(.text+0x2688):/cygdrive/g/loccvs/grass51/lib/external/shapelib/shpopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(shpopen.o)(.text+0x2934):shpopen.c: multiple definition of `SHPPartTypeName'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(shpopen.o)(.text+0x27e8):/cygdrive/g/loccvs/grass51/lib/external/shapelib/shpopen.c: first defined here
/usr/local/lib/ogrsf_frmts.a(shpopen.o)(.text+0x299c):shpopen.c: multiple definition of `SHPDestroyObject'
/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/lib/libgrass_shape.a(shpopen.o)(.text+0x2850):/cygdrive/g/loccvs/grass51/lib/external/shapelib/shpopen.c: first defined here
collect2: ld returned 1 exit status
make: *** [/cygdrive/g/loccvs/grass51/dist.i686-pc-cygwin/etc/bin/cmd/v.out.ogr] Error 1
As far as I understand it NVIZ used to compile on Cygwin and it was only
the recent addition of some GLX (?) functions that stopped this, and it
should be able to be easily fixed when someone has the time to look at it.
Paul
More information about the grass-dev
mailing list