Bug #151
closedApplication that uses "lttng.h" fail to compile due to "opt_quiet" is not defined
100%
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
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.
Updated by David Goulet over 12 years ago
- Status changed from Confirmed to Resolved
- % Done changed from 0 to 100
Applied in changeset 97e190465f6a2a7d5bf72f445bb4d9d8544a0916.