mpeppler has asked for the wisdom of the Perl Monks concerning the following question:

I've never used a Mac so I come looking for some help here...

I've got a user who is trying to build DBD::Sybase on MacOSX 10.3.4 with a recent version of Sybase. The build itself works fine, but make test fails due to missing symbols in the binary:

sh-2.05b$ make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_ +harness(0, 'blib/lib', 'blib/arch')" t/*.tt/autocommit....dyld: /usr/ +bin/perl Undefined symbols:blib/arch/auto/DBD/Sybase/Sybase.bundle un +defined reference to _CFBundleCopyBundleURL expected to be defined i +n a dynamic image blib/arch/auto/DBD/Sybase/Sybase.bundle undefined reference to _CFBun +dleGetBundleWithIdentifier expected to be defined in a dynamic image ...
I would expect this to be a fairly simple problem, but I don't know where to start as MacOSX appears to be somewhat different from "normal" Unix...

Thanks!

Michael

Replies are listed 'Best First'.
Re: Building DBD::Sybase on MacOSX 10.3.4
by mpeppler (Vicar) on Aug 12, 2004 at 12:28 UTC
    Replying to myself - in case someone does a super search on this item...

    Certain distributions of Sybase on MacOSX omit the dynamic load libraries (.dyld), but include a Cocoa framework (I think that's the right term...). In that situation you have to add -framework CoreFoundation to the LDLOADLIBS and/or EXTRALIBS macro in the Makefile that is generated by perl Makefile.PL, and then rebuild.

    Michael

Re: Building DBD::Sybase on MacOSX 10.3.4
by jfroebe (Parson) on Aug 11, 2004 at 17:02 UTC

    Hey Michael

    You got a response on news://forums.sybase.com/sybase.public.macosx - I don't have access to it from here... I saw the response this morning

    No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1

      Thanks - yes, I saw that.

      Michael