Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Ahven

macrumors newbie
Original poster
Mar 21, 2023
1
0
I need a newer version of Perl to my Apple Power G5 running OS X 10.5.8. The system is supposed to be standard with all the updates Apple provides and the latest XCode available to it.

I'm trying to install Perl 5.36.0 from source tar ball following this guide:

After unpacking the tar ball with
gunzip < perl-5.36.0.tar.gz | tar xfv -

I run:
SDK=/Developer/SDKs/MacOSX10.5.sdk \ ./Configure \ -Dprefix=$HOME/opt/perl \ -Uloclibpth -Dlibpth=/usr/lib \ -Accflags="-nostdinc -B$SDK/usr/include/gcc \ -B$SDK/usr/lib/gcc -isystem$SDK/usr/include \ -F$SDK/System/Library/Frameworks" \ -Aldflags="-Wl,-syslibroot,$SDK" \ -de

I have tried many other ways also but make always fails with:

cc -c -std=gnu99 -fno-common -DPERL_DARWIN -nostdinc -B/Developer/SDKs/MacOSX10.5.sdk//usr/include/gcc -B/Developer/SDKs/MacOSX10.5.sdk//usr/lib/gcc -isystem/Developer/SDKs/MacOSX10.5.sdk//usr/include -F/Developer/SDKs/MacOSX10.5.sdk//System/Library/Frameworks -fno-strict-aliasing -pipe -fstack-protector -I/opt/local/include -D_FORTIFY_SOURCE=2 -DPERL_USE_SAFE_PUTENV -Wall -Wextra -Wno-long-long -Wno-declaration-after-statement -Wwrite-strings -Wno-error=implicit-function-declaration -O3 -DVERSION=\"1.52\" -DXS_VERSION=\"1.52\" "-I../.." -DLIBC="" DynaLoader.c cc1: error: unrecognized command line option "-Wno-error=implicit-function-declaration" make[1]: *** [DynaLoader.o] Error 1 cc -c -std=gnu99 -fno-common -DPERL_DARWIN -nostdinc -B/Developer/SDKs/MacOSX10.5.sdk//usr/include/gcc -B/Developer/SDKs/MacOSX10.5.sdk//usr/lib/gcc -isystem/Developer/SDKs/MacOSX10.5.sdk//usr/include -F/Developer/SDKs/MacOSX10.5.sdk//System/Library/Frameworks -fno-strict-aliasing -pipe -fstack-protector -I/opt/local/include -D_FORTIFY_SOURCE=2 -DPERL_USE_SAFE_PUTENV -Wall -Wextra -Wno-long-long -Wno-declaration-after-statement -Wwrite-strings -Wno-error=implicit-function-declaration -O3 -DVERSION=\"1.52\" -DXS_VERSION=\"1.52\" "-I../.." -DLIBC="" DynaLoader.c cc1: error: unrecognized command line option "-Wno-error=implicit-function-declaration" make[1]: *** [DynaLoader.o] Error 1 Unsuccessful make(ext/DynaLoader): code=512 at make_ext.pl line 584. make: *** [DynaLoader.o] Error 25

Any ideas?
 
Since no one mentioned Macports, it should install with sudo port install perl5.36.

Cannot test on 10.5.8 now, but on 10.6 PPC it builds fine, just checked now. (Xcode of 10A190 uses an earlier version of gcc-4.2 than 10.6.x releases.)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.