Operating System - HP-UX
1826775 Members
1402 Online
109702 Solutions
New Discussion

_HP_mfprocld: Unsatisfied symbols

 
Mei Jiao
Respected Contributor

_HP_mfprocld: Unsatisfied symbols

Got the following error when tried to do compilation using Cobol:

# cob -xvP mfproc.cbl -L/opt/cobol/cobdir/src/sql -L/embsql/lib -lcobct -lct -lcs -ltcl -lcomn -linsck -lm -L/opt/cobol/bin -L/opt/cobol/cobdir/src/sql -L/opt/cobol/cobdir/coblib
cob -C nolist -xvP mfproc.cbl -L/opt/cobol/cobdir/src/sql -L/embsql/lib -lcobct -lct -lcs -ltcl -lcomn -linsck -lm -L/opt/cobol/bin -L/opt/cobol/cobdir/src/sql -L/opt/cobol/cobdir/coblib
* Micro Focus COBOL for UNIX V4.1 revision 040 Compiler
* Copyright (C) 1984-1999 MERANT International URN O1UPR/BMB/01345T
* Accepted - verbose
* Accepted - nolist
* Accepted - list(mfproc.lst)
* Compiling mfproc.cbl
* Total Messages: 0
* Data: 12604 Code: 22204
* Micro Focus COBOL for Unix V4.1 revision 040 Code generator
* Copyright (C) 1984-1999 MERANT International URN OXUPR/BM0/00000T
* Accepted - verbose
* Accepted - hpoptimize(1)
* Generating mfproc.int
* Data: 12776 Code: 0 Literals: 7128
cob: Entry points defined in module: mfproc.o
*mfproc
MFPROC
_HP_mfprocld: Unsatisfied symbols:
comn_free (first referenced in /embsql/lib/libcobct.a(coboc.o)) (code)

comn_malloc (first referenced in /embsql/lib/libcobct.a(coboc.o)) (code)

May I know what went wrong? Is it due to syntax error or problem with HP Micro Focus COBOL?

Thanks!
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: _HP_mfprocld: Unsatisfied symbols

Microfocus Cobol has different versions for 11.00 versus 11.11 and 32 bit versus 64 bit.

This looks like the 32 bit version we're using on our old D class servers, though we got it from Microfocus, not HP.

I'd start checking environment variables and the compiler license keys for corruption.

Syntax could be an issue.

What are you trying to compile? More detail would help.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
ranganath ramachandra
Esteemed Contributor

Re: _HP_mfprocld: Unsatisfied symbols

a google search on comn_malloc turns up postings that suggest that these symbols may be defined in libintl.sl.
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo

Mei Jiao
Respected Contributor

Re: _HP_mfprocld: Unsatisfied symbols

Now we used the new COBOL libraries, the command is:
cob -xvP mfproc.cbl -L/opt/cobol/cobdir/src/sql -L/sybase125/OCS-12_5_new/lib -lcobct64 -lct64 -lcs64 -ltcl64 -lcomn64 -linsck -lm -L/opt/cobol/bin -L/opt/cobol/cobdir/src/sql -L/opt/cobol/cobdir/coblib

But encounter different error message:
ld: /sybase125/OCS-12_5_new/lib/libcobct64.a: Not a valid library (invalid magic number). Possibly a 64-bit PA archive library (Mismatched ABI).

Any idea?
ranganath ramachandra
Esteemed Contributor

Re: _HP_mfprocld: Unsatisfied symbols

if you want to build a 64-bit binary, you need to pass the appropriate flag to the cobol compiler. e.g. for cc/aCC it is '+DD64' or '+DA2.0W' - i dont know what exactly it is for cobol. the manual page should have it.

if you want to build a 32-bit binary, you should include the correct libraries and library search paths in the link/compile line.
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo