On Thursday, August 15, 2002, at 12:16 PM, Alex Rice wrote:
>
> On Thursday, August 15, 2002, at 12:40 PM, Edward Moy wrote:
>
>>
>> Try:
>>
>> #!/usr/bin/perl
>> BEGIN { $ENV{'DYLD_FORCE_FLAT_NAMESPACE'} = 1; } # set at compile
>> time
>> use mapscript;
>> use DBI;
>> print DBI->data_sources('Pg');
>
> Edward, thanks, although I've tried using BEGIN{}. However it does not
> work as expected! Instead I'm using Apache's SetEnv directive to do
> the job.
>
> % cat test.pl
> #!/usr/bin/perl
> BEGIN { $ENV{'DYLD_FORCE_FLAT_NAMESPACE'} = 1; } # set at compile
> time
>
> use mapscript;
> use DBI;
> print DBI->data_sources('Pg');
>
> % ./test.pl
> dyld: perl multiple definitions of symbol _DLAddHead
> /Library/Perl/darwin/auto/mapscript/mapscript.bundle definition of
> _DLAddHead
> /Library/Perl/darwin/auto/DBD/Pg/Pg.bundle definition of _DLAddHead
>
> Alex Rice, Software Developer
> Architectural Research Consultants, Inc.
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
Ah yes, you need to have that environment variable set *before* you
call perl. It make sense.
------------------------------------------------------------------------
--
Edward Moy
Apple Computer, Inc.
[EMAIL PROTECTED]
(This message is from me as a reader of this list, and not a statement
from Apple.)