Bug #697

config/ConfigureChecks.cmake: STRERROR_R_CHAR_P revisited

Added by Nikolai Saoukh almost 9 years ago. Updated over 3 years ago.

Status:ClosedStart date:20 Apr 2010
Priority:NormalDue date:
Assignee:Robin Mills% Done:


Target version:0.25


Current test for return type of strerror_r is weak. See the script below

Script started on Tue Apr 20 15:51:20 2010
$ cat foo.c
#include <string.h>
int main() {
char * c;
c = strerror_r(0,c,0);
return 0;
$ gcc -c foo.c
foo.c: In function 'main':
foo.c:4: warning: assignment makes pointer from integer without a cast
$ gcc --version
gcc (GCC) 4.2.1 20070719 [FreeBSD]

Script done on Tue Apr 20 15:51:31 2010

Related issues

Related to Exiv2 - Feature #536: Switch to a unified build system based on cmake Closed
Related to Exiv2 - Patch #688: src/futils.cpp: incorrect check for linux version of stre... Closed 04 Mar 2010

Associated revisions

Revision 3372
Added by Robin Mills over 4 years ago

#697. config/ConfigureChecks.cmake: STRERROR_R_CHAR_P revisited


#1 Updated by Andreas Huggel almost 7 years ago

  • Assignee set to Robin Mills

#2 Updated by Robin Mills over 6 years ago

  • Status changed from New to Assigned

#3 Updated by Robin Mills over 5 years ago

  • Category set to build
  • Target version set to 0.25

Deferred for 0.25.

#4 Updated by Robin Mills over 4 years ago

  • Status changed from Assigned to Resolved

Fix submitted: r3372

I'm not confident about the fix here, however the issue has been open for 4 years without causing distress. strerror_r is tricky and only used in futils.cpp

#5 Updated by Robin Mills almost 4 years ago

  • % Done changed from 0 to 100

#6 Updated by Andreas Huggel over 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux