Ticket #2050 (closed defect: fixed)
expat configure problem on MinGW
| Reported by: | warmerdam | Owned by: | mloskot |
|---|---|---|---|
| Priority: | highest | Milestone: | 1.5.2 |
| Component: | ConfigBuild | Version: | unspecified |
| Severity: | normal | Keywords: | expat mingw |
| Cc: | warmerdam, tbowden, jerome.martin@… |
Description
Tim reports (via email) that for gdal 1.5.0beta1:
./configure fails for me (on Ubuntu 7.10), but works fine with 1.4.4 and earlier.
...
checking for MySQL... no
checking for Xerces C++ Parser... no
checking for Expat C++... requested, but compile or link fails!
g++ -I/usr/include -o conftest conftest.cpp -L/usr/lib -lexpat -lpq
-L/usr/local/pgsql/lib -lpq -lz -lm -lrt -ldl
conftest.cpp:1:19: error: expat.h: No such file or directory
conftest.cpp: In function 'int main()':
conftest.cpp:2: error: 'XML_Parser' was not declared in this scope
conftest.cpp:2: error: expected `;' before 'p'
conftest.cpp:2: error: 'p' was not declared in this scope
conftest.cpp:2: error: 'XML_ParserFree' was not declared in this scope
cat conftest.cpp
#include <expat.h>
int main() { XML_Parser p = XML_ParserCreate(NULL);
XML_ParserFree(p); }
configure: error: Please correct Expat options, or don't enable Expat.
I can send full config.log if you want it.
Regards, Tim Bowden
Change History
Note: See
TracTickets for help on using
tickets.
