In a previous post a work-around for a reported build failure
incorrectly stated 'autoconf' instead of 'automake'. Sorry. To
correct the build error shown below in Nigel's post...
> src/Makefile.am: required file `./depcomp' not found
I ran automake (not autoconf as in my original post)
auto> automake -a -c
src/Makefile.am: installing `./compile'
src/Makefile.am: installing `./depcomp'
The -a switch adds missing files that were distributed with Automake,
-c makes a copy instead of link to those files.
When I built on Ubuntu 7.10 I had the following errors also reported
by Nigel in his post...
> src/Makefile.am: object `tree.$(OBJEXT)' created both with
libtooland without
> src/Makefile.am: object `version.$(OBJEXT)' created both with
libtool and without
> src/Makefile.am: object `list.$(OBJEXT)' created both with libtool
and without
> src/Makefile.am: object `slots.$(OBJEXT)' created both with libtool
and without
> src/Makefile.am: object `utils.$(OBJEXT)' created both with libtool
and without
To fix this problem, I followed the suggestions at
http://www.gnu.org/software/libtool/manual/automake/Libtool-Issues.html
and changed the pkg/auto/src/Makefile.am, adding <prog>_CFLAGS =
$(AM_CFLAGS) lines as shown below.
--- Makefile.am.orig 2008-04-28 10:23:23.000000000 -0500
+++ Makefile.am 2008-04-28 10:07:57.000000000 -0500
@@ -47,14 +47,22 @@
mpatrol_SOURCES = mpatrol.c getopt.c version.c $(noinst_HEADERS)
+mpatrol_CFLAGS = $(AM_CFLAGS)
+
mprof_SOURCES = mprof.c graph.c getopt.c list.c tree.c version.c \
$(noinst_HEADERS)
+mprof_CFLAGS = $(AM_CFLAGS)
+
mptrace_SOURCES = mptrace.c getopt.c tree.c slots.c utils.c version.c \
$(noinst_HEADERS)
+mptrace_CFLAGS = $(AM_CFLAGS)
+
mleak_SOURCES = mleak.c getopt.c tree.c version.c $(noinst_HEADERS)
+mleak_CFLAGS = $(AM_CFLAGS)
+
libmpatrol_la_SOURCES = list.c tree.c slots.c utils.c memory.c heap.c
alloc.c \
info.c stack.c addr.c strtab.c symbol.c
signals.c \
diag.c option.c leaktab.c profile.c trace.c
inter.c \
I also found it necessary to run
aclocal and
libtoolize --force
to get around some ltconfig/ltmain.sh version incompatibilities with
Ubuntu.
--- Makefile.am.orig 2008-04-28 10:23:23.000000000 -0500
+++ Makefile.am 2008-04-28 10:07:57.000000000 -0500
@@ -47,14 +47,22 @@
mpatrol_SOURCES = mpatrol.c getopt.c version.c $(noinst_HEADERS)
+mpatrol_CFLAGS = $(AM_CFLAGS)
+
mprof_SOURCES = mprof.c graph.c getopt.c list.c tree.c version.c \
$(noinst_HEADERS)
+mprof_CFLAGS = $(AM_CFLAGS)
+
mptrace_SOURCES = mptrace.c getopt.c tree.c slots.c utils.c version.c \
$(noinst_HEADERS)
+mptrace_CFLAGS = $(AM_CFLAGS)
+
mleak_SOURCES = mleak.c getopt.c tree.c version.c $(noinst_HEADERS)
+mleak_CFLAGS = $(AM_CFLAGS)
+
libmpatrol_la_SOURCES = list.c tree.c slots.c utils.c memory.c heap.c
alloc.c \
info.c stack.c addr.c strtab.c symbol.c
signals.c \
diag.c option.c leaktab.c profile.c trace.c
inter.c \
I also found it necessary to run
aclocal and
libtoolize --force
to get around some ltconfig/ltmain.sh version incompatibilities with
Ubuntu.
--- In mpatrol@yahoogroups.com, "David" <david.lerner26@...> wrote:
>
> --- In mpatrol@yahoogroups.com, Nigel Horne <njh@> wrote:
> >
> > cd pkg/auto/
> > ./setup
> > ./configure
> > make
> >
> > gives:
> >
> > ...
> > cd .. \
> > && CONFIG_FILES=man/Makefile CONFIG_HEADERS= /bin/sh
> ./config.status
> > config.status: creating man/Makefile
> > config.status: executing depfiles commands
> > make[2]: Leaving directory `/home/njh/src/mpatrol/pkg/auto/man'
> > make[2]: Entering directory `/home/njh/src/mpatrol/pkg/auto/man'
> > make[2]: Nothing to be done for `all'.
> > make[2]: Leaving directory `/home/njh/src/mpatrol/pkg/auto/man'
> > Making all in src
> > make[2]: Entering directory `/home/njh/src/mpatrol/pkg/auto/src'
> > cd .. && automake --gnu src/Makefile
> > configure.in:65: warning: AC_CANONICAL_HOST invoked multiple times
> > autoconf/specific.m4:363: AC_CYGWIN is expanded from...
> > configure.in:65: the top level
> > src/Makefile.am: object `tree.$(OBJEXT)' created both with libtool
> and without
> > src/Makefile.am: object `version.$(OBJEXT)' created both with
> libtool and without
> > src/Makefile.am: object `list.$(OBJEXT)' created both with libtool
> and without
> > src/Makefile.am: object `slots.$(OBJEXT)' created both with libtool
> and without
> > src/Makefile.am: object `utils.$(OBJEXT)' created both with libtool
> and without
> > src/Makefile.am: required file `./depcomp' not found
> > make[2]: *** [Makefile.in] Error 1
> > make[2]: Leaving directory `/home/njh/src/mpatrol/pkg/auto/src'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/home/njh/src/mpatrol/pkg/auto'
> > make: *** [all] Error 2
> >
> > I can't find a reference to depcomp in any installation guide for
> mpatrol, is it
> > referring to http://www.fastcgi.com/devkit/depcomp?
> >
>
> Fixes suggested for a different tool seemed to solve the problem that
> you (and I) saw
> cd pkg/auto
> autoconf -c -a
> This also solves the problem for the missing pkg/auto/compile file,
> the next issue.
>