Skip to content

config.h: invalid preprocessing directive # HAS_LC_MONETARY_2008 /**/ #21803

Open
@dilyanpalauzov

Description

@dilyanpalauzov

I downloaded perl-5.38.2, unpacked it, ran ./Configure && make. The latter failed with

echo @`sh  cflags "optimize='-O2'" opmini.o`  -DPERL_IS_MINIPERL -DPERL_EXTERNAL_GLOB opmini.c
@cc -c -DPERL_CORE -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -Wall -Wno-use-after-free -DPERL_IS_MINIPERL -DPERL_EXTERNAL_GLOB opmini.c
In file included from perl.h:44,
                 from op.c:163:
config.h:2892:3: error: invalid preprocessing directive #HAS_LC_MONETARY_2008
 2892 | # HAS_LC_MONETARY_2008          /**/
      |   ^~~~~~~~~~~~~~~~~~~~
make: *** [makefile:313: opmini.o] Error 1

Indeed, config.h contains # HAS_LC_MONETARY_2008 /**/ and this is invalid preprocessor input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-buildRelates to building perl or a distribution we bundle.type-locale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions