Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2004
    Location
    Germany, Frankfurt
    Posts
    5

    Unanswered: Unable to link Precompiler

    Hello,
    can anybody help me:
    i want in a Oracle 9.2.0.4-Environment (re)link the Precompiler. Its not possible beause i get:

    cob32: bad magic number: /u02/home/dba/app/oracle/product/9.2.0/precomp/lib/cobsqlintf.o
    make: 1254-004 The error code from the last command is 1.

    Errors.
    i tried it with the relink precompiler command and in the direct way via. make -f nnnn.

    I want compile a COBOL-Application and failed
    Thank you!
    Kurt
    Kurt Strubel


    View Public Profile
    Send a private message to Kurt Strubel
    Send email to Kurt Strubel
    Visit Kurt Strubel's homepage!
    Find all posts by Kurt Strubel
    Add Kurt Strubel to Your Buddy List

  2. #2
    Join Date
    Jan 2004
    Posts
    370
    Bad magic number suggests the wrong file format.

    What output does the following command produce:

    file /u02/home/dba/app/oracle/product/9.2.0/precomp/lib/cobsqlintf.o

    Also, what O/S are you running?

  3. #3
    Join Date
    Jun 2004
    Location
    Germany, Frankfurt
    Posts
    5
    Hello,
    file produce this output:
    $ file /u02/home/dba/app/oracle/product/9.2.0/precomp/lib/cobsqlintf.o
    /u02/home/dba/app/oracle/product/9.2.0/precomp/lib/cobsqlintf.o: 64-bit XCOFF executable or object module not stripped
    oracle@ora02:/u02/home/dba/app/oracle


    AIX5.1

    reported problem is persistent since i installed thr 9.2.0.4-Patch. In Oracle 9.2.0.1 wasnot a Problem

  4. #4
    Join Date
    Jan 2004
    Posts
    370
    I suspect it is the way you are compiling the application.
    Your object file is XCOFF format.
    Oracle uses shared libraries and requires ELF format files.

    Make sure your object files are compiled in ELF format.

  5. #5
    Join Date
    Jun 2004
    Location
    Germany, Frankfurt
    Posts
    5
    Hello,
    i got the solution:
    its <Bug:3563341> 32BIT PRECOMPILERS FAIL TO RELINK ON 9204, 9205
    I can run the "relink compiler" through:
    i replaced
    in file $ORACLE_HOME/bin/relink

    #PRECOMPS="proc procob procob32 procob18 procob18_32 rtsora rtsora32 modada profor profor32"

    PRECOMPS="proc procob procob18 rtsora modada profor"

    After this Modification i was able to relink the Precompiler and run thze COBOL-Compiler
    Kurt

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •