Compiler error trying to build libldap-ruby from source

Bug #383371 reported by Xeno Campanoli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libldap-ruby (Debian)
Fix Released
Unknown
libldap-ruby (Ubuntu)
Fix Released
High
Unassigned
openldap (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

>> root@leopard:~/libldap-ruby-0.9.7# make
>> gcc -I. -I. -I/usr/local/lib/ruby/1.8/i686-linux -I. -DUSE_OPENLDAP2 -DUSE_OPENLDAP -DLDAP_DEPRECATED -D_REENTRANT -DHAVE_LDAP_H -DHAVE_LBER_H -DHAVE_LDAP_INIT -DHAVE_LDAP_SET_OPTION -DHAVE_LDAP_GET_OPTION -DHAVE_LDAP_START_TLS_S -DHAVE_LDAP_MEMFREE -DHAVE_LDAP_PERROR -DHAVE_LDAP_SORT_ENTRIES -DHAVE_LDAP_SASL_BIND_S -DHAVE_LDAP_COMPARE_S -DHAVE_LDAP_ADD_EXT_S -DHAVE_LDAP_COMPARE_EXT_S -DHAVE_LDAP_DELETE_EXT_S -DHAVE_LDAP_MODIFY_EXT_S -DHAVE_LDAP_SEARCH_EXT_S -DHAVE_LDAP_UNBIND_EXT_S -DHAVE_LDAP_SASL_INTERACTIVE_BIND_S -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c ldap.c
>> ldap.c: In function ‘Init_ldap’:
>> ldap.c:424: error: ‘LDAP_OPT_X_TLS_PROTOCOL’ undeclared (first use in this function)
>> ----snip----
>> I followed the directions in the README under 'BUILDING'. I was able to get the extconf.rb to run after doing apt-get install libldap2-dev. I had already successfully built and installed ruby and openssl from source on this Ubuntu Server: root@leopard:~# uname -a
>> Linux leopard 2.6.28-11-server #42-Ubuntu SMP Fri Apr 17 02:48:10 UTC 2009 i686 GNU/Linux

 LDAP_OPT_X_TLS_PROTOCOL does not exist in the tree except in conn.c and ldap.c. LOAD_OPT_X_TLS_PROTOCOL in the directory tree. It occurs in /usr/include/ldap.h as a macro taking two arguments, but not as a simple preprocessor symbol, which is the usage in ldap.c and conn.c.

Steve Langasek (vorlon)
Changed in libldap-ruby (Ubuntu):
importance: Undecided → High
status: New → Triaged
Changed in libldap-ruby (Debian):
status: Unknown → New
Changed in libldap-ruby (Debian):
status: New → Fix Released
Revision history for this message
Chuck Short (zulcss) wrote :

This should be fixed for lucid as well.

Regards
chuck

Changed in libldap-ruby (Ubuntu):
status: Triaged → Fix Released
Changed in openldap (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.