From ruby-talk-admin@ruby-lang.org Fri Dec 16 02:19:07 2005 Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (8.12.3/8.12.3/Debian-6.6) with ESMTP id jBFHJ7Zk029259; Fri, 16 Dec 2005 02:19:07 +0900 Received: from funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id BAA705AA0; Fri, 16 Dec 2005 02:19:11 +0900 (JST) Received: from localhost (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id B80FCF04850; Fri, 16 Dec 2005 02:19:11 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 7F9A3F0484A; Fri, 16 Dec 2005 02:19:10 +0900 (JST) Received: from beryllium.ruby-lang.org (beryllium.ruby-lang.org [210.163.138.100]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 2D96B630028; Fri, 16 Dec 2005 02:19:10 +0900 (JST) Received: from beryllium.ruby-lang.org (beryllium.ruby-lang.org [127.0.0.1]) by beryllium.ruby-lang.org (Postfix) with ESMTP id 51B1133CD8; Fri, 16 Dec 2005 02:19:09 +0900 (JST) Received: from localhost (beryllium.ruby-lang.org [127.0.0.1]) by beryllium.ruby-lang.org (Postfix) with ESMTP id 1226133DC9 for ; Fri, 16 Dec 2005 02:19:01 +0900 (JST) Received: from beryllium.ruby-lang.org ([127.0.0.1]) by localhost (beryllium.ruby-lang.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11204-06 for ; Fri, 16 Dec 2005 02:19:00 +0900 (JST) Received: from uswgco35.uswest.com (uswgco35.uswest.com [199.168.32.124]) by beryllium.ruby-lang.org (Postfix) with ESMTP id 7F77833CD8 for ; Fri, 16 Dec 2005 02:19:00 +0900 (JST) Received: from egate-ne7.uswc.uswest.com (egate-ne7.uswc.uswest.com [151.117.69.18]) by uswgco35.uswest.com (8/8) with ESMTP id jBFHIbNa003612 for ; Thu, 15 Dec 2005 10:18:50 -0700 (MST) Received: from itomae2ksm02.AD.QINTRA.COM (localhost [127.0.0.1]) by egate-ne7.uswc.uswest.com (8.12.10/8.12.10) with ESMTP id jBFHIbCi028934 for ; Thu, 15 Dec 2005 11:18:37 -0600 (CST) Received: from QTOMAE2K3M01.AD.QINTRA.COM ([10.6.9.71]) by itomae2ksm02.AD.QINTRA.COM with Microsoft SMTPSVC(6.0.3790.211); Thu, 15 Dec 2005 11:18:37 -0600 Delivered-To: ruby-talk@ruby-lang.org Date: Fri, 16 Dec 2005 02:19:01 +0900 Posted: Thu, 15 Dec 2005 11:18:36 -0600 From: "Berger, Daniel" Reply-To: ruby-talk@ruby-lang.org Subject: Re: LDAP from ruby To: ruby-talk@ruby-lang.org (ruby-talk ML) Message-Id: <39AA6550E5AA554AB1456707D6E5563DBCFD77@QTOMAE2K3M01.AD.QINTRA.COM> X-ML-Name: ruby-talk X-Mail-Count: 73 X-MLServer: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (only members can post) X-ML-Info: If you have a question, send e-mail with the body "help" (without quotes) to the address ruby-talk-ctl@ruby-lang.org; help= X-Original-To: ruby-talk@ruby-lang.org X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: LDAP from ruby Thread-Index: AcYBjYrBN5Dx4C90Q+O3YNaYEN/uvgAC8/dQ X-OriginalArrivalTime: 15 Dec 2005 17:18:37.0416 (UTC) FILETIME=[95F68E80:01C6019B] X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ruby-lang.org X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on beryllium.ruby-lang.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=7.0 tests=AWL,BAYES_00, CONTENT_TYPE_PRESENT,FAKEDWORD_BACKQUOTE,MIMEQENC,QENCPTR1, RCVDFRMLOCALIP,THREAD_INDEX,THREAD_TOPIC autolearn=no version=3.0.3 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Precedence: bulk Lines: 63 List-Id: ruby-talk.ruby-lang.org List-Software: fml [fml 4.0.3 release (20011202/4.0.3)] List-Post: List-Owner: List-Help: List-Unsubscribe: X-Virus-Scanned: by AMaViS snapshot-20020531 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by blade.nagaokaut.ac.jp id jBFHJ7Zk029259 > -----Original Message----- > From: gregarican [mailto:greg.kujawa@gmail.com] > Sent: Thursday, December 15, 2005 8:38 AM > To: ruby-talk ML > Subject: Re: LDAP from ruby > Personally I ran into problems getting Ruby's LDAP package to > compile in my Win32 environment. I tried using MSVC, Borland, > etc. to no avail. So I abandoned trying at the point of > getting myself tangled up in all of the extconf/mkmf stuff > that was over my head. > > Perhaps there are others who have succeeded in this area. If > so I'd love to hear from them :-) I just tried. First, pass "--with-wldap32" to extconf.rb. If you get a an error regarding dlltool along the lines of "no such file or directory", go to line 168 and put the word 'lib' in front of dll tool, so that the command looks like: `lib dlltool --dllname ...` However, after trying that, I ended up with these errors: C:\ruby\src\ruby-ldap-0.9.2>nmake Microsoft (R) Program Maintenance Utility Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. cl -nologo -MD -Zi -O2b2xg- -G6 -DUSE_WLDAP32 -I./win -I/usr/local/include -I. -Ic:/ruby/lib /ruby/1.8/i386-mswin32 -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -I. -DHAVE_WINLDAP_H -DHAVE_WINLBER_H -DH AVE_LDAP_INIT -DHAVE_LDAP_SET_OPTION -DHAVE_LDAP_GET_OPTION -DHAVE_LDAP_MEMFREE -DHAVE_LDAP_PERROR - DHAVE_LDAP_SSLINIT -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 -I. -I./.. -I./../missing -c -Tcconn .c conn.c win\winldap.h(188) : error C2059: syntax error : '}' win\winldap.h(199) : error C2059: syntax error : '}' win\winldap.h(230) : error C2059: syntax error : '}' win\winldap.h(236) : error C2011: 'timeval' : 'struct' type redefinition C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Include\WinSock.h(97) : see decla ration of 'timeval' conn.c(8) : fatal error C1083: Cannot open include file: 'sys/time.h': No such file or directory NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. Looking at win\winldap.h I don't understand why those are syntax errors. The timeval struct definition can be removed altogether I think. An #ifdef check needs to be added to conn.c for sys/time.h. In short, ruby-ldap needs some TLC. If you can solve those issues, it should work. Regards, Dan