tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: perl5 fails to build on macos 10.11 and 10.13



> Since the recent perl update, it's failed to build.  I finally mostly
> tracked this down.  The build does something that ought to work:
> 
>  cd dist/Storable ; DYLD_LIBRARY_PATH=/opt/pkgsrc/lang/perl5/work/perl-5.28.0 /Library/Developer/CommandLineTools/usr/bin/gnumake lib/Storable/Limit.pm
>  /n0/gdt/NetBSD-current/pkgsrc/lang/perl5/work/perl-5.28.0/dist/Storable/../../miniperl "-I../../lib" -MExtUtils::Command -e 'mkpath' -- ../../lib
>  "../../perl" "-I../../lib" "-I../../lib" stacksize --core
>  dyld: Library not loaded: /opt/pkg/lib/perl5/5.28.0/darwin-thread-multi-2level/CORE/libperl.dylib
>    Referenced from: /n0/gdt/NetBSD-current/pkgsrc/lang/perl5/work/perl-5.28.0/dist/Storable/../../perl
>    Reason: image not found
>  gnumake[1]: *** [lib/Storable/Limit.pm] Trace/BPT trap: 5
>  gnumake: *** [dist/Storable/lib/Storable/Limit.pm] Error 2
>  *** Error code 2
> 
> but libperl.dylib is not found, despite being exactly at the path passed
> in.
> 
> It seems this is a feature of OS X, where programs with System Integrity
> Protection drop DYLD variables:
> 
>  https://forums.developer.apple.com/thread/9233
> 
> 
> Modifying the dist/Storable makefile to invoke perl with
> DYLD_LIBRARY_PATH=/opt/pkgsrc/lang/perl5/work/perl-5 on the command
> results in getting past this error and hitting another one.
> 
> Is anyone else seeing this?  Has anywone built perl 5.28.0 on a mac
> under pkgsrc?
> 
> Any ideas for how to resolve with minimal changes?

I've built Perl 5.28.0 on 10.13.6 (Xcode 9.4.1) and 10.14 beta (Xcode 10 beta) without problems.

Kind regards,
Adam


Home | Main Index | Thread Index | Old Index