cdr check correction

http-equiv="content-type">
!doctype>
Correction
to the cdr check
Document in Developers Works
to the cdr check
Document in Developers Works
In the developer's work
article for enabling the cdr check functionality, there is an error in
the compile script for AIX. This article is located in
http://www.ibm.com/developerworks/db2/library/techarticle/dm-0604pruet/
and is titled "Enable
'cdr check' functionality within IBM Informix Dynamic Server".
To enable cdr check in IDS 10, you must first install some
UDRs to enable checksum generation. It is not necessary to do
this in IDS 11 because those UDRs are built into the product itself.
The part in error is the following statement in the make file
for AIX. Instead of having...
$(NM) -X64 -g checksum.o | sed "/ U /d" | cut -f1 -d" " | sed
"/.o:/d" | sed -e "s/^\.//" | sort -u style="color: rgb(153, 0, 0);"> style="font-weight: bold;">< checksum.exp
we should have
$(NM) -X64 -g checksum.o | sed "/ U /d" | cut -f1 -d" " | sed
"/.o:/d" | sed -e "s/^\.//" | sort -u style="color: rgb(153, 0, 0);"> style="font-weight: bold;">>
checksum.exp
That would mean that the correct make file for AIX64 would be.
border="1" cellpadding="2" cellspacing="2">
article for enabling the cdr check functionality, there is an error in
the compile script for AIX. This article is located in
http://www.ibm.com/developerworks/db2/library/techarticle/dm-0604pruet/
and is titled "Enable
'cdr check' functionality within IBM Informix Dynamic Server".
To enable cdr check in IDS 10, you must first install some
UDRs to enable checksum generation. It is not necessary to do
this in IDS 11 because those UDRs are built into the product itself.
The part in error is the following statement in the make file
for AIX. Instead of having...
$(NM) -X64 -g checksum.o | sed "/ U /d" | cut -f1 -d" " | sed
"/.o:/d" | sed -e "s/^\.//" | sort -u style="color: rgb(153, 0, 0);"> style="font-weight: bold;">< checksum.exp
we should have
$(NM) -X64 -g checksum.o | sed "/ U /d" | cut -f1 -d" " | sed
"/.o:/d" | sed -e "s/^\.//" | sort -u style="color: rgb(153, 0, 0);"> style="font-weight: bold;">>
checksum.exp
That would mean that the correct make file for AIX64 would be.
#
# Compiler/Linker flags specific to AIX
#
CC = cc
LD = ld
NM = nm
CFLAGS = -q64 -shared -qchars=signed -D_H_LOCALEDEF -DINFX_ANSI -D_LARGE_FILES
PICFLAGS = -lm
SOFLAGS = -G -b64 -bnoentry
LIBSO = checksum.so
TARGETS =${LIBSO}
.SUFFIXES: .c .o
all: $(TARGETS)
checksum.so: checksum.c
$(CC) $(CFLAGS) $(PICFLAGS) -I${INFORMIXDIR}/incl/public -I${INFORMIXDIR}/incl/ -c checksum.c
$(NM) -X64 -g checksum.o | sed "/ U /d" | cut -f1 -d" " \
| sed "/.o:/d" | sed -e "s/^\.//" | sort -u > checksum.exp
$(LD) $(SOFLAGS) -bE:checksum.exp -o checksum.so checksum.o -lm -lc
chmod 755 checksum.so
clean::
rm -f ${LIBSO} *.o
- 627 reads
-
- Feed: Madison Pruet
- Original article













