[Prelude Hybrid IDS] #276: intruduced in r10136: unable to import PreludeEasy in Python
"Prelude Hybrid IDS" <[email protected]>
| Newsgroups | gmane.comp.security.ids.prelude.devel |
|---|---|
| Message-ID | <[email protected]> |
#276: intruduced in r10136: unable to import PreludeEasy in Python --------------------------------+------------------------------------------- Reporter: [email protected] | Owner: yoann Type: defect | Status: new Priority: normal | Milestone: Component: libprelude | Version: devel Severity: normal | Keywords: --------------------------------+------------------------------------------- Hello, Since the easy-binding branch was reorganized in r10136, I'm unable to load !PreludeEasy: {{{ #!python % python Python 2.4.4 (#2, Jan 3 2008, 13:36:28) [GCC 4.2.3 20071123 (prerelease) (Debian 4.2.2-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import PreludeEasy Traceback (most recent call last): File "<stdin>", line 1, in ? File "PreludeEasy.py", line 7, in ? import _PreludeEasy ImportError: ./_PreludeEasy.so: undefined symbol: fire_callback >>> }}} To solve the problem, I simply copied {{{bindings/c++/easy-python.cxx}}} and {{{bindings/c++/easy-python.h}}} in {{{bindings/python/}}} and modified Makefile.am like this : {{{ #!diff Index: python/Makefile.am =================================================================== --- python/Makefile.am (révision 10137) +++ python/Makefile.am (copie de travail) @@ -3,7 +3,7 @@ lib_LTLIBRARIES = libprelude_python.la libprelude_python_ladir = ${prefix}/lib/python/ -libprelude_python_la_SOURCES = ${EASY_SRCS} easy-idmef_wrap_python.cxx +libprelude_python_la_SOURCES = ${EASY_SRCS} easy-idmef_wrap_python.cxx easy-python.cxx libprelude_python_la_HEADERS = ${EASY_HDRS} libprelude_python_la_LDFLAGS = -L@top_builddir@/src/.libs -lprelude @libprelude_libs@ @LIBADD_DL@ @PTHREAD_LIBS@ `python-config --ldflags` libprelude_python_la_LIBADD = $(top_builddir)/bindings/c++/libprelude_easy.la }}} I didn't check if the perl binding had the same problem. Thanks, Olivier; -- Ticket URL: <https://trac.prelude-ids.org/ticket/276> Prelude Hybrid IDS <http://www.prelude-ids.org> The Prelude Hybrid Intrusion Detection System suite _______________________________________________ Prelude-devel site list [email protected] http://www.prelude-ids.org/mailman/listinfo/prelude-devel