﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
1364	POSIX detection not quite right under Mac OS X in gprint	Michael Wood-Vasey	heather	"POSIX detection not quite right under Mac OS X or casting error.  Not sure which:  The following section of code triggers a casting error

---
#if ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE)
  strerror_r (myError, errorBuf, MAX_ERROR_LENGTH);
  errorMsg = errorBuf;
#else
  errorMsg = strerror_r (myError, errorBuf, MAX_ERROR_LENGTH);
#endif

---
 
The second errorMsg = statement is line 357, which is what is cited by the compiler

---
gcc-4.2 -O2  -D_DARWIN_C_SOURCE -fPIC -Wall -Werror -DHAVE_MYSQL_H  -I/Volumes/data/PS1/src/ipp-2.9/Ohana/src/opihi/include -I/Volumes/data/PS1/code/ipp-2.9/mwv.darwin_x86/include -I/usr/include -I/Volumes/data/PS1/code/ipp-2.9/mwv.darwin_x86/include -I/Volumes/data/PS1/code/ipp-2.9/mwv.darwin_x86/include/mysql  -Ddarwin_x86 -c /Volumes/data/PS1/src/ipp-2.9/Ohana/src/opihi/lib.shell/gprint.c -o /Volumes/data/PS1/src/ipp-2.9/Ohana/src/opihi/lib.shell/gprint.darwin_x86.o
cc1: warnings being treated as errors
/Volumes/data/PS1/src/ipp-2.9/Ohana/src/opihi/lib.shell/gprint.c: In function ‘gprint_syserror’:
/Volumes/data/PS1/src/ipp-2.9/Ohana/src/opihi/lib.shell/gprint.c:357: warning: assignment makes pointer from integer without a cast
make[4]: *** [/Volumes/data/PS1/src/ipp-2.9/Ohana/src/opihi/lib.shell/gprint.darwin_x86.o] Error 1
make[3]: *** [lib.shell] Error 2
make[2]: *** [all] Error 2
make[1]: *** [opihi] Error 2
make: *** [all] Error 1
problem building Ohana : failure in make

---"	defect	closed	normal		Ohana	current	normal	fixed		
