Subject: | doesn't build |
tried on Debian jessie.
% lcpanm -nv Lingua::StarDict
cpanm (App::cpanminus) 1.7036 on perl 5.022001 built for x86_64-linux
Work directory is /home/s1/.cpanm/work/1468494977.23725
You have make /usr/bin/make
You have LWP 6.15
You have /bin/tar: tar (GNU tar) 1.27.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Searching Lingua::StarDict on mirror file:///home/s1/cpan ...
Downloading index file file:///home/s1/cpan/modules/02packages.details.txt.gz ...
Uncompressing index file...
--> Working on Lingua::StarDict
Fetching file:///home/s1/cpan/authors/id/L/LE/LESV/Lingua-StarDict-1.00.tar.gz ... OK
Unpacking Lingua-StarDict-1.00.tar.gz
Lingua-StarDict/
Lingua-StarDict/ppport.h
Lingua-StarDict/StarDict.xs
Lingua-StarDict/lib/
Lingua-StarDict/lib/Lingua/
Lingua-StarDict/lib/Lingua/StarDict.pm
Lingua-StarDict/Makefile.PL
Lingua-StarDict/README
Lingua-StarDict/t/
Lingua-StarDict/t/Lingua-StarDict.t
Lingua-StarDict/t/03_methods.t
Lingua-StarDict/t/05_translate.t
Lingua-StarDict/t/01_create.t
Lingua-StarDict/t/02_define_dictionary.t
Lingua-StarDict/t/04_dictionaries.t
Lingua-StarDict/Changes
Lingua-StarDict/MANIFEST
Lingua-StarDict/typemap
Lingua-StarDict/sd/
Lingua-StarDict/sd/dictziplib.h
Lingua-StarDict/sd/libcore.hpp
Lingua-StarDict/sd/types.hpp
Lingua-StarDict/sd/lib.h
Lingua-StarDict/sd/libstardict.h
Entering Lingua-StarDict
META.yml/json not found. Creating skeleton for it.
Running Makefile.PL
Configuring Lingua-StarDict-1.00 ... Checking if your kit is complete...
Looks good
Warning (mostly harmless): No library found for -lstardict
Generating a Unix-style Makefile
Writing Makefile for Lingua::StarDict
Writing MYMETA.yml and MYMETA.json
OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.16)
Building Lingua-StarDict-1.00 ... cp lib/Lingua/StarDict.pm blib/lib/Lingua/StarDict.pm
Running Mkbootstrap for StarDict ()
chmod 644 "StarDict.bs"
"/zpool_host_mnt/mnt/home/s1/perl5/perlbrew/perls/perl-5.22.1/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- StarDict.bs blib/arch/auto/Lingua/StarDict/StarDict.bs 644
"/zpool_host_mnt/mnt/home/s1/perl5/perlbrew/perls/perl-5.22.1/bin/perl" "/home/s1/perl5/perlbrew/perls/perl-5.22.1/lib/site_perl/5.22.1/ExtUtils/xsubpp" -C++ -typemap '/home/s1/perl5/perlbrew/perls/perl-5.22.1/lib/5.22.1/ExtUtils/typemap' -typemap '/zpool_host_mnt/mnt/home/s1/.cpanm/work/1468494977.23725/Lingua-StarDict/typemap' -typemap '/zpool_host_mnt/mnt/home/s1/.cpanm/work/1468494977.23725/Lingua-StarDict/typemap' StarDict.xs > StarDict.xsc
Please specify prototyping behavior for StarDict.xs (see perlxs manual)
mv StarDict.xsc StarDict.c
g++ -c -I. -I./sd/. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -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 -DVERSION=\"1.00\" -DXS_VERSION=\"1.00\" -fPIC "-I/home/s1/perl5/perlbrew/perls/perl-5.22.1/lib/5.22.1/x86_64-linux/CORE" StarDict.c
In file included from StarDict.xs:5:0:
ppport.h:231:0: warning: "PERL_UNUSED_DECL" redefined
# define PERL_UNUSED_DECL
^
In file included from StarDict.xs:2:0:
/home/s1/perl5/perlbrew/perls/perl-5.22.1/lib/5.22.1/x86_64-linux/CORE/perl.h:313:0: note: this is the location of the previous definition
# define PERL_UNUSED_DECL __attribute__unused__
^
In file included from /usr/include/glib-2.0/glib/galloca.h:32:0,
from /usr/include/glib-2.0/glib.h:30,
from ./sd/./libcore.hpp:4,
from ./sd/./libstardict.h:4,
from StarDict.xs:7:
/usr/include/glib-2.0/glib/gtypes.h:32:24: fatal error: glibconfig.h: No such file or directory
#include <glibconfig.h>
^
compilation terminated.
Makefile:342: recipe for target 'StarDict.o' failed
make: *** [StarDict.o] Error 1
FAIL
! Installing Lingua::StarDict failed. See /home/s1/.cpanm/work/1468494977.23725/build.log for details. Retry with --force to force install it.