ruby-core

Mailing list archive

[ruby-core:71111] [Ruby trunk - Bug #11601] [Open] error: implicit declaration of function ‘ENC_GET’

From: duerst@...
Date: 2015-10-19 08:50:30 UTC
List: ruby-core #71111
Issue #11601 has been reported by Martin D=C3=BCrst.

----------------------------------------
Bug #11601: error: implicit declaration of function =E2=80=98ENC_GET=E2=80=
=99
https://bugs.ruby-lang.org/issues/11601

* Author: Martin D=C3=BCrst
* Status: Open
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* ruby -v: ruby 2.3.0dev (2015-10-17 trunk 52142) [x86_64-cygwin]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
When trying to compile Ruby trunk with
    make up; make install-nodoc
I get the following errors:

compiling file.c
file.c: In function =E2=80=98rb_file_expand_path_internal=E2=80=99:
file.c:3561:2: error: implicit declaration of function =E2=80=98ENC_GET=E2=
=80=99 [-Werror=3Dimplicit-function-declaration]
  encidx =3D ENC_GET(result);
  ^
file.c:3563:16: error: =E2=80=98ENCIDX_UTF_8=E2=80=99 undeclared (first use=
 in this function)
  if (encidx !=3D ENCIDX_UTF_8 && rb_enc_str_coderange(result) !=3D ENC_COD=
ERANGE_7BIT) {
                ^
file.c:3563:16: note: each undeclared identifier is reported only once for =
each function it appears in
cc1: some warnings being treated as errors
Makefile:375: recipe for target 'file.o' failed
make: *** [file.o] Error 1




--=20
https://bugs.ruby-lang.org/

In This Thread

Prev Next