Subject: | make fails on darwin |
Hi,
I think this is due to 10.5, but I'm not sure and cannot verify (no 10.4 anymore).
This patch makes it compile and pass tests
Subject: | perl_version.txt |
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
Platform:
osname=darwin, osvers=9.1.0, archname=darwin-multi-2level
uname='darwin syeeda.local 9.1.0 darwin kernel version 9.1.0: wed oct 31 17:46:22 pdt 2007; root:xnu-1228.0.2~1release_i386 i386 '
config_args='-Uusethreads -Dusemultiplicity -de -s'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include',
optimize='-O3',
cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='4.0.1 (Apple Inc. build 5465)', 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 =' -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib
libs=-ldbm -ldl -lm -lutil -lc
perllibs=-ldl -lm -lutil -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
USE_LARGE_FILES USE_PERLIO
Built under darwin
Compiled at Jan 29 2008 05:47:00
%ENV:
PERL5LIB="/usr/local/svk-1.06/perl/darwin-thread-multi-2level/"
PERL5_CPANPLUS_CONFIG="/Users/nothingmuch/.cpanplus/config"
PERL_MM_USE_DEFAULT="1"
@INC:
/usr/local/svk-1.06/perl/darwin-thread-multi-2level/
/usr/local/lib/perl5/5.10.0/darwin-multi-2level
/usr/local/lib/perl5/5.10.0
/usr/local/lib/perl5/site_perl/5.10.0/darwin-multi-2level
/usr/local/lib/perl5/site_perl/5.10.0
/usr/local/lib/perl5/site_perl/5.8.8
/usr/local/lib/perl5/site_perl/5.8.6
/usr/local/lib/perl5/site_perl
.
Subject: | proc.patch |
--- os/darwin.h.orig 2008-01-29 07:42:47.000000000 +0200
+++ os/darwin.h 2008-01-29 07:42:57.000000000 +0200
@@ -60,7 +60,6 @@
#include <sys/resource.h>
#include <sys/stat.h>
#include <sys/sysctl.h>
-#include <kvm.h>
#include <unistd.h>
@@ -108,7 +107,7 @@
struct policy_fifo_info fifo;
} schedinfo;
int invalid_tinfo;
- int thread_count;
+ mach_msg_type_number_t thread_count;
thread_port_array_t thread_list;
thread_values_t *thval;
int invalid_thinfo;