[MacPorts] #72223: p5.34-alien-libxml2 @0.20 fails to build: mytest.c: error: libxml/xmlversion.h: No such file or directory
MacPorts
noreply at macports.org
Fri Mar 21 15:49:14 UTC 2025
#72223: p5.34-alien-libxml2 @0.20 fails to build: mytest.c: error:
libxml/xmlversion.h: No such file or directory
--------------------------+---------------------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Keywords: | Port: p5.34-alien-libxml2
--------------------------+---------------------------------
{{{
---> Extracting Alien-Libxml2-0.20.tar.gz
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_perl_p5
-alien-libxml2/p5.34-alien-libxml2/work" && /usr/bin/gzip -dc
'/opt/local/var/macports/distfiles/perl5/Alien-Libxml2-0.20.tar.gz' |
/usr/bin/gnutar --no-same-owner -xf -
---> Applying patches to p5.34-alien-libxml2
---> Applying patch-alienfile.diff
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_perl_p5
-alien-libxml2/p5.34-alien-libxml2/work/Alien-Libxml2-0.20" &&
/usr/bin/patch -t -N -p0 <
'/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/perl/p5
-alien-libxml2/files/patch-alienfile.diff'
patching file alienfile
Hunk #1 succeeded at 25 with fuzz 1 (offset 1 line).
Hunk #2 succeeded at 34 (offset 1 line).
---> Patching alienfile: s|__PREFIX__|/opt/local|
---> Configuring p5.34-alien-libxml2
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_perl_p5
-alien-libxml2/p5.34-alien-libxml2/work/Alien-Libxml2-0.20" &&
/opt/local/bin/perl5.34 Makefile.PL INSTALLDIRS=vendor
CC="/usr/bin/gcc-4.2" LD="/usr/bin/gcc-4.2"
Alien::Build::Plugin::PkgConfig::Negotiate> Using PkgConfig plugin:
PkgConfig::CommandLine
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 --dynamic
Alien::Build::CommandSequence> [output consumed by Alien::Build recipe]
Alien::Build::CommandSequence> + pkg-config --exists libxml-2.0
Alien::Libxml2 is designed to work with XML::LibXML.
The installed system version of libxml2 2.13.6 is not compatible with
XML::LibXML (and probably buggy)!
- don't expect XML::LibXML to build or work correctly with this version
of libxml2!
- don't report errors with this version of libxml2!
- don't send patches for this version of libxml2!
XML::LibXML typcially refuses to install with this version unless forced,
so we will
attempt to download a newer version from the internet. If you prefer you
can force
Alien::Libxml2 to install with this possibly buggy version using:
env FORCE=1 perl Makefile.PL
or
env FORCE=1 cpanm Alien::Libxml2
Alien::Build::CommandSequence> + pkg-config --modversion libxml-2.0
Alien::Build::CommandSequence> [output consumed by Alien::Build recipe]
Alien::Build::Plugin::Probe::CBuilder> trying: cflags= libs=-lxml2
Alien::Libxml2 is designed to work with XML::LibXML.
The installed system version of libxml2 2.13.6 is not compatible with
XML::LibXML (and probably buggy)!
- don't expect XML::LibXML to build or work correctly with this version
of libxml2!
- don't report errors with this version of libxml2!
- don't send patches for this version of libxml2!
XML::LibXML typcially refuses to install with this version unless forced,
so we will
attempt to download a newer version from the internet. If you prefer you
can force
Alien::Libxml2 to install with this possibly buggy version using:
env FORCE=1 perl Makefile.PL
or
env FORCE=1 cpanm Alien::Libxml2
Alien::Build::Plugin::Probe::CBuilder> compile failed: error building
mytest.o from 'mytest.c' at
/opt/local/lib/perl5/vendor_perl/5.34/ExtUtils/CBuilder/Base.pm line 186.
Alien::Build::Plugin::Probe::CBuilder> compile failed: /usr/bin/gcc-4.2
-I/opt/local/lib/perl5/5.34/darwin-thread-multi-2level/CORE -c -fno-common
-DPERL_DARWIN -pipe -Os -fno-strict-aliasing -fstack-protector
-I/opt/local/include -DPERL_USE_SAFE_PUTENV -pipe -Os -Wno-error=implicit-
function-declaration -O3 -o mytest.o mytest.c
Alien::Build::Plugin::Probe::CBuilder> mytest.c:2:31: error:
libxml/xmlversion.h: No such file or directory
Alien::Build::Plugin::Probe::CBuilder> mytest.c:3:27: error:
libxml/parser.h: No such file or directory
Alien::Build::Plugin::Probe::CBuilder> mytest.c:4:25: error:
libxml/tree.h: No such file or directory
Alien::Build::Plugin::Probe::CBuilder> mytest.c: In function ‘main’:
Alien::Build::Plugin::Probe::CBuilder> mytest.c:9: error: ‘xmlDoc’
undeclared (first use in this function)
Alien::Build::Plugin::Probe::CBuilder> mytest.c:9: error: (Each undeclared
identifier is reported only once
Alien::Build::Plugin::Probe::CBuilder> mytest.c:9: error: for each
function it appears in.)
Alien::Build::Plugin::Probe::CBuilder> mytest.c:9: error: ‘doc’ undeclared
(first use in this function)
Alien::Build::Plugin::Probe::CBuilder> mytest.c:16: error:
‘LIBXML_DOTTED_VERSION’ undeclared (first use in this function)
Alien::Build::Plugin::Probe::CBuilder> trying:
cflags=-I/opt/local/include/libxml2 libs=-lxml2
Warning: prerequisite IO::Socket::SSL 1.56 not found.
Warning: prerequisite Mozilla::CA 0 not found.
Warning: prerequisite Net::SSLeay 1.49 not found.
Alien::Build> error in probe (will do a share install): execute failed at
/opt/local/lib/perl5/vendor_perl/5.34/Alien/Build/Plugin/Probe/CBuilder.pm
line 121.
Alien::Build> Don't panic, we will attempt a share build from source if
possible.
Alien::Build> Do not file a bug unless you expected a system install to
succeed.
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Alien::Libxml2
Writing MYMETA.yml and MYMETA.json
Fixing flags in Makefile
---> Patching Makefile: /^CCFLAGS *=/s|$| -isysroot/|
---> Patching Makefile: /^OTHERLDFLAGS *=/s|$| -Wl,-syslibroot,/|
---> Patching Makefile: s|^(CC *=).*|\1 /usr/bin/gcc-4.2|
---> Building p5.34-alien-libxml2
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_perl_p5
-alien-libxml2/p5.34-alien-libxml2/work/Alien-Libxml2-0.20" &&
/usr/bin/make -j6 -w all
make: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_perl_p5
-alien-libxml2/p5.34-alien-libxml2/work/Alien-Libxml2-0.20'
cp lib/Alien/Libxml2.pm blib/lib/Alien/Libxml2.pm
"/opt/local/bin/perl5.34" -MAlien::Build::MM=cmd -e prefix vendor
/opt/local/lib/perl5/5.34/darwin-thread-multi-2level
/opt/local/lib/perl5/site_perl/5.34/darwin-thread-multi-2level
/opt/local/lib/perl5/vendor_perl/5.34/darwin-thread-multi-2level
Alien::Build::Plugin::PkgConfig::Negotiate> Using PkgConfig plugin:
PkgConfig::CommandLine
Can't locate IO/Socket/SSL.pm in @INC (you may need to install the
IO::Socket::SSL module) (@INC contains:
/opt/local/lib/perl5/site_perl/5.34/darwin-thread-multi-2level
/opt/local/lib/perl5/site_perl/5.34 /opt/local/lib/perl5/vendor_perl/5.34
/darwin-thread-multi-2level /opt/local/lib/perl5/vendor_perl/5.34
/opt/local/lib/perl5/5.34/darwin-thread-multi-2level
/opt/local/lib/perl5/5.34) at
/opt/local/lib/perl5/vendor_perl/5.34/Alien/Build.pm line 352.
make: *** [_alien/mm/prefix] Error 2
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_perl_p5
-alien-libxml2/p5.34-alien-libxml2/work/Alien-Libxml2-0.20'
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_perl_p5
-alien-libxml2/p5.34-alien-libxml2/work/Alien-Libxml2-0.20" &&
/usr/bin/make -j6 -w all
Exit code: 2
Error: Failed to build p5.34-alien-libxml2: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_perl_p5
-alien-libxml2/p5.34-alien-libxml2/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe
there
is a bug.
Error: Processing of port p5.34-alien-libxml2 failed
}}}
--
Ticket URL: <https://trac.macports.org/ticket/72223>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list