Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#4492 closed defect (wontfix)

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 (3)

comment:1 by Even Rouault, 12 years ago

Resolution: wontfix
Status: newclosed

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

comment:2 by Even Rouault, 12 years ago

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

comment:3 by Even Rouault, 12 years ago

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.