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]


Reply via email to