I do not change anything to db2uext2.c. I try to use C compiler to compile it to get the db2uext2.exe to put it in the BIN directory. However, when I compiled it, C complier gave a lot of error. I compiled different db2uext2.c files but it gave me the same errors.
I compiled by issuing: cc -o db2uext2 db2uext2.c
I think the problem comes because of library links in C
There for I could not get the executable file.
Please help me out with this problem. Thanks a lot for this
The error is:
113: warning: invalid white space character in directive
"db2uext2.c", line 114: warning: invalid white space character in directive
"db2uext2.c", line 115: warning: invalid white space character in directive
"db2uext2.c", line 345: invalid source character: '\'
"db2uext2.c", line 346: syntax error before or at: ErrorLog
"db2uext2.c", line 569: syntax error before or at: unsigned
"db2uext2.c", line 587: undefined symbol: fileToArchive
"db2uext2.c", line 587: warning: improper pointer/integer combination: arg #1
"db2uext2.c", line 588: undefined symbol: archiveTargetName
"db2uext2.c", line 588: warning: improper pointer/integer combination: arg #1
"db2uext2.c", line 621: undefined symbol: systemCallRc
"db2uext2.c", line 628: undefined symbol: tempFp
""db2uext2.c", line 681: undefined symbol: _O_BINARY
"db2uext2.c", line 681: undefined symbol: _O_RDONLY
"db2uext2.c", line 687: undefined symbol: rc
"db2uext2.c", line 691: undefined symbol: _S_IREAD
"db2uext2.c", line 691: undefined symbol: _S_IWRITE
"db2uext2.c", line 693: undefined symbol: _O_WRONLY
"db2uext2.c", line 693: undefined symbol: _O_CREAT
"db2uext2.c", line 693: undefined symbol: _O_TRUNC