develooper Front page | perl.perl5.porters | Postings from September 2018

[perl #133500] h2xs failing during 'make'; lacking xlocale.h

Thread Previous
James E Keenan
September 5, 2018 01:10
[perl #133500] h2xs failing during 'make'; lacking xlocale.h
Message ID:
# New Ticket Created by  James E Keenan 
# Please include the string:  [perl #133500]
# in the subject line of all future correspondence about this issue. 
# <URL: >

In an admittedly naive attempt to create a module using XS, I say (based on
the h2xs) documentation:

$ h2xs -n Alpha::Beta
Defaulting to backwards compatibility with perl 5.28.0
If you intend this module to be compatible with earlier perl versions, 
specify a minimum perl version with the -b option.

Writing Alpha-Beta/ppport.h
Writing Alpha-Beta/lib/Alpha/
Writing Alpha-Beta/Beta.xs
Writing Alpha-Beta/fallback/
Writing Alpha-Beta/fallback/
Writing Alpha-Beta/Makefile.PL
Writing Alpha-Beta/README
Writing Alpha-Beta/t/Alpha-Beta.t
Writing Alpha-Beta/Changes
Writing Alpha-Beta/MANIFEST

$ cd Alpha-Beta/

$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Alpha::Beta
Writing MYMETA.yml and MYMETA.json

I then say:

$ make
cp lib/Alpha/ blib/lib/Alpha/
AutoSplitting blib/lib/Alpha/ (blib/lib/auto/Alpha/Beta)
Running Mkbootstrap for Beta ()
chmod 644 ""
-MExtUtils::Command::MM -e 'cp_nonempty' -- 
blib/arch/auto/Alpha/Beta/ 644
  Beta.xs > Beta.xsc
Please specify prototyping behavior for Beta.xs (see perlxs manual)
mv Beta.xsc Beta.c
cc -c  -I. -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 
-DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC 
In file included from Beta.xs:3:0:
fatal error: xlocale.h: No such file or directory
  #   include <xlocale.h>
compilation terminated.
Makefile:334: recipe for target 'Beta.o' failed
make: *** [Beta.o] Error 1

Is this a bug which has emerged in h2xs?  Inadequate documentation? 
What am I

Thank you very much.
Jim Keenan

(perl -V info not relevant; this was run on perl-5.28.0)

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About