Project

General

Profile

Actions

Bug #779

closed

Out-of-tree build does not work

Added by Simon Marchi almost 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
Start date:
04/08/2014
Due date:
% Done:

0%

Estimated time:

Description

When trying to build lttng-tools out of tree, I get the following:

Making all in src
make[1]: Entering directory `/home/simark/build/lttng-tools/src'
Making all in common
make[2]: Entering directory `/home/simark/build/lttng-tools/src/common'
Making all in compat
make[3]: Entering directory `/home/simark/build/lttng-tools/src/common/compat'
  CC       compat-fcntl.lo
  CC       compat-epoll.lo
  CCLD     libcompat.la
make[3]: Leaving directory `/home/simark/build/lttng-tools/src/common/compat'
Making all in health
make[3]: Entering directory `/home/simark/build/lttng-tools/src/common/health'
  CC       health.lo
  CCLD     libhealth.la
make[3]: Leaving directory `/home/simark/build/lttng-tools/src/common/health'
Making all in hashtable
make[3]: Entering directory `/home/simark/build/lttng-tools/src/common/hashtable'
  CC       hashtable.lo
  CC       utils.lo
  CC       rculfhash.lo
  CC       rculfhash-mm-chunk.lo
  CC       rculfhash-mm-mmap.lo
  CC       rculfhash-mm-order.lo
  CCLD     libhashtable.la
make[3]: Leaving directory `/home/simark/build/lttng-tools/src/common/hashtable'
Making all in kernel-ctl
make[3]: Entering directory `/home/simark/build/lttng-tools/src/common/kernel-ctl'
  CC       kernel-ctl.lo
  CCLD     libkernel-ctl.la
make[3]: Leaving directory `/home/simark/build/lttng-tools/src/common/kernel-ctl'
Making all in sessiond-comm
make[3]: Entering directory `/home/simark/build/lttng-tools/src/common/sessiond-comm'
  CC       sessiond-comm.lo
  CC       unix.lo
  CC       inet.lo
  CC       inet6.lo
  CCLD     libsessiond-comm.la
make[3]: Leaving directory `/home/simark/build/lttng-tools/src/common/sessiond-comm'
Making all in relayd
make[3]: Entering directory `/home/simark/build/lttng-tools/src/common/relayd'
  CC       relayd.lo
  CCLD     librelayd.la
make[3]: Leaving directory `/home/simark/build/lttng-tools/src/common/relayd'
Making all in kernel-consumer
make[3]: Entering directory `/home/simark/build/lttng-tools/src/common/kernel-consumer'
  CC       kernel-consumer.lo
  CCLD     libkernel-consumer.la
make[3]: Leaving directory `/home/simark/build/lttng-tools/src/common/kernel-consumer'
Making all in ust-consumer
make[3]: Entering directory `/home/simark/build/lttng-tools/src/common/ust-consumer'
  CC       ust-consumer.lo
  CCLD     libust-consumer.la
make[3]: Leaving directory `/home/simark/build/lttng-tools/src/common/ust-consumer'
Making all in testpoint
make[3]: Entering directory `/home/simark/build/lttng-tools/src/common/testpoint'
  CC       testpoint.lo
  CCLD     libtestpoint.la
make[3]: Leaving directory `/home/simark/build/lttng-tools/src/common/testpoint'
Making all in index
make[3]: Entering directory `/home/simark/build/lttng-tools/src/common/index'
  CC       index.lo
  CCLD     libindex.la
make[3]: Leaving directory `/home/simark/build/lttng-tools/src/common/index'
Making all in config
make[3]: Entering directory `/home/simark/build/lttng-tools/src/common/config'
  CC       libconfig_la-ini.lo
  CC       libconfig_la-config.lo
../../../../../src/lttng-tools/src/common/config/config.c:30:29: fatal error: common/defaults.h: No such file or directory
 #include <common/defaults.h>
                             ^
compilation terminated.
make[3]: *** [libconfig_la-config.lo] Error 1
make[3]: Leaving directory `/home/simark/build/lttng-tools/src/common/config'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/simark/build/lttng-tools/src/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/simark/build/lttng-tools/src'
make: *** [all-recursive] Error 1

Actions #1

Updated by David Goulet almost 10 years ago

  • Status changed from New to Confirmed
  • Target version set to 2.5

Currently the case for the upstream master. The branch 2.4.x is working fine here.

Actions #2

Updated by David Goulet almost 10 years ago

  • Status changed from Confirmed to Resolved

Fixed by:

commit 63658610ed89c15be360e214e3df023272cddad1
Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Date:   Mon May 5 10:41:46 2014 -0400

    Fix: Out of tree build fails in libconfig

    libconfig_la_CPPFLAGS should also include the top-level AM_CPPFLAGS.

    Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
    Signed-off-by: David Goulet <dgoulet@efficios.com>
Actions

Also available in: Atom PDF