On Fri, 19 Jul 2013, Lukas Slebodnik wrote:
On (19/07/13 16:29), Alexander Bokovoy wrote:
Hi!
Apparently, getgrouplist(3) call is not available in Python older than
Python 3.3. So I agreed with Jakub to have it bound to pysss Python
module. We need this call to obtain list of groups trusted domain user
belongs to for HBAC testing in FreeIPA.
Additionally, I've fixed bug with linking of pysss. This patch is
relevant to 1.10 as well, while the first one is needed in sssd 1.11.
--
/ Alexander Bokovoy
From 37261eda5eddad3edf94e1aefc6d912bf1490a2d Mon Sep 17 00:00:00 2001
From: Alexander Bokovoy <aboko...@redhat.com>
Date: Fri, 19 Jul 2013 16:22:10 +0300
Subject: [PATCH 1/2] build: fix dependencies for pysss module
https://fedorahosted.org/sssd/ticket/2025
---
Makefile.am | 1 +
1 file changed, 1 insertion(+)
diff --git a/Makefile.am b/Makefile.am
index 5158434..9498d50 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1758,6 +1758,7 @@ pysss_la_CFLAGS = \
$(AM_CFLAGS) \
$(PYTHON_CFLAGS)
pysss_la_LIBADD = \
+ $(SSSD_INTERNAL_LTLIBS) \
$(PYTHON_BINDINGS_LIBS) \
$(PYTHON_LIBS)
pysss_la_LDFLAGS = \
What kind of dependency problem? I could not reproduce it neither with fedora
nor ubuntu.
I have also tried to compile pysss.la as a static library.
I provided enough info in the ticket :)
Have you tried actually using the module?
$ python
Python 2.7.5 (default, May 16 2013, 13:44:12)
[GCC 4.8.0 20130412 (Red Hat 4.8.0-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import pysss
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /usr/lib64/python2.7/site-packages/pysss.so: undefined symbol:
debug_timestamps
$ rpm -q sssd-common
sssd-common-1.10.0-16.fc19.x86_64
If you link against libsss_debug, you'll get error of missing sysdb_*
symbols and so on, you need to link against SSSD_INTERNAL_LTLIBS.
--
/ Alexander Bokovoy
_______________________________________________
sssd-devel mailing list
sssd-devel@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/sssd-devel