PerlAlien / Alien-Libxml2

Install the C libxml2 library on your system
4 stars 3 forks source link

Unable to build Alien-Libxml2 on AIX 7.1 #8

Closed hpslmcg closed 5 years ago

hpslmcg commented 5 years ago
100 $ XMLPREFIX=/proj/edi/opt/libxml2/2.9.9 perl Makefile.PL PREFIX=/proj/edi/opt/perl/perl5.24.4_64 LIB=/proj/edi/opt/perl/perl5.24.4_64/lib/site_perl/5.24.4
Alien::Build::Plugin::PkgConfig::Negotiate> Using PkgConfig plugin: PkgConfig::PP
Alien::Build::CommandSequence> + xml2-config --version
Alien::Build::CommandSequence> [output consumed by Alien::Build recipe]
Alien::Build::CommandSequence> + xml2-config --cflags
Alien::Build::CommandSequence> [output consumed by Alien::Build recipe]
Alien::Build::CommandSequence> + xml2-config --libs
Alien::Build::CommandSequence> [output consumed by Alien::Build recipe]
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Alien::Libxml2
Writing MYMETA.yml and MYMETA.json

101 $ make
cp lib/Alien/Libxml2.pm blib/lib/Alien/Libxml2.pm
        "/proj/edi/opt/perl/perl5.24.4_64/bin/perl" -MAlien::Build::MM=cmd -e prefix site /proj/edi/opt/perl/perl5.24.4_64/lib/site_perl/5.24.4/aix-thread-multi-64all /proj/edi/opt/perl/perl5.24.4_64/lib/site_perl/5.24.4/aix-thread-multi-64all /proj/edi/opt/perl/perl5.24.4_64/lib/site_perl/5.24.4/aix-thread-multi-64all
Alien::Build::Plugin::PkgConfig::Negotiate> Using PkgConfig plugin: PkgConfig::PP
main> prefix /proj/edi/opt/perl/perl5.24.4_64/lib/site_perl/5.24.4/aix-thread-multi-64all/auto/share/dist/Alien-Libxml2
        "/proj/edi/opt/perl/perl5.24.4_64/bin/perl" -MAlien::Build::MM=cmd -e version 0.07
Alien::Build::Plugin::PkgConfig::Negotiate> Using PkgConfig plugin: PkgConfig::PP
        "/proj/edi/opt/perl/perl5.24.4_64/bin/perl" -MAlien::Build::MM=cmd -e download
Alien::Build::Plugin::PkgConfig::Negotiate> Using PkgConfig plugin: PkgConfig::PP
        "/proj/edi/opt/perl/perl5.24.4_64/bin/perl" -MAlien::Build::MM=cmd -e build
Alien::Build::Plugin::PkgConfig::Negotiate> Using PkgConfig plugin: PkgConfig::PP
Use of uninitialized value in subroutine entry at /proj/edi/opt/perl/perl5.24.4_64/lib/site_perl/5.24.4/PkgConfig.pm line 873.
Use of uninitialized value $search_paths[0] in join or string at /proj/edi/opt/perl/perl5.24.4_64/lib/site_perl/5.24.4/PkgConfig.pm line 878.
Alien::Build::Plugin::PkgConfig::PP> Trying to load the pkg-config information from the source code build
Alien::Build::Plugin::PkgConfig::PP> of your package failed
Alien::Build::Plugin::PkgConfig::PP> You are currently using the pure-perl implementation of pkg-config
Alien::Build::Plugin::PkgConfig::PP> (AB Plugin is named PkgConfig::PP, which uses PkgConfig.pm
Alien::Build::Plugin::PkgConfig::PP> It may work better with the real pkg-config.
Alien::Build::Plugin::PkgConfig::PP> Try installing your OS' version of pkg-config or unset ALIEN_BUILD_PKG_CONFIG
Alien::Build::Plugin::Core::Legacy> adding legacy hash to config
Alien::Build::Plugin::Core::Gather> mkdir -p /home/hpslmcg/.cpan/build/Alien-Libxml2-0.07-0/blib/lib/auto/share/dist/Alien-Libxml2/_alien
Manifying 1 pod document

102 $ make test
        PERL_DL_NONLAZY=1 "/proj/edi/opt/perl/perl5.24.4_64/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00_diag.t ........ 1/? #
#
#
# HARNESS_ACTIVE=1
# HARNESS_VERSION=3.36_01
# LANG=en_US
# LC__FASTMSG=true
# PERL5LIB=/home/hpslmcg/.cpan/build/Alien-Libxml2-0.07-0/blib/lib:/home/hpslmcg/.cpan/build/Alien-Libxml2-0.07-0/blib/arch
# PERL_DL_NONLAZY=1
# PERL_HOME=/proj/edi/opt/perl/perl5.24.4_64/
# PERL_VERSION=5.24.4_64
# SHELL=/bin/sh
#
#
#
# PERL5LIB path
# /home/hpslmcg/.cpan/build/Alien-Libxml2-0.07-0/blib/lib
# /home/hpslmcg/.cpan/build/Alien-Libxml2-0.07-0/blib/arch
#
#
#
# perl                                     5.024004
# Alien::Base                              1.69
# Alien::Build                             1.69
# Alien::Build::MM                         1.69
# Alien::Build::Plugin::Build::SearchDep   1.69
# Alien::Build::Plugin::Prefer::BadVersion 1.69
# ExtUtils::CBuilder                       0.280225
# ExtUtils::MakeMaker                      7.1002
# Test2::V0                                0.000121
# Test::Alien                              1.69
#
#
#
# version        =
# cflags         =
# cflags_static  =
# libs           =
# libs_static    =
#
#
#
t/00_diag.t ........ ok
t/alien_libxml2.t .. 1/?
# Failed test 'xs'
# at t/alien_libxml2.t line 10.
#   ExtUtils::CBuilder->compile failed
#     error building testalienZ2twy/test.o from 'testalienZ2twy/test.c' at /proj/edi/opt/perl/perl5.24.4_64/lib/5.24.4/ExtUtils/CBuilder/Base.pm line 174.
#     cc_r -q64 -I/proj/edi/opt/perl/perl5.24.4_64/lib/5.24.4/aix-thread-multi-64all/CORE -c -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -qlanglvl=extc99 -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -I/usr/local/include -q64 -DUSE_64_BIT_ALL -q64 -O -o testalienZ2twy/test.o testalienZ2twy/test.c
#     "testalienZ2twy/test.xs", line 5.10: 1506-296 (S) #include file <libxml/parser.h> not found.
#     "testalienZ2twy/test.xs", line 6.10: 1506-296 (S) #include file <libxml/tree.h> not found.
#     "testalienZ2twy/test.xs", line 13.5: 1506-045 (S) Undeclared identifier xmlDoc.
#     "testalienZ2twy/test.xs", line 13.13: 1506-045 (S) Undeclared identifier doc.
#     "testalienZ2twy/test.xs", line 13.17: 1506-277 (S) Syntax error: possible missing ';' or ','?
#     "testalienZ2twy/test.xs", line 14.5: 1506-045 (S) Undeclared identifier xmlNode.
#     "testalienZ2twy/test.xs", line 14.14: 1506-045 (S) Undeclared identifier root_element.
t/alien_libxml2.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests

Test Summary Report
-------------------
t/alien_libxml2.t (Wstat: 256 Tests: 3 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
Files=2, Tests=4,  1 wallclock secs ( 0.03 usr  0.01 sys +  0.71 cusr  0.13 csys =  0.88 CPU)
Result: FAIL
Failed 1/2 test programs. 1/4 subtests failed.
make: 1254-004 The error code from the last command is 1.

Stop.
plicease commented 5 years ago

Can you try version 0.08_01?

plicease commented 5 years ago

Can be found here: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-Libxml2-0.08_01.tar.gz

hpslmcg commented 5 years ago

It worked. The output is below.

52 $ XMLPREFIX=/proj/edi/opt/libxml2/2.9.9 perl Makefile.PL PREFIX=/proj/edi/opt/perl/perl5.24.4_64 LIB=/proj/edi/opt/perl/perl5.24.4_64/lib/site_perl/5.24.4                                                                                                                   Alien::Build::Plugin::PkgConfig::Negotiate> Using PkgConfig plugin: PkgConfig::PP
Alien::Build::CommandSequence> + xml2-config --version
Alien::Build::CommandSequence> [output consumed by Alien::Build recipe]
Alien::Build::CommandSequence> + xml2-config --cflags
Alien::Build::CommandSequence> [output consumed by Alien::Build recipe]
Alien::Build::CommandSequence> + xml2-config --libs
Alien::Build::CommandSequence> [output consumed by Alien::Build recipe]
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Alien::Libxml2
Writing MYMETA.yml and MYMETA.json

53 $ make
cp lib/Alien/Libxml2.pm blib/lib/Alien/Libxml2.pm
        "/proj/edi/opt/perl/perl5.24.4_64/bin/perl" -MAlien::Build::MM=cmd -e prefix site /proj/edi/opt/perl/perl5.24.4_64/lib/site_perl/5.24.4/aix-thread-multi-64all /proj/edi/opt/perl/perl5.24.4_64/lib/site_perl/5.24.4/aix-thread-multi-64all /proj/edi/opt/perl/perl5.24.4_64/lib/site_perl/5.24.4/aix-thread-multi-64all
Alien::Build::Plugin::PkgConfig::Negotiate> Using PkgConfig plugin: PkgConfig::PP
main> prefix /proj/edi/opt/perl/perl5.24.4_64/lib/site_perl/5.24.4/aix-thread-multi-64all/auto/share/dist/Alien-Libxml2
        "/proj/edi/opt/perl/perl5.24.4_64/bin/perl" -MAlien::Build::MM=cmd -e version 0.08_01
Alien::Build::Plugin::PkgConfig::Negotiate> Using PkgConfig plugin: PkgConfig::PP
        "/proj/edi/opt/perl/perl5.24.4_64/bin/perl" -MAlien::Build::MM=cmd -e download
Alien::Build::Plugin::PkgConfig::Negotiate> Using PkgConfig plugin: PkgConfig::PP
        "/proj/edi/opt/perl/perl5.24.4_64/bin/perl" -MAlien::Build::MM=cmd -e build
Alien::Build::Plugin::PkgConfig::Negotiate> Using PkgConfig plugin: PkgConfig::PP
Use of uninitialized value in subroutine entry at /proj/edi/opt/perl/perl5.24.4_64/lib/site_perl/5.24.4/PkgConfig.pm line 873.
Use of uninitialized value $search_paths[0] in join or string at /proj/edi/opt/perl/perl5.24.4_64/lib/site_perl/5.24.4/PkgConfig.pm line 878.
Alien::Build::Plugin::PkgConfig::PP> Trying to load the pkg-config information from the source code build
Alien::Build::Plugin::PkgConfig::PP> of your package failed
Alien::Build::Plugin::PkgConfig::PP> You are currently using the pure-perl implementation of pkg-config
Alien::Build::Plugin::PkgConfig::PP> (AB Plugin is named PkgConfig::PP, which uses PkgConfig.pm
Alien::Build::Plugin::PkgConfig::PP> It may work better with the real pkg-config.
Alien::Build::Plugin::PkgConfig::PP> Try installing your OS' version of pkg-config or unset ALIEN_BUILD_PKG_CONFIG
Alien::Build::Plugin::Core::Legacy> adding legacy hash to config
Alien::Build::Plugin::Core::Gather> mkdir -p /tmp/Alien-Libxml2-0.08_01/blib/lib/auto/share/dist/Alien-Libxml2/_alien
Manifying 1 pod document

54 $ make test
        PERL_DL_NONLAZY=1 "/proj/edi/opt/perl/perl5.24.4_64/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00_diag.t ........ 1/? #
#
#
# HARNESS_ACTIVE=1
# HARNESS_VERSION=3.36_01
# LANG=en_US
# LC__FASTMSG=true
# PERL5LIB=/tmp/Alien-Libxml2-0.08_01/blib/lib:/tmp/Alien-Libxml2-0.08_01/blib/arch
# PERL_DL_NONLAZY=1
# PERL_HOME=/proj/edi/opt/perl/perl5.24.4_64/
# PERL_VERSION=5.24.4_64
# SHELL=/bin/sh
#
#
#
# PERL5LIB path
# /tmp/Alien-Libxml2-0.08_01/blib/lib
# /tmp/Alien-Libxml2-0.08_01/blib/arch
#
#
#
# perl                                     5.024004
# Alien::Base                              1.69
# Alien::Build                             1.69
# Alien::Build::MM                         1.69
# Alien::Build::Plugin::Build::SearchDep   1.69
# Alien::Build::Plugin::Prefer::BadVersion 1.69
# ExtUtils::CBuilder                       0.280225
# ExtUtils::MakeMaker                      7.1002
# Test2::V0                                0.000121
# Test::Alien                              1.69
#
#
#
# version        = 2.7.8
# cflags         = -I/proj/edi/opt/libxml2/2.7.8_64/include/libxml2
# cflags_static  = -I/proj/edi/opt/libxml2/2.7.8_64/include/libxml2
# libs           = -L/proj/edi/opt/libxml2/2.7.8_64/lib -lxml2 -lpthread -liconv -lm
# libs_static    = -L/proj/edi/opt/libxml2/2.7.8_64/lib -lxml2 -lpthread -liconv -lm
#
#
#
t/00_diag.t ........ ok
t/alien_libxml2.t .. ok
All tests successful.
Files=2, Tests=4,  3 wallclock secs ( 0.03 usr  0.01 sys +  0.82 cusr  0.16 csys =  1.02 CPU)
Result: PASS
        "/proj/edi/opt/perl/perl5.24.4_64/bin/perl" -MAlien::Build::MM=cmd -e test
Alien::Build::Plugin::PkgConfig::Negotiate> Using PkgConfig plugin: PkgConfig::PP
Target "test" is up to date.

55 $ make install
Manifying 1 pod document
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /proj/edi/opt/perl/perl5.24.4_64/lib/site_perl/5.24.4/aix-thread-multi-64all/auto/Alien/Libxml2/Libxml2.txt
Installing /proj/edi/opt/perl/perl5.24.4_64/lib/site_perl/5.24.4/aix-thread-multi-64all/Alien/Libxml2.pm
Installing /proj/edi/opt/perl/perl5.24.4_64/lib/site_perl/5.24.4/aix-thread-multi-64all/Alien/Libxml2/Install/Files.pm
Installing /proj/edi/opt/perl/perl5.24.4_64/lib/site_perl/5.24.4/aix-thread-multi-64all/auto/share/dist/Alien-Libxml2/_alien/alien.json
Installing /proj/edi/opt/perl/perl5.24.4_64/lib/site_perl/5.24.4/aix-thread-multi-64all/auto/share/dist/Alien-Libxml2/_alien/alienfile
Installing /proj/edi/opt/perl/perl5.24.4_64/man/man3/Alien::Libxml2.3
Appending installation info to /proj/edi/opt/perl/perl5.24.4_64/lib/site_perl/5.24.4/aix-thread-multi-64all/perllocal.pod

From: Graham✈️✈️ [mailto:notifications@github.com] Sent: Monday, May 13, 2019 11:23 PM To: Perl5-Alien/Alien-Libxml2 Alien-Libxml2@noreply.github.com Cc: McGerik, Scott L Scott.L.McGerik@HealthPartners.Com; Author author@noreply.github.com Subject: Re: [Perl5-Alien/Alien-Libxml2] Unable to build Alien-Libxml2 on AIX 7.1 (#8)

External Email: Do not click any links or attachments unless you recognize the sender.

Can be found here: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-Libxml2-0.08_01.tar.gz

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Perl5-Alien/Alien-Libxml2/issues/8?email_source=notifications&email_token=AMCAX2IDDK2IXPZPIHEPSQDPVI5CHA5CNFSM4HMS54H2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVKHCKY#issuecomment-492073259, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMCAX2KIRDPPA42KJ3CYZKTPVI5CHANCNFSM4HMS54HQ.


This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient or the individual responsible for delivering the e-mail to the intended recipient, please be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited.

If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. Disclaimer R001.0

plicease commented 5 years ago

Great. The latest production version 0.09 should also work.

hpslmcg commented 5 years ago

I successfully installed it using cpan.

From: Graham✈️✈️ [mailto:notifications@github.com] Sent: Tuesday, May 14, 2019 7:31 PM To: Perl5-Alien/Alien-Libxml2 Alien-Libxml2@noreply.github.com Cc: McGerik, Scott L Scott.L.McGerik@HealthPartners.Com; Author author@noreply.github.com Subject: Re: [Perl5-Alien/Alien-Libxml2] Unable to build Alien-Libxml2 on AIX 7.1 (#8)

External Email: Do not click any links or attachments unless you recognize the sender.

Great. The latest production version 0.09 should also work.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Perl5-Alien/Alien-Libxml2/issues/8?email_source=notifications&email_token=AMCAX2L6ZX45PVT3FIPQO5TPVNKS7A5CNFSM4HMS54H2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVNFKKY#issuecomment-492459307, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMCAX2MMGFNVCMHCOOSYC63PVNKS7ANCNFSM4HMS54HQ.


This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient or the individual responsible for delivering the e-mail to the intended recipient, please be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited.

If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. Disclaimer R001.0