<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>25143</bug_id>
          
          <creation_ts>2003-07-23 15:24 0000</creation_ts>
          <short_desc>combination of built in functionality for python-ldap2.0.0pre13-ebuild prevents usage of package</short_desc>
          <delta_ts>2003-09-02 16:55:20 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>wido.depping@tu-clausthal.de</reporter>
          <assigned_to>python@gentoo.org</assigned_to>
          <cc>blauwers@gentoo.org</cc>
    
    <cc>python@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>wido.depping@tu-clausthal.de</who>
            <bug_when>2003-07-23 15:24:33 0000</bug_when>
            <thetext>If i use python-ldap2.0.0pre13 from portage, the package can&apos;t be imported to my 
application. i get the following error: 
 
matrix::bin&gt; ./ldap-commander 
Traceback (most recent call last): 
  File &quot;./ldap-commander&quot;, line 18, in ? 
    run_it() 
  File &quot;./ldap-commander&quot;, line 10, in run_it 
    gui = MainWin(None) 
  File &quot;./../lib/ldap-commander/base/gui/MainWin.py&quot;, line 19, in __init__ 
    self.load_plugins() 
  File &quot;./../lib/ldap-commander/base/gui/MainWin.py&quot;, line 43, in load_plugins 
    pluginObject = PluginLoader(self.check_to_load()) 
  File &quot;./../lib/ldap-commander/base/backend/PluginLoader.py&quot;, line 29, in __init__ 
    self.load_plugin_code() 
  File &quot;./../lib/ldap-commander/base/backend/PluginLoader.py&quot;, line 63, in 
load_plugin_code 
    exec fileObject in locals() 
  File 
&quot;/daten/src/praktikum/ldap-commander/lib/ldap-commander/plugins/search_plugin/search_plugin.py&quot;, 
line 12, in ? 
    from plugins.search_plugin.SearchView import SearchView 
  File &quot;./../lib/ldap-commander/plugins/search_plugin/SearchView.py&quot;, line 11, in ? 
    from base.utils.gui.SearchForm import SearchForm 
  File &quot;./../lib/ldap-commander/base/utils/gui/SearchForm.py&quot;, line 10, in ? 
    import ldap 
  File &quot;/usr/lib/python2.2/site-packages/ldap/__init__.py&quot;, line 21, in ? 
    from _ldap import * 
ImportError: /usr/lib/python2.2/site-packages/_ldap.so: undefined symbol: 
ldap_first_reference 
 
If I compile the package on my own, the import of python-ldap works.  
I had a look in the ebuild and noticed, that the settings for the variable ${mylibs} 
are different than in my setup.cfg. 
here is my line: 
libs = ldap lber ssl crypto 
 
As you may notice, I don&apos;t use SASL and I use ldap instead of ldap_r (which is always 
used in the ebuild). After I changed the ebuild to use ldap instead of ldap_r, the 
ebuild and the import of the package into my application worked, too. 
Maybe you know, what the difference between ldap and ldap_r is? 
 
As a sidenote, the package works without any problems in my application. I use a lot 
of the built-in functionality and never experienced an error from this release of the 
python-ldap package. Maybe it can be moved to stable soon??? 

Reproducible: Always
Steps to Reproduce:
1. run &apos;python&apos; to enter the python-interpreter 
2. &apos;import ldap&apos; 
Actual Results:  
Import Error: 
&gt;&gt;&gt; import ldap 
Traceback (most recent call last): 
  File &quot;&lt;stdin&gt;&quot;, line 1, in ? 
  File &quot;/usr/lib/python2.2/site-packages/ldap/__init__.py&quot;, line 21, in ? 
    from _ldap import * 
ImportError: /usr/lib/python2.2/site-packages/_ldap.so: undefined symbol: 
ldap_first_reference 
 

Expected Results:  
The module should have been imported.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>liquidx@gentoo.org</who>
            <bug_when>2003-09-02 16:55:20 0000</bug_when>
            <thetext>i&apos;m not too sure what the difference is between ldap and ldap_r. according to your information, it is probably something to do with an optimised build or something with sasl. i&apos;ve changed it to use ldap instead of ldap_r when without sasl.

i want to test it for a bit longer before putting it into stable, especially since so little people use this. but it will be put into stable soon.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>