libtool
[Top][All Lists]
Advanced

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

RE: Using purify with lintool


From: Agrawal, Pankaj
Subject: RE: Using purify with lintool
Date: Wed, 12 Aug 2009 01:06:01 +0530

Hi Ralf,

If I use the below two commands, it still doesn't work. I have pasted an
error snapshot.

./configure --disable-shared CC=gcc
make CCLD='purify gcc'

************************************************************************
********************************************
/kassa04/softwares/agrpa02/httpd-2.2.12/srclib/apr/libtool --silent
--mode=link --tag=purify gcc -g -O2        -o libos.la -static  unixd.lo
libtool: ignoring unknown tag purify
Making all in server
Making all in mpm
Making all in prefork
/kassa04/softwares/agrpa02/httpd-2.2.12/srclib/apr/libtool --silent
--mode=compile gcc -g -O2    -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS
-D_REENTRANT -D_LARGEFILE64_SOURCE
-I/kassa04/softwares/agrpa02/httpd-2.2.12/srclib/pcre -I.
-I/kassa04/softwares/agrpa02/httpd-2.2.12/os/unix
-I/kassa04/softwares/agrpa02/httpd-2.2.12/server/mpm/prefork
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/http
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/filters
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/proxy
-I/kassa04/softwares/agrpa02/httpd-2.2.12/include
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/generators
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/mappers
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/database
-I/kassa04/softwares/agrpa02/httpd-2.2.12/srclib/apr/include
-I/kassa04/softwares/agrpa02/httpd-2.2.12/srclib/apr-util/include
-I/kassa04/softwares/agrpa02/httpd-2.2.12/srclib/apr-util/xml/expat/lib
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/proxy/../generators
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/ssl
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/dav/main
-prefer-non-pic -static -c prefork.c && touch prefork.lo
/kassa04/softwares/agrpa02/httpd-2.2.12/srclib/apr/libtool --silent
--mode=link --tag=purify gcc -g -O2        -o libprefork.la -static
prefork.lo
libtool: ignoring unknown tag purify
/kassa04/softwares/agrpa02/httpd-2.2.12/srclib/apr/libtool --silent
--mode=compile gcc -g -O2    -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS
-D_REENTRANT -D_LARGEFILE64_SOURCE
-I/kassa04/softwares/agrpa02/httpd-2.2.12/srclib/pcre -I.
-I/kassa04/softwares/agrpa02/httpd-2.2.12/os/unix
-I/kassa04/softwares/agrpa02/httpd-2.2.12/server/mpm/prefork
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/http
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/filters
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/proxy
-I/kassa04/softwares/agrpa02/httpd-2.2.12/include
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/generators
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/mappers
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/database
-I/kassa04/softwares/agrpa02/httpd-2.2.12/srclib/apr/include
-I/kassa04/softwares/agrpa02/httpd-2.2.12/srclib/apr-util/include
-I/kassa04/softwares/agrpa02/httpd-2.2.12/srclib/apr-util/xml/expat/lib
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/proxy/../generators
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/ssl
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/dav/main
-prefer-non-pic -static -c gen_test_char.c && touch gen_test_char.lo
/kassa04/softwares/agrpa02/httpd-2.2.12/srclib/apr/libtool --silent
--mode=compile gcc -g -O2    -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS
-D_REENTRANT -D_LARGEFILE64_SOURCE
-I/kassa04/softwares/agrpa02/httpd-2.2.12/srclib/pcre -I.
-I/kassa04/softwares/agrpa02/httpd-2.2.12/os/unix
-I/kassa04/softwares/agrpa02/httpd-2.2.12/server/mpm/prefork
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/http
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/filters
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/proxy
-I/kassa04/softwares/agrpa02/httpd-2.2.12/include
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/generators
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/mappers
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/database
-I/kassa04/softwares/agrpa02/httpd-2.2.12/srclib/apr/include
-I/kassa04/softwares/agrpa02/httpd-2.2.12/srclib/apr-util/include
-I/kassa04/softwares/agrpa02/httpd-2.2.12/srclib/apr-util/xml/expat/lib
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/proxy/../generators
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/ssl
-I/kassa04/softwares/agrpa02/httpd-2.2.12/modules/dav/main
-prefer-non-pic -static -c util_debug.c && touch util_debug.lo
/kassa04/softwares/agrpa02/httpd-2.2.12/srclib/apr/libtool --silent
--mode=link --tag=purify gcc -g -O2        -o gen_test_char
gen_test_char.lo util_debug.lo -lm
libtool: ignoring unknown tag purify
./gen_test_char > test_char.h

Thanks
Pankaj


-----Original Message-----
From: Ralf Wildenhues [mailto:address@hidden 
Sent: Wednesday, 12 August 2009 12:14 AM
To: Agrawal, Pankaj
Cc: address@hidden
Subject: Re: Using purify with lintool

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
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE
-I./include
-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 libapr-1.la -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.

Cheers,
Ralf





reply via email to

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