Skip Menu |
 

This queue is for tickets about the Proc-ProcessTable CPAN distribution.

Report information
The Basics
Id: 33698
Status: resolved
Priority: 0/
Queue: Proc-ProcessTable

People
Owner: Nobody in particular
Requestors: NUFFIN [...] cpan.org
william.geldhof [...] nss.be
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: make fails on darwin
Download (untitled) / with headers
text/plain 131b
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
Download perl_version.txt
text/plain 2.4k
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
Download proc.patch
text/x-diff 476b
--- 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;
Subject: make still fails on darwin
From: colossus.forbin [...] gmail.com
Download (untitled) / with headers
text/plain 688b
On Tue Jan 29 00:46:43 2008, NUFFIN wrote: Show quoted text
> 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
as a result of the patch, this is what i get (on 10.5.2): In file included from OS.c:45: os/darwin.h:63:17: error: kvm.h: No such file or directory OS.c: In function 'OS_get_table': OS.c:157: warning: ISO C90 forbids mixed declarations and code OS.c: In function 'get_task_info': OS.c:791: warning: pointer targets in passing argument 3 of 'task_threads' differ in signedness Show quoted text
> locate kvm.h
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/kvm.h which means that this won't work for most leopard users
CC: info [...] osib.be
Subject: #32761: make fails on darwin
Date: Fri, 29 Feb 2008 11:30:07 +0100
To: bug-Proc-ProcessTable [...] rt.cpan.org
From: william geldhof <william.geldhof [...] nss.be>
Download (untitled) / with headers
text/plain 232b
Following solved the problem for me : cp /Developer/SDKs/MacOSX10.4u.sdk/usr/include/kvm.h /usr/local/include and make went ok please use info@osib.be to answer this mail. thanks . Met vriendelijke groeten, William Geldhof NSS
Download (untitled) / with headers
text/plain 597b
I am the author of the Mac OS X plugin for Proc::ProcessTable. I apologize for not responding sooner, but I was not monitoring the RT queue for this package, and I only discovered the problem myself a couple days ago. It appears that under Leopard (Mac OS X 10.5) <kvm.h> is not needed to compile the plugin. I do not know about the situation under Tiger. I must have thought it was needed under Panther, but I have not re-confirmed that either. Until I can develop a patch I like and submit it to Dan, the workaround I recommend is to delete (or comment out) the "#include <kvm.h>" in darwin.h.
Download (untitled) / with headers
text/plain 597b
I am the author of the Mac OS X plugin for Proc::ProcessTable. I apologize for not responding sooner, but I was not monitoring the RT queue for this package, and I only discovered the problem myself a couple days ago. It appears that under Leopard (Mac OS X 10.5) <kvm.h> is not needed to compile the plugin. I do not know about the situation under Tiger. I must have thought it was needed under Panther, but I have not re-confirmed that either. Until I can develop a patch I like and submit it to Dan, the workaround I recommend is to delete (or comment out) the "#include <kvm.h>" in darwin.h.
Download (untitled) / with headers
text/plain 429b
It turns out that kvm.h is not needed under 10.3, 10.4, or 10.5, so it must have been left over from 10.2 (Jaguar), which used a different interface. Anyhow, the attached tarball contains all files needed for Darwin. The only file that changed, though, is os/darwin.h. This contains two changes: one to bypass the inclusion of kvm.h on 10.3 (Panther) and above, and one to suppress compiler warnings on 10.4 (Tiger) and above.

Message body not shown because it is not plain text.

Download (untitled) / with headers
text/plain 270b
It turns out that kvm.h is not needed under 10.3, 10.4, or 10.5, so it must have been left over from 10.2 (Jaguar), which used a different interface. There is a tarball with all Darwin files attached to ticked 32761. The only file that actually changed was os/darwin.h.
Download (untitled) / with headers
text/plain 329b
It's worse than I previously thought, because the fix for the off-by-one error reported in ticket 24331 somehow did not make it into 0.42. Also, I suspect the previously-attached file is a plain .tar file, rather than a gzipped tar file, despite the fact that it ends in .tar.gz. The current tarball is attached to ticket 24331.
Download (untitled) / with headers
text/plain 329b
It's worse than I previously thought, because the fix for the off-by-one error reported in ticket 24331 somehow did not make it into 0.42. Also, I suspect the previously-attached file is a plain .tar file, rather than a gzipped tar file, despite the fact that it ends in .tar.gz. The current tarball is attached to ticket 24331.
This bug seems to be resolved already.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.