[geos-devel] [GEOS] #568: mingw64 chain compiling win32 regress failure
GEOS
geos-trac at osgeo.org
Sat Nov 24 10:08:20 PST 2012
#568: mingw64 chain compiling win32 regress failure
------------------------+---------------------------------------------------
Reporter: robe | Owner: geos-devel@…
Type: defect | Status: new
Priority: major | Milestone: 3.4.0
Component: Default | Version: svn-trunk
Severity: Unassigned | Keywords:
------------------------+---------------------------------------------------
Comment(by esseffe):
Hi Robe,
I've been able to succesfully compile GEOS-trunk [geos-20121123 nightly
snapshot] on MinGW-64 v.4.7.0
Anyway I've noticed a very puzzling issue caused by ./configure (please
note: it works nicely on MinGW 32, this issue is strictly limited to MinGW
64, and the same identical issue affects the GEOS 3.3.6 ./configure
script)
{{{
checking whether long long int is 64 bits... no
configure: WARNING: Could not find a working 64bit int type, you may
experience
weird bugs (undefined behaviour)
}}}
the cause explaining for this oddity is in this line of the ./configure
script:
{{{
exit(! does_int64_work());
}}}
simply changing the above line as follows seems to be an effective
solution:
{{{
if (does_int64_work())
exit(0);
exit(-1);
}}}
I strongly suspect that Win64 has its own opinions about exit(), true and
false :-D
bye Sandro
(SpatiaLite maintainer)
--
Ticket URL: <http://trac.osgeo.org/geos/ticket/568#comment:1>
GEOS <http://geos.refractions.net/>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).
More information about the geos-devel
mailing list