Thread: Recompiling C after Oracle 9i upgrade?

  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    3

    Question Recompiling C after Oracle 9i upgrade?

    Hi folks,

    Does anyone have any experience of recompiling C programs following an Oracle upgrade, specifically an upgrade from Oracle 8.0.6 to 9.2.0?

    It seems some of the Oracle libraries included in the Makefile.inc which were present under Oracle version 8.0.6 have been replaced/superseded under version 9i ...

    gcc -G chris.o ivoarray.o IvoJni.o -o libIvoJni.so -L/home/sustain/WVC/development/JRUN/source/IvoSharedObjects -lwebconfig -lcfgcomm -lcfgapi -lcfgopt -ldbpool -lsqlexec -llogging -lsecure -lecv -lval -ldmh -llog -lsql -lclntsh /u00/app/oracle/product/9.2.0/lib/nautab.o /u00/app/oracle/product/9o
    cat: cannot open /u00/app/oracle/product/9.2.0/lib/naldflags
    *** Error code 2
    make: Fatal error: Command failed for target `libIvoJni.so'


  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    You should be asking oracle tech support.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,817
    Don't know about any makefile.inc file, but... Under Oracle 8i, the OCI related headers and libraries installed on a client machine (for example using my computer) were as follows:

    Code:
     Directory of C:\orawin95\oci\include
    
    .              <DIR>        04-18-02  1:56p .
    ..             <DIR>        04-18-02  1:56p ..
    CDEMODP0 H           3,909  08-27-99 12:04p cdemodp0.h
    NZERROR  H          19,595  12-16-99  7:11p nzerror.h
    NZT      H          80,858  12-16-99  7:11p nzt.h
    TNSAPI   H           8,627  12-16-99  7:11p tnsapi.h
    OCIEXTP  H           9,157  09-14-99  1:49p ociextp.h
    KUSAPI   H          22,702  08-27-99 12:53p kusapi.h
    KUSTAGS  H          31,594  01-25-00  2:55p kustags.h
    OCI      H          91,710  09-28-99  6:06p oci.h
    OCI1     H           7,338  08-27-99 12:53p oci1.h
    OCI8DP   H          11,623  09-14-99  1:49p oci8dp.h
    OCIAP    H         353,179  09-28-99  6:06p ociap.h
    OCIAPR   H           6,115  08-27-99 12:53p ociapr.h
    OCIDEF   H          42,785  09-14-99  1:48p ocidef.h
    OCIDEM   H           4,126  08-27-99 12:53p ocidem.h
    OCIDFN   H          10,845  08-27-99 12:53p ocidfn.h
    OCIKP    H         356,699  09-28-99  6:06p ocikp.h
    OCIKPR   H           6,832  09-28-99  6:05p ocikpr.h
    ODCI     H          10,754  08-27-99 12:53p odci.h
    ORI      H         113,554  09-14-99  1:48p ori.h
    ORID     H          16,251  09-14-99  1:49p orid.h
    ORL      H         174,034  09-28-99  6:05p orl.h
    ORO      H          40,252  08-27-99 12:54p oro.h
    ORT      H         123,387  09-14-99  1:48p ort.h
    SX3      H          18,057  09-13-99  6:57p sx3.h
    ORATYPES H          10,010  09-13-99  6:57p oratypes.h
            25 file(s)      1,573,993 bytes
    
    Directory of C:\orawin95\oci\lib\bc
    
    .              <DIR>        04-18-02  1:56p .
    ..             <DIR>        04-18-02  1:56p ..
    OCI      LIB        71,168  02-07-00 12:03p oci.lib
    OCIW32   LIB         5,632  02-07-00 12:03p ociw32.lib
             2 file(s)         76,800 bytes
    
    Directory of C:\orawin95\oci\lib\msvc
    
    .              <DIR>        04-18-02  1:56p .
    ..             <DIR>        04-18-02  1:56p ..
    OCI      LIB       411,740  01-25-00  6:28p oci.lib
    OCIW32   LIB        40,636  02-07-00 12:03p ociw32.lib
             2 file(s)        452,376 bytes
    On my other machine with an Oracle 9i installation however, the include/library directory structure becomes:

    Code:
     Directory of C:\oracle\ora92\oci\include
    
    05/09/2005  10:39 AM    <DIR>          .
    05/09/2005  10:39 AM    <DIR>          ..
    04/29/2002  01:27 AM            20,833 oramts.h
                   1 File(s)         20,833 bytes
                   2 Dir(s)  61,967,310,848 bytes free
    
     Directory of C:\oracle\ora92\oci\lib\msvc
    
    05/09/2005  10:39 AM    <DIR>          .
    05/09/2005  10:39 AM    <DIR>          ..
    04/29/2002  01:27 AM             3,948 oramts.lib
                   1 File(s)          3,948 bytes
    As you can see they are vastly different. The libraries/headers for the 8i installation seem more geared towards a C approach while the 9i installation files above are C++ class/object-oriented files. You should be able to take your headers/libraries from the 8i installation and use them with the 9i installation and have them work (not 100% postitive).
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows XP Upgrade Question
    By peckitt99 in forum Tech Board
    Replies: 3
    Last Post: 12-23-2007, 01:48 AM
  2. Oracle cursor in ODBC
    By Mortissus in forum C Programming
    Replies: 4
    Last Post: 09-10-2007, 01:19 PM
  3. Boom, Headoshot!!
    By mrafcho001 in forum A Brief History of Cprogramming.com
    Replies: 50
    Last Post: 07-21-2005, 08:28 PM
  4. oracle database connection
    By blue8173 in forum C Programming
    Replies: 1
    Last Post: 03-16-2004, 04:30 PM
  5. Oracle 9i
    By mellisa in forum Tech Board
    Replies: 7
    Last Post: 04-09-2003, 05:03 AM