Project

General

Profile

Actions

Bug #1001

closed

The configure script does not check liburcu's binary library

Added by Philippe Proulx over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Target version:
Start date:
03/07/2016
Due date:
% Done:

100%

Estimated time:

Description

LTTng-tools's configure.ac only checks for liburcu function declarations in its installed headers using AC_CHECK_DECL().

If, for some reason, the system has the headers installed, but not the binary library, the configure script succeeds, but the build fails later with obvious linking errors.

This situation happens if you set the various environment variables to build a 32-bit version of LTTng-tools (CFLAGS, LDFLAGS and so on) but only the 64-bit version of liburcu is installed. In this case, headers are found, for example in /usr/include, and configure succeeds, even if no 32-bit liburcu is installed.

It is okay to check the declarations, but AC_CHECK_LIB() should also be used to check the existence of the chosen symbols in an installed binary liburcu.

See LTTng-UST's configure.ac which seems to do the right thing.

Actions #1

Updated by Philippe Proulx over 8 years ago

  • Description updated (diff)
Actions #2

Updated by Jérémie Galarneau over 8 years ago

  • Target version set to 2.8
Actions #3

Updated by Jérémie Galarneau over 8 years ago

  • Assignee set to Philippe Proulx
Actions #4

Updated by Jérémie Galarneau over 8 years ago

  • Status changed from New to Confirmed
Actions #5

Updated by Philippe Proulx over 8 years ago

  • Status changed from Confirmed to Resolved
  • % Done changed from 0 to 100

Applied in changeset tools|commit:9eadc48f682566355e03e85f0c4dabedefd86d53.

Actions

Also available in: Atom PDF