From: Bethany J. H. <be...@pi...> - 2005-05-13 23:33:42
|
Hi! I'm trying to compile python-ldap (2.0.7) on mac os x 10.4.0. It appears to be failing on missing symbols: ld: Undefined symbols: _ldap_attributetype_free _ldap_matchingrule_free _ldap_objectclass_free _ldap_str2attributetype _ldap_str2matchingrule _ldap_str2objectclass _ldap_str2syntax _ldap_syntax_free The same thing compiles just fine on mac os x 10.3.x. I'm including the same libraries on both compiles. I heard a rumor that this might be a known issue and easily solved through some magic gcc flag. However, I haven't found anything on the net that would tell me what magic gcc flag this would be. Do you guys know anything about this? Thanks! bjh |
From: Jens V. <je...@da...> - 2005-05-14 01:49:02
|
On May 14, 2005, at 01:34, Bethany Jane Hanson wrote: > The same thing compiles just fine on mac os x 10.3.x. I'm > including the same libraries on both compiles. Tiger has quite a few issues compiling certain things. For one, I have not found a way to compile Python 2.3.5 on it at all. 2.4.1 works fine. And python-ldap built with Python 2.4.1 works. But building for the system-python in /usr/bin fails with problems like the ones you saw. jens |
From: Bethany J. H. <be...@pi...> - 2005-05-16 21:07:13
|
interesting. i also heard this: "You need to un-define _XOPEN_SOURCE and _POSIX_C_SOURCE in order to successfully compile python sources on Tiger. Also, you need to use a build of Python that was configured on Tiger (either our 2.3 port or a 2.4.1 configured on Tiger)." I'm trying 2.4.1 out now. What a bummer. Thanks! bjh On May 13, 2005, at 6:48 PM, Jens Vagelpohl wrote: > > On May 14, 2005, at 01:34, Bethany Jane Hanson wrote: > >> The same thing compiles just fine on mac os x 10.3.x. I'm including >> the same libraries on both compiles. > > Tiger has quite a few issues compiling certain things. For one, I have > not found a way to compile Python 2.3.5 on it at all. 2.4.1 works > fine. And python-ldap built with Python 2.4.1 works. But building for > the system-python in /usr/bin fails with problems like the ones you > saw. > > jens |
From: Jens V. <je...@da...> - 2005-05-17 20:23:08
|
<putting this back on the list where it belongs> On May 17, 2005, at 21:58, Bethany Jane Hanson wrote: > Hi Jens! I tried building python 2.4.1 and python-ldap 2.0.7 last > night. Both of them built and installed without errors, but when I > ran Python and tried to use the ldap module it complained about > missing symbols again: > > ila:/tmp/python-ldap-2.0.7 root# /usr/local/bin/python > Python 2.4.1 (#1, May 17 2005, 11:58:55) > [GCC 3.3 20030304 (Apple Computer, Inc. build 1809)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> import ldap > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/local/lib/python2.4/site-packages/ldap/__init__.py", > line 21, in ? > from _ldap import * > ImportError: Failure linking new module: /usr/local/lib/python2.4/ > site-packages/_ldap.so: Symbol not found: _ldap_matchingrule_free > Referenced from: /usr/local/lib/python2.4/site-packages/_ldap.so > Expected in: dynamic lookup I did not see these problems after compiling Python 2.4.1 and python- ldap HEAD from CVS anymore, there's not much I can say - it worked for me. jens |
From: <mi...@st...> - 2005-05-17 20:36:24
|
Jens Vagelpohl wrote: > > On May 17, 2005, at 21:58, Bethany Jane Hanson wrote: > >> Hi Jens! I tried building python 2.4.1 and python-ldap 2.0.7 last >> night. Both of them built and installed without errors, but when I >> ran Python and tried to use the ldap module it complained about >> missing symbols again: >> [..] >> ImportError: Failure linking new module: /usr/local/lib/python2.4/ >> site-packages/_ldap.so: Symbol not found: _ldap_matchingrule_free >> Referenced from: /usr/local/lib/python2.4/site-packages/_ldap.so >> Expected in: dynamic lookup > > I did not see these problems after compiling Python 2.4.1 and python- > ldap HEAD from CVS anymore, there's not much I can say - it worked > for me. Well, then it should also work with python-ldap 2.0.7 compiled from source since at the moment there's no new code in CVS HEAD. Ciao, Michael. |