Opened 7 years ago

Closed 7 years ago

Last modified 7 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 Changed 7 years ago by Even Rouault

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 Changed 7 years ago by Even Rouault

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

comment:3 Changed 7 years ago by Even 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.