[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using purify with lintool

From: Ralf Wildenhues
Subject: Re: Using purify with lintool
Date: Tue, 11 Aug 2009 20:44:15 +0200
User-agent: Mutt/1.5.20 (2009-08-09)

Hello Pankaj,

please keep the mailing list in Cc:, and don't top-post; thank you.

* Agrawal, Pankaj wrote on Tue, Aug 11, 2009 at 08:39:36PM CEST:
> However, I am running still into troubles trying to use purify with
> apache that uses libtool. 

> /bin/bash /kassa04/softwares/agrpa02/httpd-2.2.12/srclib/apr/libtool --silent 
> --mode=link  purify gcc -g -O2   -DHAVE_CONFIG_H -DSOLARIS2=10 
> -I/kassa04/softwares/agrpa02/httpd-2.2.12/srclib/apr/include/arch/unix 
> -I./include/arch/unix 
> -I/kassa04/softwares/agrpa02/httpd-2.2.12/srclib/apr/include/arch/unix 
> -I/kassa04/softwares/agrpa02/httpd-2.2.12/srclib/apr/include  -version-info 
> 3:7:3    -o -rpath /usr/local/apache2/lib passwd/apr_getpass.lo 
> strings/apr_cpystrn.lo strings/apr_fnmatch.lo strings/apr_snprintf.lo 
> strings/apr_strings.lo strings/apr_strnatcmp.lo strings/apr_strtok.lo 
> tables/apr_hash.lo tables/apr_tables.lo dso/unix/dso.lo 
> file_io/unix/buffer.lo file_io/unix/copy.lo file_io/unix/dir.lo 
> file_io/unix/fileacc.lo file_io/unix/filedup.lo file_io/unix/filepath.lo 
> file_io/unix/filepath_util.lo file_io/unix/filestat.lo file_io/unix/flock.lo 
> file_io/unix/fullrw.lo file_io/unix/mktemp.lo file_io/unix/open.lo 
> file_io/unix/pipe.lo file_io/unix/readwrite.lo file_io/unix/seek.lo 
> file_io/unix/tempdir.lo locks/unix/global_mutex.lo locks/unix/proc_mutex.lo 
> locks/unix/thread_cond.lo locks/unix/thread_mutex.lo 
> locks/unix/thread_rwlock.lo memory/unix/apr_pools.lo misc/unix/charset.lo 
> misc/unix/env.lo misc/unix/errorcodes.lo misc/unix/getopt.lo 
> misc/unix/otherchild.lo misc/unix/rand.lo misc/unix/start.lo 
> misc/unix/version.lo mmap/unix/common.lo mmap/unix/mmap.lo 
> network_io/unix/inet_ntop.lo network_io/unix/inet_pton.lo 
> network_io/unix/multicast.lo network_io/unix/sendrecv.lo 
> network_io/unix/sockaddr.lo network_io/unix/sockets.lo 
> network_io/unix/sockopt.lo poll/unix/epoll.lo poll/unix/kqueue.lo 
> poll/unix/poll.lo poll/unix/port.lo poll/unix/select.lo 
> random/unix/apr_random.lo random/unix/sha2.lo random/unix/sha2_glue.lo 
> shmem/unix/shm.lo support/unix/waitio.lo threadproc/unix/proc.lo 
> threadproc/unix/procsup.lo threadproc/unix/signals.lo 
> threadproc/unix/thread.lo threadproc/unix/threadpriv.lo time/unix/time.lo 
> time/unix/timestr.lo user/unix/groupinfo.lo user/unix/userinfo.lo 
> atomic/unix/builtins.lo atomic/unix/ia32.lo atomic/unix/mutex.lo 
> atomic/unix/ppc.lo atomic/unix/s390.lo atomic/unix/solaris.lo   -luuid 
> -lsendfile -lrt -lsocket -lnsl  -lpthread
> Purify 7.0 Solaris 2 (32-bit) (C) Copyright IBM Corporation. 1992, 2006 All 
> Rights Reserved.
> Instrumenting:
> Purify engine: Error: Sorry, Purify cannot produce shared objects.

Well, that means you cannot use it with shared libraries at all.  In
that case, the simplest way for you would be to
  ./configure --disable-shared CC=gcc
  make CCLD='purify gcc'

so that purify is only actually used while linking.  If the code uses
C++ as well, you also need to override CXXLD etc.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]