Cannot Build a COBOL Server Using DB2 UDB Statements

(Doc ID 1387707.1)

Last updated on NOVEMBER 04, 2016

Applies to:

Oracle Tuxedo - Version: 11.1.1.2.0 and later   [Release: 11g and later ]
Information in this document applies to any platform.

Symptoms

When building a TUXEDO server written in COBOL and implementing some DB2 UDB statements, buildserver command fails.

UDB stands for Universal Database which is a non-Oracle third-product (an IBM one).
DB2 UDB is a multi-user version of DB2 enabling to create and manage partitioned database environments.

Changes

Server to build is: CSDB2SRV.cbl
Service written in COBOL referring to DB2 UDB statements: CSDB2SRV
Command executed:
buildserver -k -C -s CSDB2SRV:CSDB2SRV -v -o CSDB2SRV -f CSDB2SRV.cbl -r DB2_XA

buildserver fails :

cobcc -I$TUXDIR/include -o CSDB2SRV BS-2ed7.c -L${TUXDIR}/lib CSDB2SRV.cbl -lcobatmis -ltux -lbuft -L${DB2DIR}/lib64 -ldb2 -lfml -lfml32 -lengine -ldl -lpthread

BS-2ed7.c:

CSDB2SRV.cbl:

* Micro Focus SQL External Compiler Module for IBM DB2 UDB

* DB2-SQL precompiler (C) Copyright 1997-2010 Micro Focus (IP) Ltd.

CSDB2SRV.o: In function `CSDB2SRV_0x0':

CSDB2SRV.cbl:(.text+0x11cb): undefined reference to `cobdb264'

CMDTUX_CAT:1832: ERROR: can't execute cobcc -I$TUXDIR/include -o CSDB2SRV BS-2ed7.c -L${TUXDIR}/lib CSDB2SRV.cbl -lcobatmis -ltux -lbuft -L${DB2DIR}/lib64 -ldb2 -lfml -lfml32 -lengine -ldl -lpthread

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms