Operating System - Tru64 Unix
1829705 Members
2437 Online
109992 Solutions
New Discussion

Re: cob64 : bad magic number

 
Renda Skandier
Frequent Advisor

cob64 : bad magic number

Hi,
We have just installed Micro Focus Server Express V2.0 rev 011 and I am recieving cob64:bad magic number when trying to create a runtime. I had previously created a custom runtime under Micro Focus COBOL for UNIX V4.1 rev 040, and that worked fine.

Based on reading old postings, this is what I have done.

when i compile a cobol program using
cob -i -P $1.cbl
cob -u $1.cbl
it compiles fine.

i then try to create a runtime
by using cob -xe "" rque.o -o cobren
I recieve cob64:bad magic number

rque was compiled using :
cc rque.c -vc -o rque.o

I have already updated my profile to include the following:
COBDIR=/opt/lib/cobol
export COBDIR
SHLIB_PATH=$COBDIR/lib
export SHLIB_PATH
PATH=:$COBDIR/bin:/etc:/usr/bin:/opt/bin:/usr/ccs/bin:$HOME/bin
export PATH
LD_LIBRARY_PATH=$COBDIR/lib
export LD_LIBRARY_PATH
COBCONFIG=/home/developer/renda1/seconfig
export COBCONFIG
export COBMODE=64

Any suggetions??
thanks renda
1 REPLY 1
Ralf Puchner
Honored Contributor

Re: cob64 : bad magic number

Supportmatrix for MF Cobol:

Tru64 < 5.1 MF 2.0
Tru64 5.1 MF 2.2
Tru64 5.1a MF 2.5a

Other versions and mixes are not supported. There are known problem with 5.1A using MF 2.0 and 2.2 and linker/compiler. The headerfiles doesn't match for example etc.

Be sure you are using the right version.

Help() { FirstReadManual(urgently); Go_to_it;; }