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
---
| _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 , 16 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:2 by , 14 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
looks like bill checked in the changes to fix this some time ago...

this was addressed with an additional test to APPLE.
I'm assigning this to heather to check the build under Mac OS X