Opened 14 years ago

Closed 14 years ago

#24943 closed defect (worksforme)

p5-pathtools 3.31 fails to build - SnowLeopard

Reported by: portaktl@… Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: p5-pathtools

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Installation via 'sudo port -d install' on MacPorts 1.8.2

DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/perl/p5-pathtools
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/perl/p5-pathtools
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.4.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/perl5-1.0.tcl
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Requested variant darwin is not provided by port p5-pathtools.
DEBUG: Requested variant i386 is not provided by port p5-pathtools.
DEBUG: Requested variant macosx is not provided by port p5-pathtools.
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/perl5
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: perl5 5.8.9_0 exists in the ports tree
DEBUG: perl5 5.8.9_0  is the latest installed
DEBUG: perl5 5.8.9_0  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/perl5
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.4.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: not using configure, so not adding the default universal variant
DEBUG: Requested variant darwin is not provided by port perl5.
DEBUG: Requested variant i386 is not provided by port perl5.
DEBUG: Requested variant macosx is not provided by port perl5.
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/perl5.8
DEBUG: epoch: in tree: 0 installed: 0
DEBUG: perl5.8 5.8.9_3 exists in the ports tree
DEBUG: perl5.8 5.8.9_3  is the latest installed
DEBUG: perl5.8 5.8.9_3  is active
DEBUG: Merging existing variants  into variants
DEBUG: new fully merged portvariants: 
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/perl5.8
DEBUG: OS Platform: darwin
DEBUG: OS Version: 10.4.0
DEBUG: Mac OS X Version: 10.6
DEBUG: System Arch: i386
DEBUG: setting option os.universal_supported to yes
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: Requested variant darwin is not provided by port perl5.8.
DEBUG: Requested variant i386 is not provided by port perl5.8.
DEBUG: Requested variant macosx is not provided by port perl5.8.
DEBUG: No need to upgrade! perl5.8 5.8.9_3 >= perl5.8 5.8.9_3
DEBUG: No need to upgrade! perl5 5.8.9_0 >= perl5 5.8.9_0
--->  Computing dependencies for p5-pathtools
DEBUG: Searching for dependency: perl5
DEBUG: Found Dependency: receipt exists for perl5
DEBUG: Executing org.macports.main (p5-pathtools)
DEBUG: Skipping completed org.macports.fetch (p5-pathtools)
DEBUG: Skipping completed org.macports.checksum (p5-pathtools)
DEBUG: Skipping completed org.macports.extract (p5-pathtools)
DEBUG: Skipping completed org.macports.patch (p5-pathtools)
DEBUG: Skipping completed org.macports.configure (p5-pathtools)
--->  Building p5-pathtools
DEBUG: Executing org.macports.build (p5-pathtools)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-pathtools/work/PathTools-3.31" && /usr/bin/make -j2 all'
/usr/bin/gcc-4.2 -c   -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -O3   -DVERSION=\"3.31\" -DXS_VERSION=\"3.31\"  "-I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE"   Cwd.c
In file included from Cwd.xs:2:
/opt/local/lib/perl5/5.8.9/darwin-2level/CORE/perl.h:5536:63: error: libutil.h: No such file or directory
make: *** [Cwd.o] Error 1
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-pathtools/work/PathTools-3.31" && /usr/bin/make -j2 all " returned error 2
DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-pathtools/work/PathTools-3.31" && /usr/bin/make -j2 all " returned error 2
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 9)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for p5-pathtools): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Change History (5)

comment:1 Changed 14 years ago by portaktl@…

Sorry, forgot to block quote the log.

comment:2 Changed 14 years ago by danielluke (Daniel J. Luke)

Works for me (10.6, perl5.10).

This may be a perl5.8 error, as it looks like CORE/perl.h is trying to pull in libutil.h (which I don't see on either my 10.5 or 10.6 systems). perl5.10 (and the system perl 5.8) have the libutil.h include protected by ifdef I_LIBUTIL - that shouldn't be defined on your system (unless the perl5.8 port is broken or you had some bad include files in /usr/local when you built your perl).

comment:3 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to dluke@…
Port: p5-pathtools added

Does the problem recur if you "sudo port clean p5-pathtools" and try again?

comment:4 Changed 14 years ago by portaktl@…

I did try cleaning. That didn't work, but sudo port -nR upgrade --force perl5 fixed the problem.

comment:5 Changed 14 years ago by danielluke (Daniel J. Luke)

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.