Vesko:
we are using mpatrol so far quite successfully but noticed (just as
you did) that it doesn't compile anymore on Fedora Core 3 and later
versions. Do you know what happened to maptrol development and why
it stoped back in 2002 with version 1.4.8? Or do you know of an
alternative set of (free) libraries that can serve the same purpose
as mpatrol? We are also using IBM/Rational Purify, which is great
but expensive and has some problems on Linux.
Thanks,
Tino
--- In mpatrol@yahoogroups.com, "Vesselin Peev" <vesko@o...> wrote:
> Hi Shirley,
>
> On Wednesday 06 July 2005 10:15, shirley820409 wrote:
> > i am a new user.
> > i used command "mpatrol -d ./myfile" ,then i got the error
> > messasge: "error while loading shared libraries: libbfd.so:
cannot open
> > shared object file: No such file or directory".
> >
> > i used following steps to install mpatrol:
> > 1.go into the `build' directory
> > 2.make and make mpatrol
> > 3.copy mpatrol to /usr/bin
> > i did no change to Makefile.
> > my env is readhat 9.0 and gcc version 3.2.2.
> >
> > i think i made some silly mistakes.
> > can anybody help me out?
> > thanks
>
> You seem to have built it fine, although in step 2 just "make"
[ENTER] and no
> "make mpatrol" [ENTER] following that should be equivalent (as a
result) to
> doing both. The mpatrol installation documentation at
> http://www.cbmamiga.demon.co.uk/mpatrol/mpatrol_4.html says that
the "all"
> make target, which is invoked via a "make" or "make all"
command, "builds all
> possible combinations of the mpatrol library for your system", and
I guess
> you don't want partial functionality.
>
> Regarding the error message, you are missing libbfd.so which is
part of
> binutils. You likely do not have the Red Hat 9 binutils package
installed.
>
> Note there exists a prebuilt binary mpatrol package for Red Hat 9
that should
> work but you'd still need to have binutils installed. Here is a
direct link:
>
> http://apt.bea.ki.se/biorpms/redhat/9/i386/RPMS.biorpms/mpatrol-
1.4.8-3.rh9.bio.i386.rpm
>
> If you decide to install that, remove any mpatrol files that you
have copied
> manually so far.
>
> In case the way you have tried, i.e. manual build and
installation, doesn't
> work even after you've added binutils, and in case the above
binary package
> doesn't work, either, (it should), try building via the GNU Build
System
> (autoconf, automake, libtool) which would adapt to your
environment
> automatically. On the same mpatrol installation documentation page
> http://www.cbmamiga.demon.co.uk/mpatrol/mpatrol_4.html it is
written:
>
> "If you wish to use GNU autoconf, automake and libtool to build
and install
> mpatrol you may do so by entering the `pkg/auto' directory and
typing
> `./setup'. This will construct the directory structure that is
required by
> these tools and will also create a `configure' script. Please see
the
> `INSTALL' file in that directory for information on how to
proceed. Note that
> you can clean up the `pkg/auto' directory by typing `make
distclean' (if the
> `configure' script has already been run) followed by `./cleanup'. "
>
> In fact you are in luck you are using an older version of Red Hat
Linux. I've
> found out that building mpatrol from source fails on both Fedora
Core 3 and
> the current version Fedora Core 4 (haven't tried on the old Fedora
Core 2),
> nor is there a binary package currently available for those OS
versions.
>
> Also you should have in mind that the full capabilities of mpatrol
can be used
> only when you recompile your source code with mpatrol (and include
mpatrol.h
> in your source files as described in the documentation), and then
link with
> the mpatrol single-thread or multi-thread library (and other
required
> libraries by it). If you do so you won't need to invoke mpatrol
like you did,
> i.e. "mpatrol -d ./myfile"; then you could just invoke your
program directly,
> "./myfile". Note also you need to set up an environment variable
> MPATROL_OPTIONS with appropriate mpatrol options. Another
possibility when
> using mpatrol on some supported platforms is to forgo the re-
compilation step
> of your source code (this is convenient if you only have object
code) but
> still link with the appropriate mpatrol library. See the
documentation for
> the possible variations of mpatrol usage on your platform.
>
> Back to the installation of mpatrol itself, in order to be able to
use it in
> the future in the abovementioned compile and/or link ways, beside
copying the
> mpatrol binary to your local bin directory as you seem to have
done
> correctly, you also need to copy the built mpatrol libraries to
your local
> library directory, as described in step 5 on
> http://www.cbmamiga.demon.co.uk/mpatrol/mpatrol_4.html. While I do
not see it
> mentioned, the same should apply for the user header file
mpatrol.h, which
> needs to be copied to your GNU GCC C/C++ headers directory. If you
use the
> GNU Build System, the copy step for the mpatrol executables, the
mpatrol
> libraries and the mpatrol headers as well should be done
automatically for
> you to the appropriate places when you do "make install" as a root
user.
> While it "should" -- be sure to check if it really did things
correctly.
>
> I hope that helps!
>
> -Vesko