in reply to Re^2: 64bit perl on AIX
in thread 64bit perl on AIX

When you said "64bit perl" I though you meant 64bitints -- sorry about that. I'm assuming you are building on AIX 5.1 with a 64-bit kernel. Unfortunately, I'm probably not much help there since I've never built under it.

From the output it looks like the linker doesn't like the Oracle.o object since (I'm guessing again) it was built in 32-bit mode (XCOFF32) and it needs to be built with a 64-bit compiler. Do you know how this object file is generated? If you are generating this during the build, are you using the right compiler version and/or options?

Replies are listed 'Best First'.
Re 4: 64bit perl on AIX
by daryle (Initiate) on Jun 29, 2004 at 14:25 UTC
    I think that Oracle.o is built in the 'perl Makefile.PL' step of building the dbd. Yeah, it is AIX5.1, trying to make everything full 64bit. The compiler is the latest Visual Age C++ from ibm. Thanks! I got this to work...fyi:

    Using Oracle dbd 1.16
    Perl 5.8.4 built like this, with Visual Age 6.0:
    config_args='-Dcc=xlc_r -Dusenm -Dprefix=/appl/datasync/work/perl5 -Dusethreads -Duse64bitall -des'
    ==============================================
    Used DBI 1.42
    =============================================
    Added this to top of Oracle.h:
    #define A_OSF
    #include <oratypes.h>
    =======================
    Set LIBPATH to point to 64bit Oracle libs first.
    export LIBPATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32:/usr/lib
    Use: perl Makefile.PL -nob
    Change all references in Makefile of LD_RUN_PATH to be LIBPATH.
    Change nothing else, left all flags in Makefile, including -q64.
    Passed make, and all tests.