Db2uext2 compile

untamed

ADSM.ORG Member
Joined
Aug 13, 2008
Messages
7
Reaction score
0
Points
0
Hi all, I'm trying to compile db2uext2.c (I want to enable user exit for my databases) in a Z-Linux environment,but I'm getting some errors:

db2inst1@mymachine:~/sqllib/samples/c> cc -I/opt/tivoli/tsm/client/api/bin/sample /opt/tivoli/tsm/client/api/bin/libApiDS.so -lApiDS -o /home/db2inst1/db2uext2 /home/db2inst1/sqllib/samples/c/db2uext2.c
/home/db2inst1/sqllib/samples/c/db2uext2.c: In function ArchiveFile
/home/db2inst1/sqllib/samples/c/db2uext2.c:884: error: offset_t undeclared (first use in this function)
/home/db2inst1/sqllib/samples/c/db2uext2.c:884: error: (Each undeclared identifier is reported only once
/home/db2inst1/sqllib/samples/c/db2uext2.c:884: error: for each function it appears in.)
/home/db2inst1/sqllib/samples/c/db2uext2.c:884: error: expected ; before logFileSize
/home/db2inst1/sqllib/samples/c/db2uext2.c:1012: error: expected ; before offsetll
/home/db2inst1/sqllib/samples/c/db2uext2.c:1016: error: logFileSize undeclared (first use in this function)
/home/db2inst1/sqllib/samples/c/db2uext2.c:1044: error: offsetll undeclared (first use in this function)
/home/db2inst1/sqllib/samples/c/db2uext2.c:1044: error: expected ; before offsetll
/home/db2inst1/sqllib/samples/c/db2uext2.c:1016: error: logFileSize undeclared (first use in this function)
/home/db2inst1/sqllib/samples/c/db2uext2.c:1044: error: offsetll undeclared (first use in this function)
/home/db2inst1/sqllib/samples/c/db2uext2.c:1044: error: expected ; before startingPage

I already defined environment variables
DSMI_CONFIG=/opt/tivoli/tsm/client/api/bin/dsm.opt
DSMI_DIR=/opt/tivoli/tsm/client/api/bin
DSMI_LOG=/home/db2inst1/sqllib/db2dump
DSM_DIR=/opt/tivoli/tsm/client/ba/bin

can someone help me?
 
Last edited:
Back
Top