Ticket #4492 (closed defect: wontfix)

Opened 4 months ago

Last modified 3 months ago

compile failure using icpc

Reported by: dkokron Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: 1.9.0
Severity: normal Keywords:
Cc:

Description

I get the following error messages while building GDAL-1.9.0 on Linux 2.6.27.54 kernel using Intel icpc-11.0.083. Please let me know what other information I should include to help figure this out.

ogrsqlitevfs.cpp(309): error: return value type does not match the function type

return pUnderlyingVFS->xDlSym(pUnderlyingVFS, pHandle, zSymbol);

ogrsqlitevfs.cpp(362): error: a value of type "void (*(*)(sqlite3_vfs *, void *, const char *))()" cannot be assigned to an entity of type "void *(*)(sqlite3_vfs *, void *, const char *)"

pMyVFS->xDlSym = OGRSQLiteVFSDlSym;

Change History

Changed 4 months ago by rouault

  • status changed from new to closed
  • resolution set to wontfix

This compiles fine with icpc-12.1.0 (and other compilers such as gcc, msvc, solaris sunstudio), so I guess it might be a compiler bug ... Perhaps consider upgrading ?

Alternatively, I've tried removing the code that doesn't compile and it doesn't seem to affect the autotest suite, but it isn't really appropriate to do that in the general case. So you could try that as a workaround : remove the definition of the OGRSQLiteVFSDlSym function and the pMyVFS->xDlSym = OGRSQLiteVFSDlSym line

Changed 3 months ago by rouault

Hum, actually it seems that the error is not limited to icpc. See #4515 for a similar error

Changed 3 months ago by rouault

dkokron, it would be great if you can test the fix committed in #4515 and report if it also fixes your issue.

Note: See TracTickets for help on using tickets.