Backport #7347

1.9.3p327 Build fails on Solaris 10 SPARC due to missing endian.h

Added by Jacob Peck over 1 year ago. Updated over 1 year ago.

[ruby-core:49304]
Status:Closed
Priority:Normal
Assignee:Usaku NAKAMURA

Description

CC = gcc
LD = ld
LDSHARED = gcc -shared
CFLAGS = -O3 -ggdb -Wall -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Werror-implicit-function-declaration
XCFLAGS = -include ruby/config.h -include ruby/missing.h -DRUBYEXPORT
CPPFLAGS = -I. -I.ext/include/sparc-solaris2.10 -I./include -I.
DLDFLAGS =
SOLIBS =
compiling main.c
compiling dmydln.c
compiling dmyencoding.c
compiling version.c
compiling dmyversion.c
compiling miniprelude.c
compiling array.c
compiling bignum.c
compiling class.c
compiling compar.c
compiling complex.c
compiling dir.c
compiling dln
find.c
compiling enum.c
compiling enumerator.c
compiling error.c
compiling eval.c
compiling load.c
compiling proc.c
compiling file.c
compiling gc.c
compiling hash.c
compiling inits.c
compiling io.c
compiling marshal.c
compiling math.c
compiling node.c
compiling numeric.c
compiling object.c
compiling pack.c
compiling parse.c
compiling process.c
compiling random.c
In file included from random.c:1264:
siphash.c:11:22: endian.h: No such file or directory
make: *** [random.o] Error 1

It should be noted that p194 builds just fine.


Related issues

Related to ruby-trunk - Bug #7531: Issues in installing ruby 1.9.3 on AIX 7.1 Closed 12/07/2012
Duplicated by Backport93 - Backport #7470: ruby 1.9.3-p327 compile failure in siphash.c on Solaris b... Closed 11/29/2012
Duplicated by ruby-trunk - Bug #7569: siphash.c / endian.h Closed 12/16/2012

Associated revisions

Revision 37653
Added by Usaku NAKAMURA over 1 year ago

merge revision(s) 37593: [Backport #7347]

* random.c (BYTE_ORDER): define using configured WORDS_BIGENDIAN.

History

#1 Updated by Usaku NAKAMURA over 1 year ago

Can anyone check this with trunk?

#2 Updated by Usaku NAKAMURA over 1 year ago

  • Tracker changed from Bug to Backport
  • Project changed from ruby-trunk to Backport93
  • Status changed from Open to Assigned
  • Assignee set to Usaku NAKAMURA

ngoto-san checked this and tell me the solution.
I'll fix this soon.

#3 Updated by Usaku NAKAMURA over 1 year ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r37653.
Jacob, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merge revision(s) 37593: [Backport #7347]

* random.c (BYTE_ORDER): define using configured WORDS_BIGENDIAN.

Also available in: Atom PDF