[GRASS-dev] Re: [Gdal-dev] GDAL/OGR 1.4.0 Released

OK.

configure:2939: checking for G_asprintf in -lgrass_gis
configure:2969: gcc -o conftest -O2 conftest.c -lgrass_gis -L/usr/local/grass-6.3.cvs/lib -lgrass_I -lgrass_vask -lgrass_gmath -lgrass_gis -lgrass_datetime -lgrass_gproj -lgrass_vect -lgrass_dbmibase -lgrass_dbmiclient -lgrass_dgl -lgrass_dig2 -lgrass_rtree -lgrass_linkm -L/usr/local/lib -lgdal >&5
/usr/local/lib/libgeos_c.so.1: undefined reference to `geos::WKBReader::read(std::basic_istream<char, std::char_traits<char> >&)'
/usr/local/lib/libgeos_c.so.1: undefined reference to `geos::WKBWriter::write(geos::Geometry const&, std::basic_ostream<char, std::char_traits<char> >&)'
/usr/local/lib/libgeos_c.so.1: undefined reference to `geos::Point::getCoordinatesRO() const'
/usr/local/lib/libgeos_c.so.1: undefined reference to `geos::WKBWriter::WKBWriter(int, int)'
collect2: ld returned 1 exit status

What does
  ldd /usr/local/grass-6.3.cvs/lib/*6.3.cvs*.so
say?

I assume that geos slips in through libgdal. BTW: Mine points to
        libgeos.so.2 => /usr/local/lib/libgeos.so.2 (0x0000002a95c03000)
        libgeos_c.so.1 => /usr/local/lib/libgeos_c.so.1 (0x0000002a95e0f000)

Is it possible that your GEOS is a bit old? Or that you have two
GEOS libs in parallel?

Just guessing,
Markus

On Wed, Jan 17, 2007 at 04:34:30PM +0100, Maciej Sieczka wrote:

Markus Neteler wrote:

> Can you send the config.log file?

Sure. It's already here:

http://www.nabble.com/attachment/8115821/0/config.log.bz2

Paul already looked into it:

http://www.nabble.com/gdal-grass-plugin-fails-during-.-configure-with-GRASS-6.3-CVS-tf2904798.html#a8115502

Maciek

--
Markus Neteler <neteler itc it> http://mpa.itc.it/markus/
ITC-irst - Centro per la Ricerca Scientifica e Tecnologica
MPBA - Predictive Models for Biol. & Environ. Data Analysis
Via Sommarive, 18 - 38050 Povo (Trento), Italy

Markus Neteler wrote:

OK.

configure:2939: checking for G_asprintf in -lgrass_gis
configure:2969: gcc -o conftest -O2 conftest.c -lgrass_gis -L/usr/local/grass-6.3.cvs/lib -lgrass_I -lgrass_vask -lgrass_gmath -lgrass_gis -lgrass_datetime -lgrass_gproj -lgrass_vect -lgrass_dbmibase -lgrass_dbmiclient -lgrass_dgl -lgrass_dig2 -lgrass_rtree -lgrass_linkm -L/usr/local/lib -lgdal >&5
/usr/local/lib/libgeos_c.so.1: undefined reference to `geos::WKBReader::read(std::basic_istream<char, std::char_traits<char> >&)'
/usr/local/lib/libgeos_c.so.1: undefined reference to `geos::WKBWriter::write(geos::Geometry const&, std::basic_ostream<char, std::char_traits<char> >&)'
/usr/local/lib/libgeos_c.so.1: undefined reference to `geos::Point::getCoordinatesRO() const'
/usr/local/lib/libgeos_c.so.1: undefined reference to `geos::WKBWriter::WKBWriter(int, int)'
collect2: ld returned 1 exit status

What does
  ldd /usr/local/grass-6.3.cvs/lib/*6.3.cvs*.so
say?

See the attached ldd_grass.txt.

I assume that geos slips in through libgdal. BTW: Mine points to
        libgeos.so.2 => /usr/local/lib/libgeos.so.2 (0x0000002a95c03000)
        libgeos_c.so.1 => /usr/local/lib/libgeos_c.so.1 (0x0000002a95e0f000)

Is it possible that your GEOS is a bit old?

2.2.3 - the latest stable. Do I have have to use GEOS 3 RC? GDAL 1.4
CVS 2007-01-14 didn't complain. Nothing relevant here:
http://www.gdal.org/NEWS.html.

Or that you have two GEOS libs in parallel?

Nope. Only one. Built myself. Installed into /usr/local.

Just guessing,

Thanks, I hope this can be worked out somehow.

Maciek

(attachments)

ldd_grass.txt (32.9 KB)

Maciej Sieczka wrote:

Markus Neteler wrote:

Or that you have two GEOS libs in parallel?

Nope. Only one. Built myself. Installed into /usr/local.

But yes I have *two*, damn it! And that was the problem!

I have removed the conflicting, second GEOS instalation and now
gdal-grass configures and builds also with GRASS 6.3 CVS, not only with
6.2.

Sorry to Everyone for the fuss and many thanks for this tip, Markus!

Maciek