Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Perl / July 2005



Tip: Looking for answers? Try searching our database.

psync and MacOSX::File installing with cpan

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joseph Alotta - 09 Jul 2005 04:16 GMT
Greetings,

I was thinking it was about time to do a backup and I was trying to  
run psync on Tiger and I got this:

Can't locate MacOSX/File.pm in @INC (@INC contains: /System/Library/
Perl/5.8.6/darwin-thread-multi-2level /System/Library/Perl/5.8.6 /
Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6 /
Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level /
Network/Library/Perl/5.8.6 /Network/Library/Perl /System/Library/Perl/
Extras/5.8.6/darwin-thread-multi-2level /System/Library/Perl/Extras/
5.8.6 /Library/Perl/5.8.1 .) at /Users/jja/bin/psync line 15.
BEGIN failed--compilation aborted at /Users/jja/bin/psync line 15.

So I tried to install MacOSX::File and got these errors.  Does anyone  
know what I am doing wrong?

Joe.

cpan> install MacOSX::File
Running install for module MacOSX::File
Running make for D/DA/DANKOGAI/MacOSX-File-0.69.tar.gz
LWP not available
Fetching with Net::FTP:
  ftp://archive.progeny.com/CPAN/authors/id/D/DA/DANKOGAI/MacOSX-
File-0.69.tar.gz
CPAN: Digest::MD5 loaded ok
LWP not available
Fetching with Net::FTP:
  ftp://archive.progeny.com/CPAN/authors/id/D/DA/DANKOGAI/CHECKSUMS
Checksum for /Users/jja/.cpan/sources/authors/id/D/DA/DANKOGAI/MacOSX-
File-0.69.tar.gz ok
Scanning cache /Users/jja/.cpan/build for sizes
MacOSX-File-0.69/
MacOSX-File-0.69/bin/
MacOSX-File-0.69/bin/pcpmac
MacOSX-File-0.69/bin/pgetfinfo
MacOSX-File-0.69/bin/pmvmac
MacOSX-File-0.69/bin/psetfinfo
MacOSX-File-0.69/bin/psync
MacOSX-File-0.69/Catalog/
MacOSX-File-0.69/Catalog/Catalog.pm
MacOSX-File-0.69/Catalog/Catalog.xs
MacOSX-File-0.69/Catalog/Makefile.PL
MacOSX-File-0.69/Changes
MacOSX-File-0.69/common/
MacOSX-File-0.69/common/macdate.c
MacOSX-File-0.69/common/util.c
MacOSX-File-0.69/Copy/
MacOSX-File-0.69/Copy/Copy.pm
MacOSX-File-0.69/Copy/Copy.xs
MacOSX-File-0.69/Copy/filecopy.c
MacOSX-File-0.69/Copy/Makefile.PL
MacOSX-File-0.69/File/
MacOSX-File-0.69/File/Constants.pm
MacOSX-File-0.69/File.pm
MacOSX-File-0.69/Info/
MacOSX-File-0.69/Info/Info.pm
MacOSX-File-0.69/Info/Info.xs
MacOSX-File-0.69/Info/Makefile.PL
MacOSX-File-0.69/Makefile.PL
MacOSX-File-0.69/MANIFEST
MacOSX-File-0.69/META.yml
MacOSX-File-0.69/README
MacOSX-File-0.69/Spec/
MacOSX-File-0.69/Spec/Makefile.PL
MacOSX-File-0.69/Spec/Spec.pm
MacOSX-File-0.69/Spec/Spec.xs
MacOSX-File-0.69/t/
MacOSX-File-0.69/t/benchmark.pl
MacOSX-File-0.69/t/catalog.t
MacOSX-File-0.69/t/copy.t
MacOSX-File-0.69/t/file.t
MacOSX-File-0.69/t/info.t
MacOSX-File-0.69/t/spec.t

  CPAN.pm: Going to build D/DA/DANKOGAI/MacOSX-File-0.69.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for MacOSX::File::Catalog
Writing Makefile for MacOSX::File::Copy
Writing Makefile for MacOSX::File::Info
Writing Makefile for MacOSX::File::Spec
Writing Makefile for MacOSX::File
cp File.pm blib/lib/MacOSX/File.pm
cp File/Constants.pm blib/lib/MacOSX/File/Constants.pm
AutoSplitting blib/lib/MacOSX/File/Constants.pm (blib/lib/auto/MacOSX/
File/Constants)
cp Catalog.pm ../blib/lib/MacOSX/File/Catalog.pm
AutoSplitting ../blib/lib/MacOSX/File/Catalog.pm (../blib/lib/auto/
MacOSX/File/Catalog)
/usr/bin/perl /System/Library/Perl/5.8.6/ExtUtils/xsubpp  -typemap /
System/Library/Perl/5.8.6/ExtUtils/typemap  Catalog.xs > Catalog.xsc  
&& mv Catalog.xsc Catalog.c
cc -c  -I../ -I/Developer/Headers/FlatCarbon -g -pipe -fno-common -
DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/
include -Os   -DVERSION=\"0.68\" -DXS_VERSION=\"0.68\"  "-I/System/
Library/Perl/5.8.6/darwin-thread-multi-2level/CORE"   Catalog.c
In file included from Catalog.xs:16:
../common/util.c: In function 'dirname':
../common/util.c:57: warning: pointer targets in passing argument 1  
of 'strncpy' differ in signedness
../common/util.c:60: warning: pointer targets in return differ in  
signedness
../common/util.c: In function 'basename':
../common/util.c:73: warning: pointer targets in passing argument 1  
of 'strncpy' differ in signedness
../common/util.c:75: warning: pointer targets in return differ in  
signedness
../common/util.c: In function 'str2pstr':
../common/util.c:80: warning: pointer targets in passing argument 1  
of 'strlen' differ in signedness
../common/util.c:81: warning: pointer targets in passing argument 1  
of 'strncpy' differ in signedness
../common/util.c:81: warning: pointer targets in passing argument 2  
of 'strncpy' differ in signedness
In file included from Catalog.xs:17:
../common/macdate.c: In function 'D2UDT':
../common/macdate.c:30: warning: integer constant is too large for  
'long' type
Catalog.xs: In function 'xs_getcatalog':
Catalog.xs:34: warning: pointer targets in passing argument 1 of  
'FSPathMakeRef' differ in signedness
Catalog.xs: In function 'xs_setcatalog':
Catalog.xs:128: warning: pointer targets in passing argument 1 of  
'FSPathMakeRef' differ in signedness
Catalog.xs: In function 'xs_fsref2path':
Catalog.xs:242: warning: pointer targets in passing argument 2 of  
'FSRefMakePath' differ in signedness
Catalog.xs: In function 'XS_MacOSX__File__Catalog_xs_setcatalog':
Catalog.xs:263: warning: assignment makes pointer from integer  
without a cast
Running Mkbootstrap for MacOSX::File::Catalog ()
chmod 644 Catalog.bs
rm -f ../blib/arch/auto/MacOSX/File/Catalog/Catalog.bundle
LD_RUN_PATH="" env MACOSX_DEPLOYMENT_TARGET=10.3 cc  -bundle -
flat_namespace -undefined suppress -framework Carbon Catalog.o  -o ../
blib/arch/auto/MacOSX/File/Catalog/Catalog.bundle
chmod 755 ../blib/arch/auto/MacOSX/File/Catalog/Catalog.bundle
cp Catalog.bs ../blib/arch/auto/MacOSX/File/Catalog/Catalog.bs
chmod 644 ../blib/arch/auto/MacOSX/File/Catalog/Catalog.bs
Manifying ../blib/man3/MacOSX::File::Catalog.3pm
cp Copy.pm ../blib/lib/MacOSX/File/Copy.pm
/usr/bin/perl /System/Library/Perl/5.8.6/ExtUtils/xsubpp  -typemap /
System/Library/Perl/5.8.6/ExtUtils/typemap  Copy.xs > Copy.xsc && mv  
Copy.xsc Copy.c
cc -c  -I../ -I/Developer/Headers/FlatCarbon -g -pipe -fno-common -
DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/
include -Os   -DVERSION=\"0.68\" -DXS_VERSION=\"0.68\"  "-I/System/
Library/Perl/5.8.6/darwin-thread-multi-2level/CORE"   Copy.c
In file included from Copy.xs:12:
../common/util.c: In function 'dirname':
../common/util.c:57: warning: pointer targets in passing argument 1  
of 'strncpy' differ in signedness
../common/util.c:60: warning: pointer targets in return differ in  
signedness
../common/util.c: In function 'basename':
../common/util.c:73: warning: pointer targets in passing argument 1  
of 'strncpy' differ in signedness
../common/util.c:75: warning: pointer targets in return differ in  
signedness
../common/util.c: In function 'str2pstr':
../common/util.c:80: warning: pointer targets in passing argument 1  
of 'strlen' differ in signedness
../common/util.c:81: warning: pointer targets in passing argument 1  
of 'strncpy' differ in signedness
../common/util.c:81: warning: pointer targets in passing argument 2  
of 'strncpy' differ in signedness
In file included from Copy.xs:13:
filecopy.c: In function 'newfile':
filecopy.c:63: warning: pointer targets in passing argument 1 of  
'FSPathMakeRef' differ in signedness
filecopy.c:66: warning: pointer targets in passing argument 1 of  
'Utf8toUni' differ in signedness
filecopy.c:77: warning: pointer targets in passing argument 1 of  
'FSPathMakeRef' differ in signedness
filecopy.c: In function 'filecopy':
filecopy.c:177: warning: pointer targets in passing argument 1 of  
'FSPathMakeRef' differ in signedness
Running Mkbootstrap for MacOSX::File::Copy ()
chmod 644 Copy.bs
rm -f ../blib/arch/auto/MacOSX/File/Copy/Copy.bundle
LD_RUN_PATH="" env MACOSX_DEPLOYMENT_TARGET=10.3 cc  -bundle -
flat_namespace -undefined suppress -framework Carbon Copy.o  -o ../
blib/arch/auto/MacOSX/File/Copy/Copy.bundle
chmod 755 ../blib/arch/auto/MacOSX/File/Copy/Copy.bundle
cp Copy.bs ../blib/arch/auto/MacOSX/File/Copy/Copy.bs
chmod 644 ../blib/arch/auto/MacOSX/File/Copy/Copy.bs
Manifying ../blib/man3/MacOSX::File::Copy.3pm
cp Info.pm ../blib/lib/MacOSX/File/Info.pm
AutoSplitting ../blib/lib/MacOSX/File/Info.pm (../blib/lib/auto/
MacOSX/File/Info)
/usr/bin/perl /System/Library/Perl/5.8.6/ExtUtils/xsubpp  -typemap /
System/Library/Perl/5.8.6/ExtUtils/typemap  Info.xs > Info.xsc && mv  
Info.xsc Info.c
cc -c  -I../ -I/Developer/Headers/FlatCarbon -g -pipe -fno-common -
DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/
include -Os   -DVERSION=\"0.68\" -DXS_VERSION=\"0.68\"  "-I/System/
Library/Perl/5.8.6/darwin-thread-multi-2level/CORE"   Info.c
In file included from Info.xs:16:
../common/util.c: In function 'dirname':
../common/util.c:57: warning: pointer targets in passing argument 1  
of 'strncpy' differ in signedness
../common/util.c:60: warning: pointer targets in return differ in  
signedness
../common/util.c: In function 'basename':
../common/util.c:73: warning: pointer targets in passing argument 1  
of 'strncpy' differ in signedness
../common/util.c:75: warning: pointer targets in return differ in  
signedness
../common/util.c: In function 'str2pstr':
../common/util.c:80: warning: pointer targets in passing argument 1  
of 'strlen' differ in signedness
../common/util.c:81: warning: pointer targets in passing argument 1  
of 'strncpy' differ in signedness
../common/util.c:81: warning: pointer targets in passing argument 2  
of 'strncpy' differ in signedness
In file included from Info.xs:17:
../common/macdate.c: In function 'D2UDT':
../common/macdate.c:30: warning: integer constant is too large for  
'long' type
Info.xs: In function 'xs_getfinfo':
Info.xs:35: warning: pointer targets in passing argument 1 of  
'FSPathMakeRef' differ in signedness
Info.xs:63: warning: pointer targets in passing argument 2 of  
'Perl_newSVpv' differ in signedness
Info.xs:64: warning: pointer targets in passing argument 2 of  
'Perl_newSVpv' differ in signedness
Info.xs: In function 'xs_setfinfo':
Info.xs:94: warning: pointer targets in passing argument 1 of  
'FSPathMakeRef' differ in signedness
Running Mkbootstrap for MacOSX::File::Info ()
chmod 644 Info.bs
rm -f ../blib/arch/auto/MacOSX/File/Info/Info.bundle
LD_RUN_PATH="" env MACOSX_DEPLOYMENT_TARGET=10.3 cc  -bundle -
flat_namespace -undefined suppress -framework Carbon Info.o  -o ../
blib/arch/auto/MacOSX/File/Info/Info.bundle
chmod 755 ../blib/arch/auto/MacOSX/File/Info/Info.bundle
cp Info.bs ../blib/arch/auto/MacOSX/File/Info/Info.bs
chmod 644 ../blib/arch/auto/MacOSX/File/Info/Info.bs
Manifying ../blib/man3/MacOSX::File::Info.3pm
cp Spec.pm ../blib/lib/MacOSX/File/Spec.pm
AutoSplitting ../blib/lib/MacOSX/File/Spec.pm (../blib/lib/auto/
MacOSX/File/Spec)
/usr/bin/perl /System/Library/Perl/5.8.6/ExtUtils/xsubpp  -typemap /
System/Library/Perl/5.8.6/ExtUtils/typemap  Spec.xs > Spec.xsc && mv  
Spec.xsc Spec.c
cc -c  -I../ -I/Developer/Headers/FlatCarbon -g -pipe -fno-common -
DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/
include -Os   -DVERSION=\"0.68\" -DXS_VERSION=\"0.68\"  "-I/System/
Library/Perl/5.8.6/darwin-thread-multi-2level/CORE"   Spec.c
In file included from Spec.xs:14:
../common/util.c: In function 'dirname':
../common/util.c:57: warning: pointer targets in passing argument 1  
of 'strncpy' differ in signedness
../common/util.c:60: warning: pointer targets in return differ in  
signedness
../common/util.c: In function 'basename':
../common/util.c:73: warning: pointer targets in passing argument 1  
of 'strncpy' differ in signedness
../common/util.c:75: warning: pointer targets in return differ in  
signedness
../common/util.c: In function 'str2pstr':
../common/util.c:80: warning: pointer targets in passing argument 1  
of 'strlen' differ in signedness
../common/util.c:81: warning: pointer targets in passing argument 1  
of 'strncpy' differ in signedness
../common/util.c:81: warning: pointer targets in passing argument 2  
of 'strncpy' differ in signedness
Spec.xs: In function 'new':
Spec.xs:27: warning: pointer targets in passing argument 1 of  
'FSPathMakeRef' differ in signedness
Spec.xs: In function 'name':
Spec.xs:67: warning: pointer targets in passing argument 2 of  
'Perl_newSVpv' differ in signedness
Spec.xs: In function 'path':
Spec.xs:80: warning: pointer targets in passing argument 2 of  
'FSRefMakePath' differ in signedness
Running Mkbootstrap for MacOSX::File::Spec ()
chmod 644 Spec.bs
rm -f ../blib/arch/auto/MacOSX/File/Spec/Spec.bundle
LD_RUN_PATH="" env MACOSX_DEPLOYMENT_TARGET=10.3 cc  -bundle -
flat_namespace -undefined suppress -framework Carbon Spec.o  -o ../
blib/arch/auto/MacOSX/File/Spec/Spec.bundle
chmod 755 ../blib/arch/auto/MacOSX/File/Spec/Spec.bundle
cp Spec.bs ../blib/arch/auto/MacOSX/File/Spec/Spec.bs
chmod 644 ../blib/arch/auto/MacOSX/File/Spec/Spec.bs
Manifying ../blib/man3/MacOSX::File::Spec.3pm
cp bin/pgetfinfo blib/script/pgetfinfo
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/
pgetfinfo
cp bin/psetfinfo blib/script/psetfinfo
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/
psetfinfo
cp bin/pcpmac blib/script/pcpmac
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/pcpmac
cp bin/pmvmac blib/script/pmvmac
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/pmvmac
cp bin/psync blib/script/psync
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/psync
Manifying blib/man1/pgetfinfo.1
Manifying blib/man1/psetfinfo.1
Manifying blib/man1/pcpmac.1
Manifying blib/man1/pmvmac.1
Manifying blib/man1/psync.1
Manifying blib/man3/MacOSX::File::Constants.3pm
Manifying blib/man3/MacOSX::File.3pm
  /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/catalog....NOK 4# Failed test 4 in t/catalog.t at line 33
#  t/catalog.t line 33 is: $asked eq "avbstcLinmed" ? ok(1) : ok(0);
t/catalog....FAILED test 4
        Failed 1/7 tests, 85.71% okay
t/copy.......ok
t/file.......ok
t/info.......NOK 7# Failed test 7 in t/info.t at line 38
#  t/info.t line 38 is: ok($asked eq "avbstcLinmed");
t/info.......FAILED test 7
        Failed 1/10 tests, 90.00% okay
t/spec.......ok
Failed Test Stat Wstat Total Fail  Failed  List of Failed
------------------------------------------------------------------------
-------
t/catalog.t                7    1  14.29%  4
t/info.t                  10    1  10.00%  7
Failed 2/5 test scripts, 60.00% okay. 2/29 subtests failed, 93.10% okay.
make: *** [test_dynamic] Error 2
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force
Chris Devers - 09 Jul 2005 04:56 GMT
> So I tried to install MacOSX::File and got these errors.  Does anyone know
> what I am doing wrong?

I get the same result:

    macgarnicle:~/.cpan/build/MacOSX-File-0.69 root# make test
    PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
    "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
    t/catalog....ok 3/7# Failed test 4 in t/catalog.t at line 33
    #  t/catalog.t line 33 is: $asked eq "avbstcLinmed" ? ok(1) : ok(0);
    t/catalog....FAILED test 4
            Failed 1/7 tests, 85.71% okay
    t/copy.......ok
    t/file.......ok
    t/info.......ok 6/10# Failed test 7 in t/info.t at line 38
    #  t/info.t line 38 is: ok($asked eq "avbstcLinmed");
    t/info.......FAILED test 7
            Failed 1/10 tests, 90.00% okay
    t/spec.......ok
    Failed Test Stat Wstat Total Fail  Failed  List of Failed
    -----------------------------------------------------------------------------------------
    t/catalog.t                7    1  14.29%  4
    t/info.t                  10    1  10.00%  7
    Failed 2/5 test scripts, 60.00% okay. 2/29 subtests failed, 93.10% okay.
    make: *** [test_dynamic] Error 2
    macgarnicle:~/.cpan/build/MacOSX-File-0.69 root#

We both got failures on t/catalog 3/7 and t/info 6/10.

The first failed test is:

    use MacOSX::File::Catalog;
    ...
    my $asked = askgetfileinfo("dummy");
    $asked eq "avbstcLinmed" ? ok(1) : ok(0);

The second failed test is nearly identical:

    use MacOSX::File;
    use MacOSX::File::Info;
    ...
    my $asked = askgetfileinfo("dummy");
    ok($asked eq "avbstcLinmed");

So... something wrong with askgetfileinfo() on Tiger maybe ?

Signature

Chris Devers

Dan Kogai - 09 Jul 2005 06:52 GMT
Folks,

> The first failed test is:
>
[quoted text clipped - 12 lines]
>
> So... something wrong with askgetfileinfo() on Tiger maybe ?

Looks like on Tiger there appeared one more attribute 'z',

man GetFileInfo
>    z        Busy (allowed on folders)

I will come up w/ a workaround so please wait for a while...

Dan the Maintainer Thereof
Ken Williams - 12 Jul 2005 02:15 GMT
> The first failed test is:
>
>     use MacOSX::File::Catalog;
>     ...
>     my $asked = askgetfileinfo("dummy");
>     $asked eq "avbstcLinmed" ? ok(1) : ok(0);

Dan, it would be helpful if you'd just write lines like this simply as:

   ok $asked, "avbstcLinmed";

because then people can turn on TEST_VERBOSE=1 and see how the output
differs from the expected output.

 -Ken
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.