Hi,

If you have not resolved this yet ...

I assume you are using the Enterprise DB one click installer - that gives you 32bit binaries ?

The preferred solution is to build PostreSQL from scratch on your system - but you should be able to get the Enterprise DB stuff working.

To build DBD::Pg, first you have to set OSX Perl to run in 32 bit mode:

export VERSIONER_PERL_PREFER_32_BIT=yes

Then you need to be able to restrict architectures
- install ExtUtils::FakeConfig

cpan ExtUtils::FakeConfig

put the attached Config_osx.pm in your @INC somewhere.
(it will be part of the next ExtUtils::FakeConfig release that has not quite made it to CPAN yet)

set the architectures

export FAKECONFIG_USE_ARCHITECTURES="ppc i386"

than done, you should be able to build DBD::Pg

perl -MConfig_osx Makefile.PL


You will have to run any perl script that uses DBD::Pg within an environment that has VERSIONER_PERL_PREFER_32_BIT=yes. You can set this system wide (Google the var name) but I'd guess this is undesirable.

Note - I'm not recommending the above - simply noting that it is probably possible to build DBD::Pg with what you have.



Mark


On 19/01/2010 13:24, Farrer, Rhys wrote:
Dear DBD-Pg people,

I am getting some error messages when I try and instal DBD Pg, and I believe 
this is why I am unable to get other programs (Namely Chado for Gbrowse) to 
work later on. Are the error messages below typical or not a problem, if they 
are a problem have you any idea how I might get round this. I am running Mac, 
10.6.2

Thanks in advance,
Rhys

rhys-farrers-imac:DBD-Pg-2.16.0 rhysfarrer$ perl Makefile.PL
Configuring DBD::Pg 2.16.0
PostgreSQL version: 80402 (default port: 5432)
POSTGRES_HOME: (not set)
POSTGRES_INCLUDE: /Library/PostgreSQL/8.4/include
POSTGRES_LIB: /Library/PostgreSQL/8.4/lib
OS: darwin
Multiple copies of Driver.xst found in: 
/Library/Perl/5.10.0/darwin-thread-multi-2level/auto/DBI/ 
/System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level/auto/DBI/ at 
Makefile.PL line 167
Checking if your kit is complete...
Looks good
Multiple copies of Driver.xst found in: 
/Library/Perl/5.10.0/darwin-thread-multi-2level/auto/DBI/ 
/System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level/auto/DBI/ at 
Makefile.PL line 265
Using DBI 1.609 (for perl 5.010000 on darwin-thread-multi-2level) installed in 
/Library/Perl/5.10.0/darwin-thread-multi-2level/auto/DBI/
Writing Makefile for DBD::Pg
rhys-farrers-imac:DBD-Pg-2.16.0 rhysfarrer$
rhys-farrers-imac:DBD-Pg-2.16.0 rhysfarrer$ make
gcc-4.2 -c  -I/Library/PostgreSQL/8.4/include -I/Library/Perl/5.10.0/darwin-thread-multi-2level/auto/DBI 
-arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing 
-I/usr/local/include -DPGLIBVERSION=80402 -DPGDEFPORT=5432 -Os  -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc 
-Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"2.16.0\" 
-DXS_VERSION=\"2.16.0\"  "-I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE"  
 Pg.c
gcc-4.2 -c  -I/Library/PostgreSQL/8.4/include -I/Library/Perl/5.10.0/darwin-thread-multi-2level/auto/DBI 
-arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing 
-I/usr/local/include -DPGLIBVERSION=80402 -DPGDEFPORT=5432 -Os  -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc 
-Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"2.16.0\" 
-DXS_VERSION=\"2.16.0\"  "-I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE"  
 dbdimp.c
dbdimp.c: In function ‘pg_db_login’:
dbdimp.c:115: warning: format not a string literal and no format arguments
dbdimp.c:180: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_warn’:
dbdimp.c:311: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_st_STORE_attrib’:
dbdimp.c:1263: warning: format not a string literal and no format arguments
dbdimp.c:1264: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_st_prepare’:
dbdimp.c:1451: warning: format not a string literal and no format arguments
dbdimp.c:1452: warning: format not a string literal and no format arguments
dbdimp.c:1496: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_st_split_statement’:
dbdimp.c:1567: warning: format not a string literal and no format arguments
dbdimp.c:1573: warning: format not a string literal and no format arguments
dbdimp.c:1574: warning: format not a string literal and no format arguments
dbdimp.c:1726: warning: format not a string literal and no format arguments
dbdimp.c:1849: warning: format not a string literal and no format arguments
dbdimp.c:1873: warning: format not a string literal and no format arguments
dbdimp.c:1884: warning: format not a string literal and no format arguments
dbdimp.c:1885: warning: format not a string literal and no format arguments
dbdimp.c:1899: warning: format not a string literal and no format arguments
dbdimp.c:1900: warning: format not a string literal and no format arguments
dbdimp.c:1959: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_st_prepare_statement’:
dbdimp.c:2032: warning: format not a string literal and no format arguments
dbdimp.c:2075: warning: format not a string literal and no format arguments
dbdimp.c:2119: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_bind_ph’:
dbdimp.c:2251: warning: format not a string literal and no format arguments
dbdimp.c:2346: warning: format not a string literal and no format arguments
dbdimp.c:2347: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_destringify_array’:
dbdimp.c:2560: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_st_execute’:
dbdimp.c:2860: warning: format not a string literal and no format arguments
dbdimp.c:2861: warning: format not a string literal and no format arguments
dbdimp.c:2924: warning: format not a string literal and no format arguments
dbdimp.c:2929: warning: format not a string literal and no format arguments
dbdimp.c:2934: warning: format not a string literal and no format arguments
dbdimp.c:2958: warning: format not a string literal and no format arguments
dbdimp.c:2968: warning: format not a string literal and no format arguments
dbdimp.c:2969: warning: format not a string literal and no format arguments
dbdimp.c:3094: warning: format not a string literal and no format arguments
dbdimp.c:3106: warning: format not a string literal and no format arguments
dbdimp.c:3155: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_st_fetch’:
dbdimp.c:3334: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_st_deallocate_statement’:
dbdimp.c:3555: warning: format not a string literal and no format arguments
dbdimp.c:3576: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_db_savepoint’:
dbdimp.c:4041: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_db_rollback_to’:
dbdimp.c:4078: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_db_release’:
dbdimp.c:4115: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_db_login’:
dbdimp.c:115: warning: format not a string literal and no format arguments
dbdimp.c:180: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_warn’:
dbdimp.c:311: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_st_STORE_attrib’:
dbdimp.c:1263: warning: format not a string literal and no format arguments
dbdimp.c:1264: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_st_prepare’:
dbdimp.c:1451: warning: format not a string literal and no format arguments
dbdimp.c:1452: warning: format not a string literal and no format arguments
dbdimp.c:1496: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_st_split_statement’:
dbdimp.c:1567: warning: format not a string literal and no format arguments
dbdimp.c:1573: warning: format not a string literal and no format arguments
dbdimp.c:1574: warning: format not a string literal and no format arguments
dbdimp.c:1726: warning: format not a string literal and no format arguments
dbdimp.c:1849: warning: format not a string literal and no format arguments
dbdimp.c:1873: warning: format not a string literal and no format arguments
dbdimp.c:1884: warning: format not a string literal and no format arguments
dbdimp.c:1885: warning: format not a string literal and no format arguments
dbdimp.c:1899: warning: format not a string literal and no format arguments
dbdimp.c:1900: warning: format not a string literal and no format arguments
dbdimp.c:1959: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_st_prepare_statement’:
dbdimp.c:2032: warning: format not a string literal and no format arguments
dbdimp.c:2075: warning: format not a string literal and no format arguments
dbdimp.c:2119: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_bind_ph’:
dbdimp.c:2251: warning: format not a string literal and no format arguments
dbdimp.c:2346: warning: format not a string literal and no format arguments
dbdimp.c:2347: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_destringify_array’:
dbdimp.c:2560: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_st_execute’:
dbdimp.c:2860: warning: format not a string literal and no format arguments
dbdimp.c:2861: warning: format not a string literal and no format arguments
dbdimp.c:2924: warning: format not a string literal and no format arguments
dbdimp.c:2929: warning: format not a string literal and no format arguments
dbdimp.c:2934: warning: format not a string literal and no format arguments
dbdimp.c:2958: warning: format not a string literal and no format arguments
dbdimp.c:2968: warning: format not a string literal and no format arguments
dbdimp.c:2969: warning: format not a string literal and no format arguments
dbdimp.c:3094: warning: format not a string literal and no format arguments
dbdimp.c:3106: warning: format not a string literal and no format arguments
dbdimp.c:3155: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_st_fetch’:
dbdimp.c:3334: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_st_deallocate_statement’:
dbdimp.c:3555: warning: format not a string literal and no format arguments
dbdimp.c:3576: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_db_savepoint’:
dbdimp.c:4041: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_db_rollback_to’:
dbdimp.c:4078: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_db_release’:
dbdimp.c:4115: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_db_login’:
dbdimp.c:115: warning: format not a string literal and no format arguments
dbdimp.c:180: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_warn’:
dbdimp.c:311: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_st_STORE_attrib’:
dbdimp.c:1263: warning: format not a string literal and no format arguments
dbdimp.c:1264: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_st_prepare’:
dbdimp.c:1451: warning: format not a string literal and no format arguments
dbdimp.c:1452: warning: format not a string literal and no format arguments
dbdimp.c:1496: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_st_split_statement’:
dbdimp.c:1567: warning: format not a string literal and no format arguments
dbdimp.c:1573: warning: format not a string literal and no format arguments
dbdimp.c:1574: warning: format not a string literal and no format arguments
dbdimp.c:1726: warning: format not a string literal and no format arguments
dbdimp.c:1849: warning: format not a string literal and no format arguments
dbdimp.c:1873: warning: format not a string literal and no format arguments
dbdimp.c:1884: warning: format not a string literal and no format arguments
dbdimp.c:1885: warning: format not a string literal and no format arguments
dbdimp.c:1899: warning: format not a string literal and no format arguments
dbdimp.c:1900: warning: format not a string literal and no format arguments
dbdimp.c:1959: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_st_prepare_statement’:
dbdimp.c:2032: warning: format not a string literal and no format arguments
dbdimp.c:2075: warning: format not a string literal and no format arguments
dbdimp.c:2119: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_bind_ph’:
dbdimp.c:2251: warning: format not a string literal and no format arguments
dbdimp.c:2346: warning: format not a string literal and no format arguments
dbdimp.c:2347: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_destringify_array’:
dbdimp.c:2560: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_st_execute’:
dbdimp.c:2860: warning: format not a string literal and no format arguments
dbdimp.c:2861: warning: format not a string literal and no format arguments
dbdimp.c:2924: warning: format not a string literal and no format arguments
dbdimp.c:2929: warning: format not a string literal and no format arguments
dbdimp.c:2934: warning: format not a string literal and no format arguments
dbdimp.c:2958: warning: format not a string literal and no format arguments
dbdimp.c:2968: warning: format not a string literal and no format arguments
dbdimp.c:2969: warning: format not a string literal and no format arguments
dbdimp.c:3094: warning: format not a string literal and no format arguments
dbdimp.c:3106: warning: format not a string literal and no format arguments
dbdimp.c:3155: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_st_fetch’:
dbdimp.c:3334: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_st_deallocate_statement’:
dbdimp.c:3555: warning: format not a string literal and no format arguments
dbdimp.c:3576: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_db_savepoint’:
dbdimp.c:4041: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_db_rollback_to’:
dbdimp.c:4078: warning: format not a string literal and no format arguments
dbdimp.c: In function ‘pg_db_release’:
dbdimp.c:4115: warning: format not a string literal and no format arguments
gcc-4.2 -c  -I/Library/PostgreSQL/8.4/include -I/Library/Perl/5.10.0/darwin-thread-multi-2level/auto/DBI 
-arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing 
-I/usr/local/include -DPGLIBVERSION=80402 -DPGDEFPORT=5432 -Os  -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc 
-Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"2.16.0\" 
-DXS_VERSION=\"2.16.0\"  "-I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE"  
 quote.c
quote.c: In function ‘null_quote’:
quote.c:44: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_string’:
quote.c:76: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_geom’:
quote.c:118: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_path’:
quote.c:149: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_circle’:
quote.c:181: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_bytea’:
quote.c:222: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_bool’:
quote.c:280: warning: format not a string literal and no format arguments
quote.c:294: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_int’:
quote.c:309: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_float’:
quote.c:334: warning: assignment discards qualifiers from pointer target type
quote.c:358: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_name’:
quote.c:404: warning: format not a string literal and no format arguments
quote.c:413: warning: format not a string literal and no format arguments
quote.c: In function ‘null_quote’:
quote.c:44: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_string’:
quote.c:76: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_geom’:
quote.c:118: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_path’:
quote.c:149: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_circle’:
quote.c:181: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_bytea’:
quote.c:222: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_bool’:
quote.c:280: warning: format not a string literal and no format arguments
quote.c:294: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_int’:
quote.c:309: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_float’:
quote.c:334: warning: assignment discards qualifiers from pointer target type
quote.c:358: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_name’:
quote.c:404: warning: format not a string literal and no format arguments
quote.c:413: warning: format not a string literal and no format arguments
quote.c: In function ‘null_quote’:
quote.c:44: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_string’:
quote.c:76: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_geom’:
quote.c:118: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_path’:
quote.c:149: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_circle’:
quote.c:181: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_bytea’:
quote.c:222: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_bool’:
quote.c:280: warning: format not a string literal and no format arguments
quote.c:294: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_int’:
quote.c:309: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_float’:
quote.c:334: warning: assignment discards qualifiers from pointer target type
quote.c:358: warning: format not a string literal and no format arguments
quote.c: In function ‘quote_name’:
quote.c:404: warning: format not a string literal and no format arguments
quote.c:413: warning: format not a string literal and no format arguments
gcc-4.2 -c  -I/Library/PostgreSQL/8.4/include -I/Library/Perl/5.10.0/darwin-thread-multi-2level/auto/DBI 
-arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing 
-I/usr/local/include -DPGLIBVERSION=80402 -DPGDEFPORT=5432 -Os  -DPERL_EXTMALLOC_DEF -Dmalloc=Perl_malloc 
-Dfree=Perl_mfree -Drealloc=Perl_realloc -Dcalloc=Perl_calloc -DVERSION=\"2.16.0\" 
-DXS_VERSION=\"2.16.0\"  "-I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE"  
 types.c
Running Mkbootstrap for DBD::Pg ()
chmod 644 Pg.bs
rm -f blib/arch/auto/DBD/Pg/Pg.bundle
LD_RUN_PATH="/Library/PostgreSQL/8.4/lib" gcc-4.2 -mmacosx-version-min=10.6  
-arch x86_64 -arch i386 -arch ppc -bundle -undefined dynamic_lookup -L/usr/local/lib Pg.o 
dbdimp.o quote.o types.o  -o blib/arch/auto/DBD/Pg/Pg.bundle     \
            -L/Library/PostgreSQL/8.4/lib -lpq -lm       \

ld: warning: in /Library/PostgreSQL/8.4/lib/libpq.dylib, missing required 
architecture x86_64 in file
chmod 755 blib/arch/auto/DBD/Pg/Pg.bundle
cp Pg.bs blib/arch/auto/DBD/Pg/Pg.bs
chmod 644 blib/arch/auto/DBD/Pg/Pg.bs
Manifying blib/man3/Bundle::DBD::Pg.3pm
Manifying blib/man3/DBD::Pg.3pm
rhys-farrers-imac:DBD-Pg-2.16.0 rhysfarrer$

#!/usr/bin/perl -w
package Config_osx;

require ExtUtils::FakeConfig;
require Config;

my $ccflags = $Config::Config{ccflags};
my $cppflags = $Config::Config{cppflags};

my $cc = $Config::Config{cc};
my $ccname = $Config::Config{ccname};
my $ld = $Config::Config{ld};
my $cpp = $Config::Config{cpp};
my $cpprun = $Config::Config{cpprun};
my $cppstdin = $Config::Config{cppstdin};
my $lddlflags = $Config::Config{lddlflags};
my $ldflags = $Config::Config{ldflags};

my $flavour = (defined &ActivePerl::BUILD) ? 'activeperl' : 'standard';
my $osxver = get_osx_major_version();

# Remove -nostdinc option
unless(exists($ENV{FAKECONFIG_USE_NOSTDINC}) && $ENV{FAKECONFIG_USE_NOSTDINC}) {
    $ccflags =~ s/-nostdinc //g;
    $cppflags =~ s/-nostdinc //g;
}

# ActivePerl on Snow Leopard +
if(($flavour eq 'activeperl') && ( $osxver >= 10 ) ) {
  $cc       = 'gcc-4.0';
  $ccname   = 'gcc-4.0';
  $ld       = 'g++-4.0';
  $cpp      = 'gcc-4.0 -E';
  $cpprun   = 'gcc-4.0 -E';
  $cppstdin = 'gcc-4.0 -E';
}

# Architectures
if(exists($ENV{FAKECONFIG_USE_ARCHITECTURES}) && 
$ENV{FAKECONFIG_USE_ARCHITECTURES}) {
    my @arches = qw( ppc i386 x86_64 );
    # arch in $ccflags, $lddlflags, $ldflags
    
    for my $arch ( @arches ) {
       # remove exisiting
       $ccflags   =~ s/-arch $arch //g;
       $ldflags   =~ s/-arch $arch //g;
       $lddlflags =~ s/-arch $arch //g;
       # add required
       if( $ENV{FAKECONFIG_USE_ARCHITECTURES} =~ /$arch/ ) {
           print qq(Using architecture $arch\n);
           $ccflags   = qq(-arch $arch ) . $ccflags;
           $ldflags   = qq(-arch $arch ) . $ldflags;
           $lddlflags = qq(-arch $arch ) . $lddlflags;
       }
    }
    
}

my %values =
  ( cc        => $cc,
    ccflags   => $ccflags,
    cppflags  => $cppflags,
    ccname    => $ccname,
    ld        => $ld,
    cpp       => $cpp,
    cpprun    => $cpprun,
    cppstdin  => $cppstdin,
    lddlflags => $lddlflags,
    ldflags   => $ldflags,
    );

ExtUtils::FakeConfig->import( %values );


sub get_osx_major_version {
   my $verstr =  `uname -r`;
   if( $verstr =~ /^(\d+)/ ) {
       return $1;
   } else {
       die qq(Could not determine OSX version number);
   }
}

1;

__DATA__

=head1 NAME

Config_osx - compile Mac OS X modules without '-nostdinc' flag

=head1 SYNOPSIS

  perl -MConfig_osx Makefile.PL
  make
  make test
  make install

with CPAN.pm/CPANPLUS.pm

  set PERL5OPT=-MConfig_osx
  cpanp

=head1 DESCRIPTION

This module is only useful at Makefile.PL invocation time. It modifies
some %Config values allowing compilation of Perl XS modules without passing
the '-nostdinc' flag. For current versions of ActivePerl, will also set
the required compiler version (gcc-4.0).

You may override the -nostdinc exclusion  by setting environment variable

export FAKECONFIG_USE_NOSTDINC=1

The module also allows you to specify which architectures should be built
by setting the environment variable FAKECONFIG_USE_ARCHITECTURES.
Allowed architectures are ppc, i386, x86_64

For example, to specify universal 32 bit binaries

export FAKECONFIG_USE_ARCHITECTURES="i386 ppc"

to specify combined 32 and 64bit intel binaries

export FAKECONFIG_USE_ARCHITECTURES="i386 x86_64"


=head1 AUTHOR

Mark Dootson <[email protected]>

=cut




Reply via email to