Skip Menu |

This queue is for tickets about the Prima CPAN distribution.

Report information
The Basics
Id: 59403
Status: resolved
Priority: 0/
Queue: Prima

People
Owner: Nobody in particular
Requestors: ASB [...] cpan.org
Cc:
AdminCc:

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



Subject: cannot install on Max OS X snow leopard (Intel, 10.6.4, 64bit)
Hi! I tried to install Prima on Mac OS X 10.6.4 (Intel, 64bit). Please find attached the log. hth, Alex
Subject: prima_install_log.txt

Message body is not shown because it is too large.

It seems that Prima expects header files EXTERN.h etc to be found in /Library/Perl/Updates/5.10.0/darwin-thread-multi-2level/CORE directory, and apparently they're not there. So, two questions: where these files really are? and how do other XS modules get build? could you please build some other simple XS module, f.ex. JSON::XS, and provide its build log? Also, could you post your perl's Config.pm and Config_heavy.pl? Thanks!
Am Do 15. Jul 2010, 07:38:11, KARASIK schrieb: Show quoted text
> It seems that Prima expects header files EXTERN.h etc to be found in > /Library/Perl/Updates/5.10.0/darwin-thread-multi-2level/CORE directory, > and apparently they're not there. So, two questions: > > where these files really are? and how do other XS modules get build? > could you please build some other simple XS module, f.ex. JSON::XS, and > provide its build log? Also, could you post your perl's Config.pm and > Config_heavy.pl? > > Thanks! >
Hi! Please find attached the build log for JSON::XS and various Config.pm files: 1) /Developer/usr/share/automake-1.10/Automake/Config.pm 2) /Library/Perl/Updates/5.10.0/Module/Build/Config.pm 3) /Library/Perl/Updates/5.10.0/ExtUtils/MakeMaker/Config.pm I have absolutely no idea which one you will need, sorry :-s Please let me know, if you were looking for another one. HTH, Alex
I don't remember, if we had private correspondence and the problem was solved. If yes, I'll close the ticket.
Am Di 30. Nov 2010, 07:54:31, KARASIK schrieb: Show quoted text
> I don't remember, if we had private correspondence and the problem was > solved. If yes, I'll close the ticket.
Hi! We had no correspondence and the problem is not solved yet (afaik). To be sure, I will test it tomorrow (I have a mac at work only). best regards, Alex
Yes, the problem still exists. Tested on Mac OS X 10.6.5 Snow Leopard and perl 5.10.0
Yes, the problem still exists. Tested on Mac OS X 10.6.5 Snow Leopard and perl 5.10.0
Oh, I see, thanks. I was asking because I couldn't find the attached files you wrote about. And also, could you find the Config.pm (neither of the three) and Config_heavy.pl that should be there somewhere in perl directories? You're welcome to send them privately to dmitry@karasik.eu.org if attachments here don't work .
Hm, that's odd. I hop I didn't append them to the wrong ticket :-s So, finally, here they are. hth, Alex
Subject: Automake_Config.pm.txt
# Copyright (C) 2003, 2004 Free Software Foundation, Inc. -*- Perl -*- # Generated from Config.in; do not edit by hand. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. package Automake::Config; use strict; use File::Basename (); use 5.006; require Exporter; our @ISA = qw (Exporter); our @EXPORT = qw ($APIVERSION $PACKAGE $VERSION $libdir); # Parameters set by configure. Not to be changed. NOTE: assign # VERSION as string so that e.g. version 0.30 will print correctly. our $APIVERSION = '1.10'; our $PACKAGE = 'automake'; our $VERSION = '1.10'; my $_bindir = File::Basename::dirname($0); (my $_datadir = '/usr/share') =~ s,^/usr,$_bindir/..,; our $libdir = "$_datadir/automake-1.10"; 1;; ### Setup "GNU" style for perl-mode and cperl-mode. ## Local Variables: ## perl-indent-level: 2 ## perl-continued-statement-offset: 2 ## perl-continued-brace-offset: 0 ## perl-brace-offset: 0 ## perl-brace-imaginary-offset: 0 ## perl-label-offset: -2 ## cperl-indent-level: 2 ## cperl-brace-offset: 0 ## cperl-continued-brace-offset: 0 ## cperl-label-offset: -2 ## cperl-extra-newline-before-brace: t ## cperl-merge-trailing-else: nil ## cperl-continued-statement-offset: 2 ## End:
Subject: json_xs_build_log.txt
cpan[2]> install JSON::XS CPAN: Storable loaded ok (v2.18) Going to read '/Users/pktm/Library/Application Support/.cpan/Metadata' Database was generated on Thu, 02 Dec 2010 00:35:49 GMT Running install for module 'JSON::XS' CPAN: YAML loaded ok (v0.71) Running make for M/ML/MLEHMANN/JSON-XS-2.3.tar.gz CPAN: LWP::UserAgent loaded ok (v5.835) CPAN: Time::HiRes loaded ok (v1.9711) Fetching with LWP: http://cpan.mirroring.de/authors/id/M/ML/MLEHMANN/JSON-XS-2.3.tar.gz CPAN: Digest::SHA loaded ok (v5.45) Fetching with LWP: http://cpan.mirroring.de/authors/id/M/ML/MLEHMANN/CHECKSUMS CPAN: Compress::Zlib loaded ok (v2.008) Checksum for /Users/pktm/Library/Application Support/.cpan/sources/authors/id/M/ML/MLEHMANN/JSON-XS-2.3.tar.gz ok Scanning cache /Users/pktm/Library/Application Support/.cpan/build for sizes ............................................................................DONE CPAN: Archive::Tar loaded ok (v1.38) Will not use Archive::Tar, need 1.00 x JSON-XS-2.3/ x JSON-XS-2.3/t/ x JSON-XS-2.3/t/03_types.t x JSON-XS-2.3/t/15_prefix.t x JSON-XS-2.3/t/04_dwiw_encode.t x JSON-XS-2.3/t/07_pc_esc.t x JSON-XS-2.3/t/19_incr.t x JSON-XS-2.3/t/08_pc_base.t x JSON-XS-2.3/t/16_tied.t x JSON-XS-2.3/t/09_pc_extra_number.t x JSON-XS-2.3/t/17_relaxed.t x JSON-XS-2.3/t/13_limit.t x JSON-XS-2.3/t/10_pc_keysort.t x JSON-XS-2.3/t/99_binary.t x JSON-XS-2.3/t/18_json_checker.t x JSON-XS-2.3/t/21_evans.t x JSON-XS-2.3/t/02_error.t x JSON-XS-2.3/t/22_comment_at_eof.t x JSON-XS-2.3/t/14_latin1.t x JSON-XS-2.3/t/00_load.t x JSON-XS-2.3/t/05_dwiw_decode.t x JSON-XS-2.3/t/01_utf8.t x JSON-XS-2.3/t/06_pc_pretty.t x JSON-XS-2.3/t/12_blessed.t x JSON-XS-2.3/t/11_pc_expo.t x JSON-XS-2.3/t/20_faihu.t x JSON-XS-2.3/COPYING x JSON-XS-2.3/Changes x JSON-XS-2.3/MANIFEST x JSON-XS-2.3/XS/ x JSON-XS-2.3/XS/Boolean.pm x JSON-XS-2.3/typemap x JSON-XS-2.3/eg/ x JSON-XS-2.3/eg/bench x JSON-XS-2.3/XS.xs x JSON-XS-2.3/XS.pm x JSON-XS-2.3/bin/ x JSON-XS-2.3/bin/json_xs x JSON-XS-2.3/README x JSON-XS-2.3/Makefile.PL x JSON-XS-2.3/META.yml x JSON-XS-2.3/META.json CPAN: File::Temp loaded ok (v0.22) CPAN.pm: Going to build M/ML/MLEHMANN/JSON-XS-2.3.tar.gz Checking if your kit is complete... Looks good Writing Makefile for JSON::XS Could not read '/Users/pktm/Library/Application Support/.cpan/build/JSON-XS-2.3-pXdrKb/META.yml'. Falling back to other methods to determine prerequisites cp XS/Boolean.pm blib/lib/JSON/XS/Boolean.pm cp XS.pm blib/lib/JSON/XS.pm /usr/bin/perl /Library/Perl/Updates/5.10.0/ExtUtils/xsubpp -typemap /System/Library/Perl/5.10.0/ExtUtils/typemap -typemap typemap XS.xs > XS.xsc && mv XS.xsc XS.c gcc-4.2 -c -arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -Os -DVERSION=\"2.3\" -DXS_VERSION=\"2.3\" "-I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE" XS.c XS.xs: In function ‘json_init’: XS.xs:109: warning: format not a string literal and no format arguments XS.xs: In function ‘shrink’: XS.xs:135: warning: format not a string literal and no format arguments XS.xs: In function ‘decode_hv’: XS.xs:1316: warning: comparison is always false due to limited range of data type XS.xs: In function ‘decode_json’: XS.xs:1608: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘STRLEN’ XS.xs: In function ‘XS_JSON__XS_incr_parse’: XS.xs:1974: warning: format not a string literal and no format arguments XS.xs: In function ‘json_init’: XS.xs:109: warning: format not a string literal and no format arguments XS.xs: In function ‘shrink’: XS.xs:135: warning: format not a string literal and no format arguments XS.xs: In function ‘encode_sv’: XS.xs:841: warning: format ‘%x’ expects type ‘unsigned int’, but argument 3 has type ‘U32’ XS.xs: In function ‘decode_hv’: XS.xs:1316: warning: comparison is always false due to limited range of data type XS.xs: In function ‘decode_json’: XS.xs:1608: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘STRLEN’ XS.xs: In function ‘XS_JSON__XS_incr_parse’: XS.xs:1974: warning: format not a string literal and no format arguments XS.xs: In function ‘json_init’: XS.xs:109: warning: format not a string literal and no format arguments XS.xs: In function ‘shrink’: XS.xs:135: warning: format not a string literal and no format arguments XS.xs: In function ‘encode_sv’: XS.xs:841: warning: format ‘%x’ expects type ‘unsigned int’, but argument 3 has type ‘U32’ XS.xs: In function ‘decode_hv’: XS.xs:1316: warning: comparison is always false due to limited range of data type XS.xs: In function ‘decode_json’: XS.xs:1608: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘STRLEN’ XS.xs: In function ‘XS_JSON__XS_incr_parse’: XS.xs:1974: warning: format not a string literal and no format arguments Running Mkbootstrap for JSON::XS () chmod 644 XS.bs rm -f blib/arch/auto/JSON/XS/XS.bundle gcc-4.2 -mmacosx-version-min=10.6 -arch x86_64 -arch i386 -arch ppc -bundle -undefined dynamic_lookup -L/usr/local/lib XS.o -o blib/arch/auto/JSON/XS/XS.bundle \ \ chmod 755 blib/arch/auto/JSON/XS/XS.bundle cp XS.bs blib/arch/auto/JSON/XS/XS.bs chmod 644 blib/arch/auto/JSON/XS/XS.bs cp bin/json_xs blib/script/json_xs /usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/json_xs Manifying blib/man1/json_xs.1 Manifying blib/man3/JSON::XS::Boolean.3pm Manifying blib/man3/JSON::XS.3pm MLEHMANN/JSON-XS-2.3.tar.gz /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00_load.t ............. ok t/01_utf8.t ............. ok t/02_error.t ............ ok t/03_types.t ............ ok t/04_dwiw_encode.t ...... ok t/05_dwiw_decode.t ...... ok t/06_pc_pretty.t ........ ok t/07_pc_esc.t ........... ok t/08_pc_base.t .......... ok t/09_pc_extra_number.t .. ok t/10_pc_keysort.t ....... ok t/11_pc_expo.t .......... ok t/12_blessed.t .......... ok t/13_limit.t ............ ok t/14_latin1.t ........... ok t/15_prefix.t ........... ok t/16_tied.t ............. ok t/17_relaxed.t .......... ok t/18_json_checker.t ..... ok t/19_incr.t ............. ok t/20_faihu.t ............ ok t/21_evans.t ............ ok t/22_comment_at_eof.t ... ok t/99_binary.t ........... ok All tests successful. Files=24, Tests=25564, 4 wallclock secs ( 2.25 usr 0.12 sys + 2.68 cusr 0.21 csys = 5.26 CPU) Result: PASS MLEHMANN/JSON-XS-2.3.tar.gz /usr/bin/make test -- OK Running make install Prepending /Users/pktm/Library/Application Support/.cpan/build/JSON-XS-2.3-pXdrKb/blib/arch /Users/pktm/Library/Application Support/.cpan/build/JSON-XS-2.3-pXdrKb/blib/lib to PERL5LIB for 'install' Files found in blib/arch: installing files in blib/lib into architecture dependent library tree Installing /Library/Perl/5.10.0/darwin-thread-multi-2level/auto/JSON/XS/XS.bundle Installing /Library/Perl/5.10.0/darwin-thread-multi-2level/JSON/XS.pm Installing /usr/local/share/man/man1/json_xs.1 Installing /usr/local/share/man/man3/JSON::XS.3pm Installing /usr/local/bin/json_xs Appending installation info to /Library/Perl/Updates/5.10.0/darwin-thread-multi-2level/perllocal.pod MLEHMANN/JSON-XS-2.3.tar.gz /usr/bin/make install -- OK cpan[3]>
Subject: Module_Build_Config.pm.txt
package Module::Build::Config; use strict; use vars qw($VERSION); $VERSION = '0.3607'; $VERSION = eval $VERSION; use Config; sub new { my ($pack, %args) = @_; return bless { stack => {}, values => $args{values} || {}, }, $pack; } sub get { my ($self, $key) = @_; return $self->{values}{$key} if ref($self) && exists $self->{values}{$key}; return $Config{$key}; } sub set { my ($self, $key, $val) = @_; $self->{values}{$key} = $val; } sub push { my ($self, $key, $val) = @_; push @{$self->{stack}{$key}}, $self->{values}{$key} if exists $self->{values}{$key}; $self->{values}{$key} = $val; } sub pop { my ($self, $key) = @_; my $val = delete $self->{values}{$key}; if ( exists $self->{stack}{$key} ) { $self->{values}{$key} = pop @{$self->{stack}{$key}}; delete $self->{stack}{$key} unless @{$self->{stack}{$key}}; } return $val; } sub values_set { my $self = shift; return undef unless ref($self); return $self->{values}; } sub all_config { my $self = shift; my $v = ref($self) ? $self->{values} : {}; return {%Config, %$v}; } 1;
Subject: 3files.zip
Download 3files.zip
application/zip 4.2k

Message body not shown because it is not plain text.

Hi, Thanks, but there are not the Config.pm and config_heavy.pl files that were needed, these files are core perl stuff, not automake or anything... I can see though that JSON::XS is getting built successully because it has /System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE in include path, whereas Prima doesn't. In order to see what is really wrong, I need those config files. If you need just to compile Prima there, try re-running "perl Makefile.PL INCPATH+=/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE", should help. Thanks again!
Please try this diff: --- Makefile.PL 15 Jun 2010 17:30:39 -0000 1.223 +++ Makefile.PL 17 Dec 2010 12:07:55 -0000 @@ -849,7 +849,7 @@ setvar( 'INCPATH', ( "include", qd( "include/generic"), - $Config{installarchlib} . qd( "/CORE"), + $Config{archlib} . qd( "/CORE"), ( map { s/-I//; $_ } split ' ', $INC) )); my @libpaths = quoted_split( $Config{ libpth}); nb: it would've been much faster and easier for me if I could see that Config_heavy.pl .
Subject: diff
Download diff
application/octet-stream 567b

Message body not shown because it is not plain text.

fixed
Am Di 21. Dez 2010, 06:03:14, KARASIK schrieb: Show quoted text
> fixed
Kind of :) Sorry for the lack of response, RL has me and there is the problem, that I can access the mac only at work. And coding isn't my primary purpose here. So, I applied your diff and there was lots of output. Attached, you will find the log starting with the tests. Would you like to release it? I would like to test if it works when installing via cpan, too (because of the failed tests). hth & thanks
Subject: it_works.png
Download it_works.png
image/png 14.7k
it_works.png
Subject: prima_log.txt

Message body is not shown because it is too large.

Seems more or less ok to me. Fonts and Windows test are expected and not to be reacted on. Image is really strange - some problems with some linked graphics library apparently. You could identify the library to be resinatlled/recompiled by running individual tests as perl test/Tester.pl test/Image/Codec.t -v I can't reproduce these. Can't reproduce Clipboard bug either. I can reproduce Application bug though, and it's a bugger thing than just a small bug - apparently, drawing on root (above all windows) is not allowed or not implemented in macos.