Opened 6 years ago

Closed 6 years ago

#552 closed defect (duplicate)

can't make check under mingw64

Reported by: robe Owned by: geos-devel@…
Priority: major Milestone: 3.4.0
Component: Default Version: master
Severity: Unassigned Keywords:
Cc:

Description

I'm running mingw64 gcc 4.5.4

The libraries build, but when going to make check the XMLTester fails compilation with this error I truncated the log a bit so not all lines are there

/bin/sh ../../libtool --tag=CXX   --mode=link x86_64-w64-mingw32-g++  -g -O2   -o XMLTester.exe XMLTester-XMLTester.o XMLTester-tinyxml.o XMLTester-tinystr.o XMLTester-tinyxmlerror.o XMLTester-tinyxmlparser.o XMLTester-BufferResultMatcher.o
 XMLTester-SingleSidedBufferResultMatcher.o ../../src/libgeos.la ../../src/libgeos.lalibtool: link: x86_64-w64-mingw32-g++ -g -O2 -o .libs/XMLTester.exe XMLTester-XMLTester.o XMLTester-tinyxml.o XMLTester-tinystr.o XMLTester-tinyxmlerror.o XMLTester-tinyxmlparser.o XMLTester-BufferResultMatcher.o XMLTester-SingleSidedBufferResultMatcher.o  ../../src/.libs/libgeos.dll.a -L/c/ming64/projects/geos/rel-3.4.0SVNw64/lib
XMLTester-XMLTester.o: In function `std::auto_ptr<geos::geom::PrecisionModel>::reset(geos::geom::PrecisionModel*)':
c:/ming64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.4/../../../../x86_64-w64-mingw32/include/c++/4.5.4/backward/auto_ptr.h:242: undefined reference to `geos::geom::PrecisionModel::~PrecisionModel()'
c:/ming64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.4/../../../../x86_64-w64-mingw32/include/c++/4.5.4/backward/auto_ptr.h:242: undefined reference to `geos::geom::PrecisionModel::~PrecisionModel()'
:
XMLTester-XMLTester.o: In function `~WKBReader':c:\ming64\projects\geos\branches\trunk\tests\xmltester/../../include/geos/io/WKBReader.h:79: undefined reference to `geos::io::ByteOrderDataInStream::~ByteOrderDataInStream()'
XMLTester-XMLTester.o: In function `~auto_ptr':
c:/ming64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.4/../../../../x86_64-w64-mingw32/include/c++/4.5.4/backward/auto_ptr.h:168: undefined reference to `geos::io::WKTReader::~WKTReader()'
XMLTester-XMLTester.o: In function `XMLTester::parseRun(TiXmlNode const*)':c:\ming64\projects\geos\branches\trunk\tests\xmltester/XMLTester.cpp:434: undefi
ned reference to `geos::io::WKTReader::WKTReader(geos::geom::GeometryFactory const*)'
XMLTester-XMLTester.o: In function `std::auto_ptr<geos::io::WKTReader>::reset(geos::io::WKTReader*)':
c:/ming64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.4/../../../../x86_64-w64-mingw32/include/c++/4.5.4/backward/auto_ptr.h:242: undefined reference to `geos::io::WKTReader::~WKTReader()'
:
XMLTester-XMLTester.o: In function `TopologyException':c:\ming64\projects\geos\branches\trunk\tests\xmltester/../../include/geos/util/TopologyException.h:39: undefined reference to `geos::geom::Coordinate::Coordinate(double, double, double)'
XMLTester-XMLTester.o: In function `~auto_ptr':
c:/ming64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.4/../../../../x86_64-w64-mingw32/include/c++/4.5.4/backward/auto_ptr.h:168: undefined reference to `geos::geom::PrecisionModel::~PrecisionModel()'
c:/ming64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.4/../../../../x86_64-w64-mingw32/include/c++/4.5.4/backward/auto_ptr.h:168: undefined reference to `geos::io::WKTReader::~WKTReader()'
XMLTester-XMLTester.o: In function `~WKBReader':c:\ming64\projects\geos\branches\trunk\tests\xmltester/../../include/geos/io/WKBReader.h:79: undefined reference to `geos::io::ByteOrderDataInStream::~ByteOrderDataInStream()'
XMLTester-BufferResultMatcher.o: In function `PointPairDistance':c:\ming64\projects\geos\branches\trunk\tests\xmltester/../../include/geos/algorithm/distance/PointPairDistance.h:45: undefined reference to `geos::geom::Coordinate::Coordinate(double, double, double)'
XMLTester-BufferResultMatcher.o: In function `TopologyException':c:\ming64\projects\geos\branches\trunk\tests\xmltester/../../include/geos/util/TopologyException.h:39: undefined reference to `geos::geom::Coordinate::Coordinate(double, double, double)'
XMLTester-SingleSidedBufferResultMatcher.o: In function `PointPairDistance':c:\ming64\projects\geos\branches\trunk\tests\xmltester/../../include/geos/algorithm/distance/PointPairDistance.h:45: undefined reference to `geos::geom::Coordinate::Coordinate(double, double, double)'
collect2: ld returned 1 exit status
make[3]: *** [XMLTester.exe] Error 1
make[3]: Leaving directory `/c/ming64/projects/geos/branches/trunk/tests/xmltester'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/c/ming64/projects/geos/branches/trunk/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/c/ming64/projects/geos/branches/trunk'
make: *** [check] Error 2

Change History (1)

comment:1 Changed 6 years ago by robe

Resolution: duplicate
Status: newclosed

refer to #319

reverting the #319 changes fixes the xmltester compile.

Note: See TracTickets for help on using tickets.