[lttng-dev] [PATCH lttng-tools] Add dependency to libcommon for python binding
Paul Woegerer
paul_woegerer at mentor.com
Thu Jun 5 06:39:48 EDT 2014
Using the python binding library currently results in in the following error message:
ImportError: No module named '_lttng'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./test_daemon.py", line 31, in <module>
from test_utils import *
File "/home/pwoegere/MGC/lttng2_stack_latest/lttng-tools/tests/utils/test_utils.py", line 33, in <module>
from lttng import *
File "/home/pwoegere/MGC/lttng2_stack_latest/lttng-tools/extras/bindings/swig/python/lttng.py", line 34, in <module>
_lttng = swig_import_helper()
File "/home/pwoegere/MGC/lttng2_stack_latest/lttng-tools/extras/bindings/swig/python/lttng.py", line 26, in swig_import_helper
import _lttng
ImportError: /home/pwoegere/MGC/lttng2_stack_latest/lttng-tools/extras/bindings/swig/python/.libs/_lttng.so: undefined symbol: log_add_time
This patch adds the missing dependency to libcommon that contains the definition of log_add_time.
Signed-off-by: Paul Woegerer <paul_woegerer at mentor.com>
---
extras/bindings/swig/python/Makefile.am | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/extras/bindings/swig/python/Makefile.am b/extras/bindings/swig/python/Makefile.am
index caf1934..ec35930 100644
--- a/extras/bindings/swig/python/Makefile.am
+++ b/extras/bindings/swig/python/Makefile.am
@@ -13,7 +13,8 @@ MAINTAINERCLEANFILES = lttng_wrap.c lttng.py
nodist__lttng_la_SOURCES = lttng_wrap.c
_lttng_la_LDFLAGS = -module
_lttng_la_LIBADD = $(top_srcdir)/src/lib/lttng-ctl/liblttng-ctl.la \
- $(top_srcdir)/src/common/sessiond-comm/libsessiond-comm.la
+ $(top_srcdir)/src/common/sessiond-comm/libsessiond-comm.la \
+ $(top_srcdir)/src/common/libcommon.la
lttng_wrap.c: lttng.i
$(SWIG) -python -I. -I$(top_srcdir)/src/common/sessiond-comm lttng.i
--
1.9.3
More information about the lttng-dev
mailing list