03-06-2006
Problem with build using Purify
Hi,
I am facing problem while doing build on AIX using xlC compiler. We are using purify. Purify fails to instrument the a few libraries. Interestingly these are not developed by us and are 3rd party SW components. Can someone let me know how to proceed with the build?
Here is the output ----------------------------
purify -best-effort -windows=no -view-file=./msgpure.pv -LeaksAtExit=yes -always-use-cache-dir=no -forbidden-directories=/lib:/usr/lib:/usr/local:/opt:/usr/borland/BDP/lib xlC_r -qlonglong -qlongdouble -q32 -qalign=full -bh:5 -q32 -bdynamic -brtl -L/home/asutosh/parser/xerces-c-src_2_7_0/lib -lxerces-c -bmaxdata:0x80000000 -L/home/asutosh/parser/icu/source/lib -licudata -licuio -licule -liculx -licutu -licuuc -lsicudata -lsicuio -lsicule -lsiculx -lsicutu -lsicuuc -o server -L/usr/borland/BDP/lib -L/usr/lib -lorb_pr -lvdlog_pr -lvport_pr -llmgr -lcosnm_pr -lC_r -ldl CIIMSBase.o CIIMSException.o CIIMSEntryPoint.o CIIMSUserContext.o CIIMSContextRegistry.o CIIMSThread.o CIIMSTimer.o CIIMSMutex.o ciims_util.o DOMTreeErrorReporter.o CIIMSTransientCacheBase.o CIIMSConfigCache.o CIIMSSecurityProfileCache.o CIIMSEventConfigCache.o CIIMSOperationMessageCache.o CIIMSResourceConfigCache.o CIIMSResourceManager.o CIIMSSubsystemStatusCache.o messaging_server.o ciims-data_c.o ciims-data_s.o ciims-rmserver_c.o ciims_sub_sdk_s.o ciims_sub_sdk_c.o ciims_data_sub_s.o ciims_data_sub_c.o
1506-507 (W) No licenses available. Contact your program supplier to add additional users. Compilation will proceed shortly.
Purify 2003a.06.15 AIX (32-bit) (c) Copyright IBM Corp. 1992, 2005 All rights reserved.
Instrumenting: server. libicuio.a
Purify engine: While processing file /home/asutosh/parser/icu/source/lib/libicuio.a:
Error: Couldn't locate the library libicuuc32.a.
Please set the LIBPATH to point to this library and rerun the instrumentation.
Current value of LIBPATH (NULL)
Purify engine: Error: Couldn't locate the library libicudata32.a.
Please set the LIBPATH to point to this library and rerun the instrumentation.
Current value of LIBPATH (NULL)
Purify engine: Error: Couldn't locate the library libicui18n32.a.
Please set the LIBPATH to point to this library and rerun the instrumentation.
Current value of LIBPATH (NULL)
Note! Remove the file </opt/Purify/releases/purify.aix.2003a.06.15/cache/home/asutosh/parser/icu/source/lib/libicuio.a_pure_p7_c0_104092130_32.warnings> to prevent reinstrumentation of the file </home/asutosh/parser/icu/source/lib/libicuio.a> in subsequent builds.
libicule.a
Purify engine: While processing file /home/asutosh/parser/icu/source/lib/libicule.a:
Error: Couldn't locate the library libicuuc32.a.
Please set the LIBPATH to point to this library and rerun the instrumentation.
Current value of LIBPATH (NULL)
The remaining part is not shown here.
Interestingly I have set LIBPATH properly and it echoes correctly. LIBSERVER is set in env as weel as in the makefile. The makefile is given below.
TARGET=server
GLINKOBJ = glink.o
CC = xlC_r -qlonglong -qlongdouble -q32 -qalign=full -bh:5
LD = ld -bsvr4 -dy -b64
LIBCC = makeC++SharedLib_r -X32 -p -100 \
-bglink:/lib/$(GLINKOBJ) -bM:SRE -bh:5
# Parser Include Path
XERCESCROOT=/home/unisys/parser/xerces-c-src_2_7_0
PARSER_INCLUDES= -I. -I${XERCESCROOT}/include
# Parser Library Path
PARSER_LIB_DIR=${XERCESCROOT}/lib
PARSER_LIBNAME=xerces-c
PARSER_EXTRA_LINK_OPT=-bmaxdata:0x80000000
SHLIBSUFFIX=.a
XML_LIB = /home/unisys/parser/icu/source/lib
CMP= -w -O2 -DXML_USE_PTHREADS -qnotempinc -qnamemangling=ansi
STDCC_LIBS = -lC_r -ldl
LIBPATH = -L$(VBROKERDIR)/lib -L/usr/lib
CCINCLUDES = -I. -I$(VBROKERDIR)/include -I$(VBROKERDIR)/include/stubs -I$(PARSER_INCLUDES)
LIBORB = -lorb_pr -lvdlog_pr -lvport_pr -llmgr
LIBCOSNM = -lcosnm_pr
LIBSEC = -lvbsec_p
CCFLAGS = $(EXTRA) $(CMP) -c -g $(CCINCLUDES) $(BITMODE) -DPTHREADS -DTHREAD -D_VIS_STD -DCIIMS_DEBUG -DXML_USE_PTHREADS -D_VIS_NO_IOSTREAM_WCHAR -D_VIS_NO_IOSTREAM_LONGDOUBLE
OBJS=CIIMSBase.o \
CIIMSException.o \
CIIMSEntryPoint.o \
CIIMSUserContext.o \
CIIMSContextRegistry.o \
CIIMSThread.o \
CIIMSTimer.o \
CIIMSMutex.o \
ciims_util.o \
DOMTreeErrorReporter.o \
CIIMSTransientCacheBase.o \
CIIMSConfigCache.o \
CIIMSSecurityProfileCache.o \
CIIMSEventConfigCache.o \
CIIMSOperationMessageCache.o \
CIIMSResourceConfigCache.o \
CIIMSResourceManager.o \
CIIMSSubsystemStatusCache.o \
messaging_server.o \
ciims-data_c.o \
ciims-data_s.o \
ciims-rmserver_c.o \
ciims_sub_sdk_s.o \
ciims_sub_sdk_c.o \
ciims_data_sub_s.o \
ciims_data_sub_c.o
all:$(TARGET)
$(TARGET):$(OBJS)
$(PURE) $(CC) -q32 -bdynamic -brtl -L${PARSER_LIB_DIR} -l${PARSER_LIBNAME} ${PARSER_EXTRA_LINK_OPT} -L$(XML_LIB) -licudata -licuio -licule -liculx -licutu -licuuc -lsicudata -lsicuio -lsicule -lsiculx -lsicutu -lsicuuc -o $(TARGET) $(LIBPATH) $(LIBORB) $(LIBCOSNM) $(STDCC_LIBS) $(OBJS)
$(OBJS):
$(CC) ${PARSER_INCLUDES} $(CCFLAGS) $*.cpp
clean:
rm -f server
cleanall:
rm -f *.o
rm -f server
I am not able to proceed. Can someone give me some idea on how to proceed?
Thanks in advance
asutoshc
10 More Discussions You Might Find Interesting
1. Solaris
Hi chaps, long time no post from me lol
might be an awkward one to get this, I have just jumpstarted a server, and it boots ok untill it gets to loading Solaris Volume Manager, it gets this far and then just sits there, any ideas what might cause this, have rejumped the machine twice now lol.
... (2 Replies)
Discussion started by: SemperFi
2 Replies
2. Programming
Hi,
I am using purify to find memory leak in my process.
When I run the instrumented program I get error
I donot have this file in the specified directory. Instead I have following files in the directory /usr/lib/nls/loc/locales.2
What should I do in such case? I undersatnd... (1 Reply)
Discussion started by: shriashishpatil
1 Replies
3. UNIX for Advanced & Expert Users
Hi,
When i'm compiling my C files, I'm getting an error saying that the file name i've defined is undeclared. Could someone tell me how to solve this error. I've defined the file name as
#define _FILE_CODE_ _XYZ_C_
The error is "_XYZ_C undeclared".
Thanks in advance (1 Reply)
Discussion started by: laxmi
1 Replies
4. HP-UX
Hi
Im trying to build & instal berkeleydb ( not as root) ...... in path /opt/dev-tools
installation was perfect and binaries were created in /opt/dev-tools/bin
When i try to execute the binaries ( berkeley_db_svc) it throw me an error
/usr/lib/dld.sl: Can't find path for shared... (1 Reply)
Discussion started by: vasanthan
1 Replies
5. BSD
In building a firewall, I need to update and patch the operating system after
the initial install.
However, the compiler and sources should never be on a firewall PC.
So what is the best way to do this ? This firewall PC has 2 identical drives;
I was thinking of performing 2 installs, updating... (2 Replies)
Discussion started by: larsuuber
2 Replies
6. HP-UX
Hi,
I have installed HP-UX 11.31 on a rx6600 box. The installation went fine and was completed without any errors. But wheni connect to the server using ssh,
it asks for a username, when i enter it, it doesnt prompt for a password:
login:username
blank--------
All i could see in... (1 Reply)
Discussion started by: sag71155
1 Replies
7. UNIX for Advanced & Expert Users
Dear Sir/Madam
We are trying to configure Grid in our computer lab. We have already installed all the required software for configuring the grid. At present we are configuring it for 3 nodes. We are using Fedora 8 OS.
We are using Sun Grid Engine (SGE) and Globus Tool Kit for configuring the... (0 Replies)
Discussion started by: garudawar
0 Replies
8. UNIX for Advanced & Expert Users
Hi
Rational® Purify® is a dynamic software analysis tool - helps to clean your own C or C++ code from memory leak problems etc.
Who knows some compatable (my be freeware) software? (1 Reply)
Discussion started by: baruchgu
1 Replies
9. Programming
Hi
I am facing a problem while doing Purify Instrumentation of the Informix ESQL-C files. The system is RedHat Linux 5.6 and compiler is gcc.
I have set both CC and INFORMIXC variables to "purify gcc" and compiled the source code. All the .c and .ec files were compiled successfully,
but... (0 Replies)
Discussion started by: nsinha
0 Replies
10. AIX
when i instrument ourify i am getting error like
.*** OI_init: Error, cannot connect to X server
Purify or PureCoverage slave: Warning: Can't open display "localhost:0", using tty mode.
. Got it]
I am using AIX1.6 OS
i have xwin32 installed in my windows.. (1 Reply)
Discussion started by: greenworld123
1 Replies