Skip Menu |

This queue is for tickets about the Lingua-StarDict CPAN distribution.

Report information
The Basics
Id: 116143
Status: open
Priority: 0/
Queue: Lingua-StarDict

People
Owner: Nobody in particular
Requestors: PERLANCAR [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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.
note for people who might be reading this ticket: as an alternative there's also a 'sdcv' (stardict console version) package on Debian if you need to access stardict dictionaries from the command-line.
On 2016-07-14 04:24:41, PERLANCAR wrote: Show quoted text
> note for people who might be reading this ticket: as an alternative > there's also a 'sdcv' (stardict console version) package on Debian if > you need to access stardict dictionaries from the command-line.
This distribution was released in 2004, and includes a similarly-vintaged ppport.h. I would not assume it to properly build on any perls released after that point without some retooling. On OSX, I see: Running Mkbootstrap for StarDict () chmod 644 "StarDict.bs" "/Volumes/amaretto/Users/ether/perl5/perlbrew/perls/25.0/bin/perl5.25.0" -MExtUtils::Command::MM -e 'cp_nonempty' -- StarDict.bs blib/arch/auto/Lingua/StarDict/StarDict.bs 644 "/Volumes/amaretto/Users/ether/perl5/perlbrew/perls/25.0/bin/perl5.25.0" "/Volumes/amaretto/Users/ether/perl5/perlbrew/perls/25.0/lib/5.25.0/ExtUtils/xsubpp" -C++ -typemap '/Volumes/amaretto/Users/ether/perl5/perlbrew/perls/25.0/lib/5.25.0/ExtUtils/typemap' -typemap '/Volumes/amaretto/Users/ether/.cpanm/work/1468512768.5683/Lingua-StarDict/typemap' -typemap '/Volumes/amaretto/Users/ether/.cpanm/work/1468512768.5683/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 -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector-strong -I/opt/local/include -O3 -DVERSION=\"1.00\" -DXS_VERSION=\"1.00\" "-I/Volumes/amaretto/Users/ether/perl5/perlbrew/perls/25.0/lib/5.25.0/darwin-2level/CORE" StarDict.c clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated In file included from StarDict.xs:7: In file included from ./sd/./libstardict.h:4: ./sd/./libcore.hpp:4:10: fatal error: 'glib.h' file not found #include <glib.h> ^ 1 error generated. make: *** [StarDict.o] Error 1