Linux compile problems - (help)

Klacke klacke@REDACTED
Tue Sep 7 10:23:31 CEST 1999



Randy A. Katz writes:
 > Hello,
 > 
 > I was able to successfully compile Erlang under FreeBSD using the port. But
 > under RedHat Linux 6.0, kernel 2.2.5-15, I get the following messages after
 > a ./configure, make:
 > 
 > ..........


Yes really boring bug, the error is in 
erts/system/emulator/runtime/erl_posix_str.c

and the following diff should fix the problem.


runtime> diff -c erl_posix_str.c erl_posix_str.c.orig 
*** erl_posix_str.c     Tue Sep  7 10:16:39 1999
--- erl_posix_str.c.orig        Tue Sep  7 10:16:24 1999
***************
*** 362,368 ****
  #ifdef ENXIO
      case ENXIO: return "enxio";
  #endif
! #if defined(EOPNOTSUPP) && (!defined(ENOTSUP) || (ENOTSUP != EOPNOTSUPP))
      case EOPNOTSUPP: return "eopnotsupp";
  #endif
  #ifdef EPERM
--- 362,368 ----
  #ifdef ENXIO
      case ENXIO: return "enxio";
  #endif
! #ifdef EOPNOTSUPP
      case EOPNOTSUPP: return "eopnotsupp";
  #endif
  #ifdef EPERM


Maybe someone in erlang-maintainers could add this to www.erlang.org


/klacke




More information about the erlang-questions mailing list