IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 16 years ago

Closed 14 years ago

#1364 closed defect (fixed)

POSIX detection not quite right under Mac OS X in gprint

Reported by: Michael Wood-Vasey Owned by: heather
Priority: normal Milestone:
Component: Ohana Version: current
Severity: normal Keywords:
Cc:

Description

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

---

Change History (2)

comment:1 by eugene, 16 years ago

Owner: changed from eugene to heather
Status: newassigned

this was addressed with an additional test to APPLE.

I'm assigning this to heather to check the build under Mac OS X

comment:2 by heather, 14 years ago

Resolution: fixed
Status: assignedclosed

looks like bill checked in the changes to fix this some time ago...

Note: See TracTickets for help on using tickets.