GithubHelp home page GithubHelp logo

net--libidn2's Introduction

Net/LibIDN2 version 1.02
========================

This module provides Perl bindings for GNU Libidn2 by Simon Josefsson
(http://www.gnu.org/software/libidn/) and closely follows
the original C API of that library.

Devel-CheckLib-1.11 in directory inc, by Yasuhiro Matsumoto, is
included as is to facilitate cpantesters.org build testing.

INSTALLATION

perl Build.PL
./Build
./Build test
./Build install

If your local version of GNU Libidn2 is installed in a non-standard
location, try the following instead of "perl Build.PL":

perl Build.PL --extra_compiler_flags=-I/path/include --extra_linker_flags="-L/path/lib -lidn2"

Should your runtime library search path not contain libidn2, you probably will
have to set LD_LIBRARY_PATH or compile the absolute library path into
the module like follows:

LD_LIBRARY_PATH=/path/lib perl Build.PL --extra_compiler_flags=-I/path/include --extra_linker_flags="-L/path/lib -lidn2"

or

LD_LIBRARY_PATH=/path/lib perl Build.PL --extra_compiler_flags=-I/path/include --extra_linker_flags="-L/path/lib -lidn2 -Wl,-rpath=/path/lib"

Setting LD_LIBRARY_PATH *and* rpath might be necessary to make Devel::CheckLib detect the
presence of libidn2 correctly.

DEPENDENCIES

This module requires these other modules and libraries:

  GNU Libidn2 >=2.0.0

net--libidn2's People

Contributors

gnuthor avatar uhle avatar

Stargazers

Thibault Duponchelle avatar  avatar

Watchers

 avatar James Cloos avatar

Forkers

matsduf

net--libidn2's Issues

not compatible with the latest libidn2 v2.1.1

[root@b7476abcf83e /]# cpanm -v Net::LibIDN2
cpanm (App::cpanminus) 1.7044 on perl 5.028002 built for x86_64-linux-ld
Work directory is /root/.cpanm/work/1558073539.106680
You have make /usr/bin/make
You have /usr/bin/wget
You have /usr/bin/tar: tar (GNU tar) 1.30
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://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 Net::LibIDN2 () on cpanmetadb ...
--2019-05-17 06:12:19--  http://cpanmetadb.plackperl.org/v1.0/package/Net::LibIDN2
Resolving cpanmetadb.plackperl.org (cpanmetadb.plackperl.org)... 151.101.2.217, 151.101.66.217, 151.101.130.217, ...
Connecting to cpanmetadb.plackperl.org (cpanmetadb.plackperl.org)|151.101.2.217|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 93 [text/yaml]
Saving to: ‘STDOUT’

-                                    100%[===================================================================>]      93  --.-KB/s    in 0s

2019-05-17 06:12:19 (15.7 MB/s) - written to stdout [93/93]

--> Working on Net::LibIDN2
Fetching http://www.cpan.org/authors/id/T/TH/THOR/Net-LibIDN2-1.00.tar.gz ... --2019-05-17 06:12:19--  http://www.cpan.org/authors/id/T/TH/THOR/Net-LibIDN2-1.00.tar.gz
Resolving www.cpan.org (www.cpan.org)... 151.101.2.217, 151.101.66.217, 151.101.130.217, ...
Connecting to www.cpan.org (www.cpan.org)|151.101.2.217|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 23603 (23K) [application/x-gzip]
Saving to: ‘Net-LibIDN2-1.00.tar.gz’

Net-LibIDN2-1.00.tar.gz              100%[===================================================================>]  23.05K  --.-KB/s    in 0.03s

2019-05-17 06:12:19 (687 KB/s) - ‘Net-LibIDN2-1.00.tar.gz’ saved [23603/23603]

OK
Unpacking Net-LibIDN2-1.00.tar.gz
Net-LibIDN2-1.00
Net-LibIDN2-1.00/META.yml
Net-LibIDN2-1.00/MANIFEST.SKIP
Net-LibIDN2-1.00/Build.PL
Net-LibIDN2-1.00/META.json
Net-LibIDN2-1.00/LICENSE
Net-LibIDN2-1.00/README
Net-LibIDN2-1.00/MANIFEST
Net-LibIDN2-1.00/Changes
Net-LibIDN2-1.00/inc
Net-LibIDN2-1.00/inc/Devel
Net-LibIDN2-1.00/inc/Devel/CheckLib.pm
Net-LibIDN2-1.00/t
Net-LibIDN2-1.00/t/001_basic.t
Net-LibIDN2-1.00/lib
Net-LibIDN2-1.00/lib/Net
Net-LibIDN2-1.00/lib/Net/LibIDN2.xs
Net-LibIDN2-1.00/lib/Net/LibIDN2.pm
Entering Net-LibIDN2-1.00
Checking configure dependencies from META.json
Checking if you have Module::Build 0.40 ... Yes (0.4229)
Checking if you have ExtUtils::Install 1.46 ... Yes (2.14)
Running Build.PL
Configuring Net-LibIDN2-1.00 ... # Compiler seems to be /usr/bin/cc
# /usr/bin/cc -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fstack-protector-strong -L/usr/local/lib assertlibW171jrVT.c -o assertlibPRP7JUjg
# /usr/bin/cc -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fstack-protector-strong -L/usr/local/lib assertlibNPsF4gV3.c -o assertlibahFb4QOE -lidn2
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Net-LibIDN2' version '1.00'
OK
Checking dependencies from MYMETA.json ...
Checking if you have Test::More 0.10 ... Yes (1.302164)
Checking if you have ExtUtils::CBuilder 0 ... Yes (0.280231)
Checking if you have ExtUtils::ParseXS 0 ... Yes (3.39)
Building and testing Net-LibIDN2-1.00 ... Building Net-LibIDN2
cc -I/usr/local/perlbrew/perls/perl-5.28.2/lib/5.28.2/x86_64-linux-ld/CORE -DVERSION="1.00" -DXS_VERSION="1.00" -fPIC -c -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o lib/Net/LibIDN2.o lib/Net/LibIDN2.c
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/Net/LibIDN2/LibIDN2.bs')
cc -shared -O2 -L/usr/local/lib -fstack-protector-strong -o blib/arch/auto/Net/LibIDN2/LibIDN2.so lib/Net/LibIDN2.o -lidn2
t/001_basic.t .. 1/?
#   Failed test at t/001_basic.t line 82.
#          got: 'IDN2_OK'
#     expected: 'IDN2_NOT_NFC'

#   Failed test at t/001_basic.t line 83.
#          got: '0'
#     expected: '-300'

#   Failed test at t/001_basic.t line 84.
#          got: 'example.xn--p39a'
#     expected: undef
# Looks like you failed 3 tests of 57.
t/001_basic.t .. Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/57 subtests
        (2 TODO tests unexpectedly succeeded)

Test Summary Report
-------------------
t/001_basic.t (Wstat: 768 Tests: 57 Failed: 3)
  Failed tests:  23-25
  TODO passed:   31, 33
  Non-zero exit status: 3
Files=1, Tests=57,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.05 cusr  0.02 csys =  0.10 CPU)
Result: FAIL
Failed 1/1 test programs. 3/57 subtests failed.
FAIL
! Installing Net::LibIDN2 failed. See /root/.cpanm/work/1558073539.106680/build.log for details. Retry with --force to force install it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.