Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am compiling my C++ code with purify(7.0) in Solaris to find the memory leaks.
using make purify command,
It created the object files and purify object file both sucessfully, say for tcpclient.cc
tcpclient.o
tcpclient_pure_p9_c0_104192125_32.o
but later it gives linking error:
ld: warning: file /udir/Rational/releases/purify.sol.7.0/cache//omcws06/lib/libdl.so.1_pure_p3_c0_104192125_510_32: attempted multiple inclusion of file
I think your cache contains mixed files. It means you have already used purify for another app with the same cache and something "strange" left in it. Try to remove everything from the cache and rebuild again. (you gave a very limited information, so probably my tip won't help, but otherwise you will need to give more info: what is the makefile, how do you build your app, what are the purify flags you set... )
Can you please tell me which cache you are talking about and how to clear that.
The Makefile has the following entry for purify:
purify::
$(VB2)purify_homedir=`$(PURIFY) -printhomedir`; \
if [ $$? != 0 ]; then $(ECHO) "ERROR : can't find $(PURIFY) in your path."; exit 1; fi; \
$(ECHO) "Using `$(PURIFY) -version` from $$purify_homedir"; \
$(MAKE) CXX="$(PURIFY) $(PURIFY_FLAGS) $(CXX)" CC="$(PURIFY) $(PURIFY_FLAGS) $(CC)" ALL_DEFINES="$(ALL_DEFINES) -I$$purify_homedir -DPURIFY_ON" PURIFY_LIBS="$$purify_homedir/purify_stubs.a"
this dir is a cache wich is used by purify: /udir/Rational/releases/purify.sol.7.0/cache. You can either move/remove the content or define another emtpy directory instead. Also I would like to know those PURIFY_FLAGS
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.