Project

General

Profile

Actions

Bug #151

closed

Application that uses "lttng.h" fail to compile due to "opt_quiet" is not defined

Added by Tan le tran over 12 years ago. Updated over 12 years ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
Start date:
03/05/2012
Due date:
% Done:

100%

Estimated time:

Description

lttng version used: ===================
userspace-rcu : mar-04 8bcbd94a60f624c1faae1481fcb0888aec25b481
lttng-ust : mar-02 bf1175c265545d44e4a898e0bc520d366cd7882a
lttng-tools : mar-05 (09:56) 80e327fa80045f6b470ac76963fc4b5d396a80a9
babeltrace : mar-05 (12:38) 94fe441cc55114766436bc48bb7db7acedc19632

Problem: ========
Application-X , that tries to link to lttng library: " -lttng-ctl",
fails to compile with the following error:

:
/local/scratch/lmctdlt/my_DX_SYSROOT//usr/lib/liblttng-ctl.so: undefined reference to `opt_quiet'
collect2: ld returned 1 exit status
make: *** [temp_app] Error 1

Work around: ============
Have to define var "opt_quiet" in Application-X.
However, there is no information on how this var should be used on the Application side.


Files

temp_app.rar (1.42 KB) temp_app.rar source and log files Tan le tran, 03/05/2012 04:40 PM
Actions #1

Updated by David Goulet over 12 years ago

  • Status changed from New to Confirmed
  • Assignee set to David Goulet
  • Priority changed from Normal to High
  • Target version set to 2.0 stable

Indeed. The sessiond communication library uses the error.h file which export opt_quiet to quiet outputs across the code base.

The fix will be to rename this variable to lttng_opt_quiet and declare it in the library as a global variable.

Future version will probably implement a lttng_set_quiet API call but not for 2.0-stable.

Actions #2

Updated by David Goulet over 12 years ago

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

Also available in: Atom PDF