[MacPorts] #71152: perl5.38 @5.38.2 fails to build, actually 'test', on PPC Leopard, Mac OS X 10.5.8, because of ld not being able handle -rpath?

MacPorts noreply at macports.org
Tue Oct 22 20:20:54 UTC 2024


#71152: perl5.38 @5.38.2 fails to build, actually 'test', on PPC Leopard, Mac OS X
10.5.8, because of ld not being able handle -rpath?
-------------------------+----------------------
 Reporter:  ballapete    |      Owner:  (none)
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.10.2
 Keywords:  leopard ppc  |       Port:  perl5.38
-------------------------+----------------------
 {{{
 make[1]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_perl5/perl5.38/work/perl-5.38.2/cpan/DB_File'
 Running Mkbootstrap for DB_File ()
 chmod 644 "DB_File.bs"
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_perl5/perl5.38/work/perl-5.38.2/cpan/DB_File/../../miniperl
 "-I../../lib" -MExtUtils::Command::MM -e 'cp_nonempty' -- DB_File.bs
 ../../lib/auto/DB_File/DB_File.bs 644
 /usr/bin/gcc-4.2 -c  -I/opt/local/include/db48 -std=gnu99 -fno-common
 -DPERL_DARWIN -pipe -Os -arch ppc -fno-strict-aliasing -fstack-protector
 -I/opt/local/include -D_FORTIFY_SOURCE=2 -Wall -Werror=pointer-arith
 -Wextra -Wno-long-long -Wno-declaration-after-statement -Wc++-compat
 -Wwrite-strings -O3   -DVERSION=\"1.858\" -DXS_VERSION=\"1.858\"
 "-I../.."  -DmDB_Prefix_t=size_t -DmDB_Hash_t=u_int32_t   version.c
 "../../miniperl" "-I../../lib" "../../lib/ExtUtils/xsubpp" -noprototypes
 -typemap
 '/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_perl5/perl5.38/work/perl-5.38.2/cpan/DB_File/../../lib/ExtUtils/typemap'
 -typemap
 '/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_perl5/perl5.38/work/perl-5.38.2/cpan/DB_File/typemap'
 DB_File.xs > DB_File.xsc
 mv DB_File.xsc DB_File.c
 /usr/bin/gcc-4.2 -c  -I/opt/local/include/db48 -std=gnu99 -fno-common
 -DPERL_DARWIN -pipe -Os -arch ppc -fno-strict-aliasing -fstack-protector
 -I/opt/local/include -D_FORTIFY_SOURCE=2 -Wall -Werror=pointer-arith
 -Wextra -Wno-long-long -Wno-declaration-after-statement -Wc++-compat
 -Wwrite-strings -O3   -DVERSION=\"1.858\" -DXS_VERSION=\"1.858\"
 "-I../.."  -DmDB_Prefix_t=size_t -DmDB_Hash_t=u_int32_t   DB_File.c
 rm -f ../../lib/auto/DB_File/DB_File.bundle
 LD_RUN_PATH="/opt/local/lib/db48" env MACOSX_DEPLOYMENT_TARGET=10.3
 /usr/bin/gcc-4.2 -Wl,-rpath,"/opt/local/lib/db48" -bundle -undefined
 dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc
 -fstack-protector  version.o DB_File.o  -o
 ../../lib/auto/DB_File/DB_File.bundle  \
            -L/opt/local/lib/db48 -ldb   \

 ld: -rpath can only be used when targeting Mac OS X 10.5 or later
 collect2: ld returned 1 exit status
 make[1]: *** [../../lib/auto/DB_File/DB_File.bundle] Error 1
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_perl5/perl5.38/work/perl-5.38.2/cpan/DB_File'
 make[1]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_perl5/perl5.38/work/perl-5.38.2/cpan/DB_File'
 /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_perl5/perl5.38/work/perl-5.38.2/cpan/DB_File/../../miniperl
 "-I../../lib" -MExtUtils::Command::MM -e 'cp_nonempty' -- DB_File.bs
 ../../lib/auto/DB_File/DB_File.bs 644
 rm -f ../../lib/auto/DB_File/DB_File.bundle
 LD_RUN_PATH="/opt/local/lib/db48" env MACOSX_DEPLOYMENT_TARGET=10.3
 /usr/bin/gcc-4.2 -Wl,-rpath,"/opt/local/lib/db48" -bundle -undefined
 dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc
 -fstack-protector  version.o DB_File.o  -o
 ../../lib/auto/DB_File/DB_File.bundle  \
            -L/opt/local/lib/db48 -ldb   \

 ld: -rpath can only be used when targeting Mac OS X 10.5 or later
 collect2: ld returned 1 exit status
 make[1]: *** [../../lib/auto/DB_File/DB_File.bundle] Error 1
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_perl5/perl5.38/work/perl-5.38.2/cpan/DB_File'
 Unsuccessful make(cpan/DB_File): code=512 at make_ext.pl line 584.
 make: *** [lib/auto/DB_File/DB_File.bundle] Error 25
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_perl5/perl5.38/work/perl-5.38.2'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_lang_perl5/perl5.38/work/perl-5.38.2"
 && /usr/bin/make -w all
 Exit code: 2
 Error: Failed to build perl5.38: command execution failed
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/71152>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list