Opened 19 years ago
Last modified 10 years ago
#748 closed defect
GDAL 1.2.5 fails to compile on SGI IRIX 6.5.25 using MIPSpro Compilers 7.4.3 — at Initial Version
Reported by: | Owned by: | warmerdam | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: | pakulas@… |
Description
The function "atoll" with is supposedly declared inside stdlib.h is not found by the CC compiler (c++) inside the file called /gdal-1.2.5/port/cpl_conv.cpp. However the configure script finds the atoll support and hence an error results from the compilation. A simple workaround is to modify the following inside /gdal- 1.2.5/port/cpl_config.h: #define HAVE_ATOLL 1 #undef HAVE_ATOLL Once this is added the issue is resolved, and the library is correctly built. However it uses the 32bit atol function, which is not desirable. I created a stand alone program utilizing "atoll" on the same platform and compiles with CC only if you use "using namespace std" instead of #include <stlib.h>. I hope this information would be useful in solving this problem.
Note:
See TracTickets
for help on using tickets.