Page 1 of 1

**** ERROR **** PerlObjCBridge: convertPerlToObjC(): Referen

Posted: Wed Sep 28, 2005 2:44 am
by ChitownMacTech
I'm trying to install the Growl 0.7.2 on Mac OS X 10.4.2 and X-Chat Aqua Perl extra and when I go to install Mac::Growl when I do "sudo make test" I get the following error:

Code: Select all

[adam:Bindings/perl/Mac-Growl] adamt% sudo make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/Mac-Growl....ok 1/11**** ERROR **** PerlObjCBridge: convertPerlToObjC(): Referenced thingy not blessed
**** ERROR **** PerlObjCBridge: convertArg() for index 2: convertPerlToObjC() failed
**** ERROR **** PerlObjCBridge: sendObjcMessage: Error converting argument 1 for message "iconForFile:"
**** ERROR **** PerlObjCBridge: error sending message iconForFile: at /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level/PerlObjCBridge.pm line 230, <DATA> line 1.
# Looks like you planned 11 tests but only ran 1.
# Looks like your test died just after 1.
t/Mac-Growl....dubious                                                       
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 2-11
        Failed 10/11 tests, 9.09% okay
Failed Test   Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/Mac-Growl.t  255 65280    11   20 181.82%  2-11
Failed 1/1 test scripts, 0.00% okay. 10/11 subtests failed, 9.09% okay.
make: *** [test_dynamic] Error 2
Anyone else running into this?

What's the fix?

Growl works in the OS X GUI, but it seems the Perl setup won't work on my machine for some reason.

Posted: Wed Sep 28, 2005 4:14 pm
by The_Tick
Do you have a custom perl installed?

What os version is this?

Posted: Wed Sep 28, 2005 5:20 pm
by ChitownMacTech
Nothing custom that I installed purposely or that I remember installing that messed w/ Perl.

I have this exact same problem happening on two machines (same OS version 10.4.2).

I had trouble making the "make" file. It seems the Pref Pane will not run if you check off "Enable Logging" and send it to the console log. After I unchecked that Growl worked in the GUI and the command line acknowledged it was running (it wasn't before).

Next during the "make" process it asked me to run ./gluedialect and gluescriptadds, which I did, and then it didn't complain about that anymore.

But I still get the above error when doing sudo make test

This is on Mac OS X 10.4.2

The Perl version that ships with it is this (output from perl -V):

Code: Select all

Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
  Platform:
    osname=darwin, osvers=8.0, archname=darwin-thread-multi-2level
    uname='darwin b28.apple.com 8.0 darwin kernel version 7.5.0: thu mar 3 18:48:46 pst 2005; root:xnuxnu-517.99.13.obj~1release_ppc power macintosh powerpc '
    config_args='-ds -e -Dprefix=/usr -Dccflags=-g  -pipe  -Dldflags=-Dman3ext=3pm -Duseithreads -Duseshrplib'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef 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='cc', ccflags ='-g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include',
    optimize='-Os',
    cppflags='-no-cpp-precomp -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build 1809)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    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 -lc
    perllibs=-ldl -lm -lc
    libc=/usr/lib/libc.dylib, 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 -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
  Locally applied patches:
        23953 - fix for File::Path::rmtree CAN-2004-0452 security issue
        33990 - fix for setuid perl security issues
  Built under darwin
  Compiled at Mar 20 2005 16:34:19
  @INC:
    /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
Another person here is having a similar problem with Perl but there doesn't seem to be any answer. And this guy is having the problem (in french; I had to use Babelfish) but doesn't seem to have solved it either and it appeared to have something to do with Fink. I'm not running fink so that's not it either.

Any ideas?

Has Growl been tested with Tiger (10.4)?

Posted: Wed Sep 28, 2005 6:22 pm
by pudge
First, that thing you linked to on nntp.perl.org was a different problem entirely. You showed no problems with Mac::Glue. Your problems are with Foundation/PerlObjC, which is something that is supplied with Mac OS X, and is something that the source to which is not available.

Which brings me to the next point: make sure your Xcode Tools are updated, and make sure you have the latest Mac::Growl from the CPAN or from the growl source repository. I can't tell what version you have there, or where you got it from. But 0.65 is the latest.

Lastly, you could always -- in this case -- install anyway, even with the bad Foundation/PerlObjC tests, because for X-Chat, Foundation is not compatible in my tests (dunno why ... something to do with the embedded perl in X-Chat), so Mac::Glue is used instead.

Posted: Wed Sep 28, 2005 7:19 pm
by ChitownMacTech
Thanks for the reply pudge.

I realize that the other two links I referenced don't apply to Growl/Mac::Glue, but they gave the same Perl error so I thought they might have some clue or relevance to my problem.

My XCode is the latest (updated) version that came with OS 10.4. I don't know where to get Mac::Growl other than this web site.

I'm following the instructions from this web page:http://growl.info/documentation/developer/mac-growl.php with the Growl SDK files hosted here.

I did what you suggested and ignored the errors and just ran make install and it appears to have worked with X-Chat (at least it loaded and registered w/Growl).