Backport #5495

SIZE_MAX undefined while building 1.9.2 on HP-UX 11.00/PA, 11.11/PA, 11.23/PA

Added by The Written Word Inc over 2 years ago. Updated over 2 years ago.

[ruby-core:40477]
Status:Assigned
Priority:Normal
Assignee:Yuki Sonoda

Description

Building 1.9.2 with latest svn revision at 33531 produces a build error on HP-UX 11.00/PA, 11.11/PA, 11.23/PA because SIZEMAX is undefined:
cc -g -I. -I.ext/include/hppa2.0w-hpux11.23 -I./include -I. -DRUBY
EXPORT -I/opt/fsw/ncurses57/include -I/opt/fsw/ncurses57/include/ncurses -o time.o -c time.c
cpp: "/usr/include/math.h", line 182: warning 2001: Redefinition of macro INFINITY.
cpp: "/usr/include/math.h", line 183: warning 2001: Redefinition of macro NAN.
cc -g -I. -I.ext/include/hppa2.0w-hpux11.23 -I./include -I. -DRUBYEXPORT -I/opt/fsw/ncurses57/include -I/opt/fsw/ncurses57/include/ncurses -o transcode.o -c transcode.c
cc: "transcode.c", line 1547: error 1588: "SIZE
MAX" undefined.
cc: "transcode.c", line 1547: error 1563: Expression in if must be scalar.
gmake: *** [transcode.o] Error 1

patch Magnifier - #define SIZE_MAX on platforms where it is not available (886 Bytes) The Written Word Inc, 10/28/2011 01:39 PM


Related issues

Related to Backport92 - Backport #5489: Build failure on HP-UX 11.00/PA, 11.11/PA, 11.23/PA Closed 10/27/2011

History

#1 Updated by The Written Word Inc over 2 years ago

#2 Updated by Yui NARUSE over 2 years ago

  • Tracker changed from Bug to Backport
  • Project changed from ruby-trunk to Backport92
  • Category changed from build to build
  • Target version deleted (1.9.2)

#3 Updated by Yui NARUSE over 2 years ago

  • Status changed from Open to Assigned
  • Assignee set to Yuki Sonoda

Backport r33532

Also available in: Atom PDF