develooper Front page | perl.dbi.oracle-oci | Postings from August 2003

Oracle-OCI-0.06 does not boot on Sun Solaris 8 with Perl 8

Thread Next
From:
Peter Dyballa
Date:
August 11, 2003 07:58
Subject:
Oracle-OCI-0.06 does not boot on Sun Solaris 8 with Perl 8
Message ID:
3F37AA87.5030807@Nols.de
Hello!

On a Sun server E450 with Solaris 8/SunOS 5.8 I am trying to install 
Oracle-OCI-0.06. Oracle is of version 8.1.7.0. Since the system's Perl 
is only 5.005 I installed the Perl 5.8 packege from Sun Freeware.

First boot exacution was:

    v-string in use/require non-portable at ./boot line 3.
    Regex for h2xs ignores:
    ^OCI(?!AQ|AttrGet|Bind|Cache|Callback|Complex|Context|Date|DirPath|EnvCallback|Extract|File|Format|Interval|Iter|Memory|Message|MultiByte|Object|Pickler|Raw|Ref|Security|SharedLibInit|StmtBindByName|StmtBindByPos|StmtGetBindInfo|String|Subscription|Table|Thread|Type|TypeArrayByName|TypeArrayByRef|WideChar|_FLAGS|_FNCODE_|_NLS_|_ORACLE)|^SQL
    Complete h2xs arguments: ./h2xs -d -O -n Oracle::OCI -F
    -I/opt/oracle/rdbms/demo -I/opt/oracle/rdbms/public
    -I/opt/oracle/network/public -I/opt/oracle/plsql/public
    -I/opt/oracle/rdbms/demo,/opt/oracle/rdbms/public,/opt/oracle/network/public,/opt/oracle/plsql/public
    -E get_oci_error,get_oci_handle,oci_buf_len,OCIAttrGet -M
    '^OCI(?!AQ|AttrGet|Bind|Cache|Callback|Complex|Context|Date|DirPath|EnvCallback|Extract|File|Format|Interval|Iter|Memory|Message|MultiByte|Object|Pickler|Raw|Ref|Security|SharedLibInit|StmtBindByName|StmtBindByPos|StmtGetBindInfo|String|Subscription|Table|Thread|Type|TypeArrayByName|TypeArrayByRef|WideChar|_FLAGS|_FNCODE_|_NLS_|_ORACLE)|^SQL'
    -k -x /opt/oracle/rdbms/demo/oci.h
    Running h2xs...
    Scanning typemaps...
     Scanning /usr/local/lib/perl5/5.8.0/ExtUtils/typemap
    Scanning /opt/oracle/rdbms/demo/oci.h for functions...
    sh: -I/opt/oracle/rdbms/demo: not found
    sh: -I/opt/oracle/rdbms/demo: not found
    Scanning /opt/oracle/rdbms/demo/oci.h for typedefs...
    Writing Oracle/OCI/OCI.pm
    Writing Oracle/OCI/OCI.xs
    Writing Oracle/OCI/Makefile.PL
    Writing Oracle/OCI/test.pl
    Writing Oracle/OCI/Changes
    Writing Oracle/OCI/MANIFEST
    Editing OCI.xs...
    Editing Makefile.PL...
    Building...
    Using DBI 1.37 installed in
    /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI
    Checking if your kit is complete...
    Looks good
    Typemap h2xs.typemap not found.
    Writing Makefile for Oracle::OCI
    cp OCI.pm blib/lib/Oracle/OCI.pm
    AutoSplitting blib/lib/Oracle/OCI.pm (blib/lib/auto/Oracle/OCI)
    /usr/local/bin/perl /usr/local/lib/perl5/5.8.0/ExtUtils/xsubpp 
    -typemap /usr/local/lib/perl5/5.8.0/ExtUtils/typemap -typemap
    typemap  OCI.xs > OCI.xsc && mv OCI.xsc OCI.c
    Error: 'OCIError *' not in typemap in extra.xsh, line 11
    Error: 'ub4' not in typemap in extra.xsh, line 68
    Error: 'ub4' not in typemap in extra.xsh, line 71
    Error: 'OCIError *' not in typemap in extra.xsh, line 72
    Please specify prototyping behavior for OCI.xs (see perlxs manual)
    *** Error code 1
    make: Fatal error: Command failed for target `OCI.c'


So I tried to add a description for OCIError and the data type ub4. When 
I finally had fixed all missing functions and data types a ./boot 
proceeded like that:

    Regex for h2xs ignores:
    ^OCI(?!AQ|AttrGet|Bind|Cache|Callback|Complex|Context|Date|DirPath|EnvCallback|Extract|File|Format|Interval|Iter|Memory|Message|MultiByte|Object|Pickler|Raw|Ref|Security|SharedLibInit|StmtBindByName|StmtBindByPos|StmtGetBindInfo|String|Subscription|Table|Thread|Type|TypeArrayByName|TypeArrayByRef|WideChar|_FLAGS|_FNCODE_|_NLS_|_ORACLE)|^SQL
    Complete h2xs arguments: ./h2xs -d -O -n Oracle::OCI -F
    -I/opt/oracle/rdbms/demo -I/opt/oracle/rdbms/public
    -I/opt/oracle/network/public -I/opt/oracle/plsql/public
    -I/opt/oracle/precomp/public -I/opt/oracle/xdk/c/parser/include
    -I/opt/oracle/rdbms/demo,/opt/oracle/rdbms/public,/opt/oracle/network/public,/opt/oracle/plsql/public,/opt/oracle/precomp/public,/opt/oracle/xdk/c/parser/include
    -E get_oci_error,get_oci_handle,oci_buf_len,OCIAttrGet -M
    '^OCI(?!AQ|AttrGet|Bind|Cache|Callback|Complex|Context|Date|DirPath|EnvCallback|Extract|File|Format|Interval|Iter|Memory|Message|MultiByte|Object|Pickler|Raw|Ref|Security|SharedLibInit|StmtBindByName|StmtBindByPos|StmtGetBindInfo|String|Subscription|Table|Thread|Type|TypeArrayByName|TypeArrayByRef|WideChar|_FLAGS|_FNCODE_|_NLS_|_ORACLE)|^SQL'
    -k -x /opt/oracle/rdbms/demo/oci.h
    Running h2xs...
    Scanning typemaps...
     Scanning /usr/local/lib/perl5/5.8.0/ExtUtils/typemap
    Scanning /opt/oracle/rdbms/demo/oci.h for functions...
    sh: -I/opt/oracle/rdbms/demo: not found
    sh: -I/opt/oracle/rdbms/demo: not found
    Scanning /opt/oracle/rdbms/demo/oci.h for typedefs...
    Writing Oracle/OCI/OCI.pm
    Writing Oracle/OCI/OCI.xs
    Writing Oracle/OCI/Makefile.PL
    Writing Oracle/OCI/test.pl
    Writing Oracle/OCI/Changes
    Writing Oracle/OCI/MANIFEST
    Editing OCI.xs...
    Editing Makefile.PL...
    Building...
    Using DBI 1.37 installed in
    /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI
    Checking if your kit is complete...
    Looks good
    Typemap h2xs.typemap not found.
    Writing Makefile for Oracle::OCI
    cp OCI.pm blib/lib/Oracle/OCI.pm
    AutoSplitting blib/lib/Oracle/OCI.pm (blib/lib/auto/Oracle/OCI)
    /usr/local/bin/perl /usr/local/lib/perl5/5.8.0/ExtUtils/xsubpp 
    -typemap /usr/local/lib/perl5/5.8.0/ExtUtils/typemap -typemap
    typemap  OCI.xs > OCI.xsc && mv OCI.xsc OCI.c
    Please specify prototyping behavior for OCI.xs (see perlxs manual)
    cc -c  -I/opt/oracle/rdbms/demo -I/opt/oracle/rdbms/public
    -I/opt/oracle/network/public -I/opt/oracle/plsql/public
    -I/opt/oracle/precomp/public -I/opt/oracle/xdk/c/parser/include
    -I/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBD/Oracle
    -I/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI  -Xt
    -mc -xc99 -xcsi -xprefetch=auto -xcrossfile -xvector=yes -mt
    -xautopar -xreduction -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
    -g    -DVERSION=\"0.01\"  -DXS_VERSION=\"0.01\" -KPIC
    "-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE" 
    -I/opt/oracle/rdbms/demo OCI.c
    "OCI.c", line 9632: warning: implicit function declaration:
    ora_getptr_OCIEnvPtrPtr
    "OCI.c", line 9632: warning: improper pointer/integer combination:
    op "="
    "extra.xsh", line 7: warning: implicit function declaration:
    oci_util_init
    cc -c  -I/opt/oracle/rdbms/demo -I/opt/oracle/rdbms/public
    -I/opt/oracle/network/public -I/opt/oracle/plsql/public
    -I/opt/oracle/precomp/public -I/opt/oracle/xdk/c/parser/include
    -I/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBD/Oracle
    -I/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/DBI  -Xt
    -mc -xc99 -xcsi -xprefetch=auto -xcrossfile -xvector=yes -mt
    -xautopar -xreduction -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
    -g    -DVERSION=\"0.01\"  -DXS_VERSION=\"0.01\" -KPIC
    "-I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE" 
    -I/opt/oracle/rdbms/demo utility.c
    Running Mkbootstrap for Oracle::OCI ()
    chmod 644 OCI.bs
    rm -f blib/arch/auto/Oracle/OCI/OCI.so
    LD_RUN_PATH="" cc  -G -L/usr/local/lib OCI.o utility.o
    -L/opt/oracle/lib/ -L/opt/oracle/rdbms/lib/   -lclntsh
    /opt/oracle/rdbms/lib/kpuadef.o -lnbeq8 -lnhost8 -lnus8 -lnldap8
    -lldapclnt8 -lnsslb8 -ln8 -lncrypt8 -lnoname8 -lntcp8 -lntcps8
    -lnent8 -lntns8 -lnsgr8 -lnzjs8 -ln8 -lnl8 -lnro8 -lnbeq8 -lnhost8
    -lnus8 -lnldap8 -lldapclnt8 -lnsslb8 -ln8 -lncrypt8 -lnoname8
    -lntcp8 -lntcps8 -lnent8 -lntns8 -lnsgr8 -lnzjs8 -ln8 -lnl8
    -lclient8 -lvsn8 -lwtc8 -lcommon8 -lgeneric8 -lwtc8 -lmm -lnls8
    -lcore8 -lnls8 -lcore8 -lnls8 -lnbeq8 -lnhost8 -lnus8 -lnldap8
    -lldapclnt8 -lnsslb8 -ln8 -lncrypt8 -lnoname8 -lntcp8 -lntcps8
    -lnent8 -lntns8 -lnsgr8 -lnzjs8 -ln8 -lnl8 -lnro8 -lnbeq8 -lnhost8
    -lnus8 -lnldap8 -lldapclnt8 -lnsslb8 -ln8 -lncrypt8 -lnoname8
    -lntcp8 -lntcps8 -lnent8 -lntns8 -lnsgr8 -lnzjs8 -ln8 -lnl8
    -lclient8 -lvsn8 -lwtc8 -lcommon8 -lgeneric8 -ltrace8 -lnls8 -lcore8
    -lnls8 -lcore8 -lnls8 -lclient8 -lvsn8 -lwtc8 -lcommon8 -lgeneric8
    -lnls8 -lcore8 -lnls8 -lcore8 -lnls8 -lnsl -lsocket -lgen -ldl
    -lsched -lsched -R/opt/oracle/lib -laio -lposix4 -lkstat -lm
    -lthread -o blib/arch/auto/Oracle/OCI/OCI.so    
    chmod 755 blib/arch/auto/Oracle/OCI/OCI.so
    cp OCI.bs blib/arch/auto/Oracle/OCI/OCI.bs
    chmod 644 blib/arch/auto/Oracle/OCI/OCI.bs
    Manifying blib/man3/Oracle::OCI.3
    PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e"
    "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
    t/01base....Can't load
    '/home/dyballpe/Perl/Oracle-OCI-0.06/Oracle/OCI/blib/arch/auto/Oracle/OCI/OCI.so'
    for module Oracle::OCI: ld.so.1: /usr/local/bin/perl: fatal:
    relocation error: file
    /home/dyballpe/Perl/Oracle-OCI-0.06/Oracle/OCI/blib/arch/auto/Oracle/OCI/OCI.so:
    symbol ora_getptr_OCIEnvPtrPtr: referenced symbol not found at
    /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
     at t/01base.t line 9
    Compilation failed in require at t/01base.t line 9.
    BEGIN failed--compilation aborted at t/01base.t line 9.
    t/01base....dubious
        Test returned status 255 (wstat 65280, 0xff00)
    t/05dbi.....Can't load
    '/home/dyballpe/Perl/Oracle-OCI-0.06/Oracle/OCI/blib/arch/auto/Oracle/OCI/OCI.so'
    for module Oracle::OCI: ld.so.1: /usr/local/bin/perl: fatal:
    relocation error: file
    /home/dyballpe/Perl/Oracle-OCI-0.06/Oracle/OCI/blib/arch/auto/Oracle/OCI/OCI.so:
    symbol ora_getptr_OCIEnvPtrPtr: referenced symbol not found at
    /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229.
     at t/05dbi.t line 8
    Compilation failed in require at t/05dbi.t line 8.
    BEGIN failed--compilation aborted at t/05dbi.t line 8.
    t/05dbi.....dubious
        Test returned status 255 (wstat 65280, 0xff00)
    FAILED--2 test scripts could be run, alas--no output ever seen
    *** Error code 255
    make: Fatal error: Command failed for target `test_dynamic'


Particularly this ora_getptr_OCIEnvPtrPtr symbol looks a bit starnge ...


What can I do to improve booting?

-- 
Greetings

Pete                                            Nols GES AG
                                                Gervinusstra├če 18-22
(Peter Dyballa)         069-92024┬Ě795           60322 Frankfurt am Main



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About