/Developer/SDKs/MacOSX10.4u appears broken on Snow Leopard

Posted by beastofbodmin on 2010-10-03 04:49
Forums: PPM | OS: OS X 10.6 (Snow Leopard)

I installed ActivePerl 5.12 last week. I had some problems getting DBD::mysql installed using PPM. This weekend it has been other problems. The problem I think is to do with some of these flags which refer to MacOSX10.4u.sdk, whereas I think they ought to refer to MacOSX10.6.sdk.

-B/Developer/SDKs/MacOSX10.4u.sdk/usr/include/gcc
-B/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc
-isystem/Developer/SDKs/MacOSX10.4u.sdk/usr/include
-F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks
-mmacosx-version-min=10.4

Even if I do something like

export SDK=/Developer/SDKs/MacOSX10.6.sdk
make clean
/usr/local/ActivePerl-5.12/bin/perl Makefile.PL
make

I get errors like this

In file included from /usr/local/ActivePerl-5.12/lib/CORE/perl.h:594,
from Bzip2.xs:14:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: no include path in which to search for stdarg.h

I think I can make the situation better if I use /Developer/SDKs/MacOSX10.6/... but how can I reconfigure (or reinstall) ActivePerl to do this? Or am I looking in the wrong place?

bash-3.2# /usr/local/ActivePerl-5.12/bin/perl -V
Summary of my perl5 (revision 5 version 12 subversion 2) configuration:

Platform:
osname=darwin, osvers=9.8.0, archname=darwin-thread-multi-2level
uname='darwin kitty 9.8.0 darwin kernel version 9.8.0: wed jul 15 16:55:01 pdt 2009; root:xnu-1228.15.4~1release_i386 i386 '
config_args='-ders -Dcc=gcc -Dusethreads -Duseithreads -Ud_sigsetjmp -Uinstallusrbinperl -Ulocincpth= -Uloclibpth= -Ud_poll -Ui_poll -Ud_sockatmark -Ud_sockatmarkproto -Ui_libutil -Aldflags=-Wl,-search_paths_first -Alddlflags=-Wl,-search_paths_first -Accflags=-arch ppc -arch i386 -Aldflags=-arch ppc -arch i386 -Alddlflags=-arch ppc -arch i386 -Accflags=-nostdinc -B/Developer/SDKs/MacOSX10.4u.sdk/usr/include/gcc -B/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc -isystem/Developer/SDKs/MacOSX10.4u.sdk/usr/include -F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks -mmacosx-version-min=10.4 -Aldflags=-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -Alddlflags=-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -Accflags=-DUSE_SITECUSTOMIZE -Duselargefiles -Accflags=-fno-merge-constants -Dprefix=/usr/local/ActivePerl-5.12 -Dprivlib=/usr/local/ActivePerl-5.12/lib -Darchlib=/usr/local/ActivePerl-5.12/lib -Dsiteprefix=/usr/local/ActivePerl-5.12/site -Dsitelib=/usr/local/ActivePerl-5.12/site/lib -Dsitearch=/usr/local/ActivePerl-5.12/site/lib -Dsed=/usr/bin/sed -Duseshrplib -Dcf_by=ActiveState -Dcf_email=support@ActiveState.com'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp -arch ppc -arch i386 -nostdinc -B/Developer/SDKs/MacOSX10.4u.sdk/usr/include/gcc -B/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc -isystem/Developer/SDKs/MacOSX10.4u.sdk/usr/include -F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks -mmacosx-version-min=10.4 -DUSE_SITECUSTOMIZE -fno-merge-constants -fno-strict-aliasing -pipe',
optimize='-O3',
cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp -arch ppc -nostdinc -B/Developer/SDKs/MacOSX10.4u.sdk/usr/include/gcc -B/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc -isystem/Developer/SDKs/MacOSX10.4u.sdk/usr/include -F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks -mmacosx-version-min=10.4 -DUSE_SITECUSTOMIZE -fno-merge-constants -fno-strict-aliasing -pipe'
ccversion='', gccversion='i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646) (dot 1)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -Wl,-search_paths_first -arch ppc -arch i386 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4'
libpth=/lib /usr/lib /usr/local/lib
libs=-ldbm -ldl -lm -lc
perllibs=-ldl -lm -lc
libc=, so=dylib, useshrplib=true, libperl=libperl.dylib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -Wl,-search_paths_first -arch ppc -arch i386 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4'

Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS
USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF
USE_REENTRANT_API USE_SITECUSTOMIZE
Locally applied patches:
ActivePerl Build 1202 [293621]
1fd8fa4 Add Wolfram Humann to AUTHORS
f120055 make string-append on win32 100 times faster
a2a8d15 Define _USE_32BIT_TIME_T for VC6 and VC7
007cfe1 Don't pretend to support really old VC++ compilers
6d8f7c9 Get rid of obsolete PerlCRT.dll support
d956618 Make Term::ReadLine::findConsole fall back to STDIN if /dev/tty can't be opened
321e50c Escape patch strings before embedding them in patchlevel.h
Built under darwin
Compiled at Sep 6 2010 22:59:28
@INC:
/var/root/Library/ActivePerl-5.12/lib
/usr/local/ActivePerl-5.12/site/lib
/usr/local/ActivePerl-5.12/lib

psychomachine | Tue, 2010-12-28 10:11

Hi,
i was wondering if you found a solution to the above problem. i am also stuck trying to compile DBD::mysql using the set up you describe and I am getting the same error with no include path in which to search for stdarg.h
all best,
psych