google-code-export / ruby-activeldap

Automatically exported from code.google.com/p/ruby-activeldap
Other
1 stars 1 forks source link

LDAP_OPT_X_TLS_PROTOCOL is undeclared #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download the tarball and extract it
2. Run `ruby extconf.rb'
3. Run `make'

What is the expected output? What do you see instead?
`make' should complete, but it spews out this error report instead:
cc -I. -I. -I/usr/lib/ruby/1.8/i486-linux -I. -DUSE_OPENLDAP2
-DUSE_OPENLDAP -DLDAP_DEPRECATED -D_REENTRANT -DHAVE_LDAP_H -DHAVE_LBER_H
-DHAVE_OPENSSL_SSL_H -DHAVE_OPENSSL_CRYPTO_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 -DRUBY_VERSION_CODE=187 
-D_FILE_OFFSET_BITS=64  -fPIC -fno-strict-aliasing -g -g -O2  -fPIC   -c conn.c
conn.c: In function ‘rb_ldap_conn_set_option’:
conn.c:501: error: ‘LDAP_OPT_X_TLS_PROTOCOL’ undeclared (first use in this
function)
conn.c:501: error: (Each undeclared identifier is reported only once
conn.c:501: error: for each function it appears in.)
conn.c: In function ‘rb_ldap_conn_get_option’:
conn.c:631: error: ‘LDAP_OPT_X_TLS_PROTOCOL’ undeclared (first use in this
function)
make: *** [conn.o] Error 1

What version of the product are you using? On what operating system?
~/code/ruby-ldap-0.9.8% uname -a
Linux square 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009
i686 GNU/Linux

Please provide any additional information below.
I think I have read somewhere that it should be LDAP_OPT_X_TLS_PROTOCOL_MIN

Original issue reported on code.google.com by henrik.h...@gmail.com on 12 May 2009 at 7:11

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This is fixed in the trunk: 
http://code.google.com/p/ruby-activeldap/source/detail?r=959

Original comment by fiber...@gmail.com on 14 May 2009 at 12:26

GoogleCodeExporter commented 9 years ago
You need install Ruby/LDAP from trunk:
# svn checkout http://ruby-activeldap.googlecode.com/svn/ldap/trunk/ 
ruby-ldap-ro
# cd ruby-ldap-ro
# ruby extconf.rb
# make && make install

Original comment by Alexey.Chebotar@gmail.com on 21 May 2009 at 11:41