Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 88135 invoked from network); 23 Oct 2007 17:15:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Oct 2007 17:15:34 -0000 Received: (qmail 84524 invoked by uid 500); 23 Oct 2007 17:15:21 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 84502 invoked by uid 500); 23 Oct 2007 17:15:21 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 84493 invoked by uid 99); 23 Oct 2007 17:15:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Oct 2007 10:15:21 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [166.70.186.42] (HELO onyx.sharktooth.org) (166.70.186.42) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Oct 2007 17:15:23 +0000 Received: from corvette.dnsdhcp.provo.novell.com ([137.65.60.38]) by onyx.sharktooth.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1IkNHV-000Kf4-OI; Tue, 23 Oct 2007 11:11:08 -0600 Message-ID: <471E2BC7.7050000@joe-lewis.com> Date: Tue, 23 Oct 2007 11:13:43 -0600 From: Joe Lewis User-Agent: Thunderbird 1.5.0.8 (X11/20060911) MIME-Version: 1.0 To: karim Bendadda , modules-dev@httpd.apache.org References: <9dc7421e0710230629t467b08cdkd7d4ddbb4fbf4700@mail.gmail.com> <471E01F6.3050900@joe-lewis.com> <9dc7421e0710230724x54804c55j83a1fad186099bcd@mail.gmail.com> <471E044E.20900@joe-lewis.com> <9dc7421e0710230731l2d6469b4k9cc8fd7ac1a65ba0@mail.gmail.com> <471E06FC.6080406@joe-lewis.com> <9dc7421e0710230749q76f2563ap22f9365c72dbbb88@mail.gmail.com> <471E0D07.7020205@joe-lewis.com> <9dc7421e0710230817v4a9b7baescb6d8da7e4284d26@mail.gmail.com> <471E10ED.7090908@joe-lewis.com> <9dc7421e0710230824q106a8043j75573b128d01672b@mail.gmail.com> In-Reply-To: <9dc7421e0710230824q106a8043j75573b128d01672b@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 137.65.60.38 X-SA-Exim-Mail-From: joe@joe-lewis.com X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on onyx.sharktooth.org X-Spam-Level: Subject: Re: Have you tried to compile mod_auth_ldap?? X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on onyx.sharktooth.org) X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.1.7 I apologize for cluttering up all of the mailboxes on this list. I am sending this response back out to the list so that is is archived for any search lists (if anyone tries this in the future). The answer isn't necessarily good, but it does work. DISCLAIMER : Please note that this list doesn't support this extension - but if questions on compiling or coding or porting a module arise, we can help as long as people do a little leg work. I only jumped in because I've used the module before. I am not the author. Now, to the battlements : I dropped back to the 2.12 (which is a subsequent version of the one I have on my BSD server). I pulled down the source, and tried to compile it (it claimed to work with Apache 2.0, and I've had great success moving modules from 2.0 to 2.2.x). Note, this test was not done on the BSD server, but on a SLES "wonderland" server. Once configured using the line : ./configure --with-apache-dir=/usr/ --with-ldap-dir=/usr/ and adding the /usr/sbin/apxs2 to the APXS= setting in the Makefile (I'm on SuSE, again), I tried to run a "make", which failed with the same errors. Apparently, the author of the module went back to 1.3.x mentality and had the same include line in there that was failing for you - so 2.2 is struggling with that. I changed from "ap_compat.h" to "apr_compat.h", and tried it again. This time it failed on "APR_XOffsetOf" - which is not defined anywhere. After changing all occurrences of this to "APR_OFFSETOF", (and also an "ap_array_header_t" to "apr_array_header_t"), it compiles. But it complains that it isn't portable due to the lib-tool used. This could be system-specific (I'm guessing that it is). You will end up with a mod_auth_ldap.so in a .libs/ directory, and you should be able to use that. I strongly suggest that you take this information back to the original author. We can't fix the code for the author on that website, and since Karim has already tried, I suggest Karim continue to do so. The same include issues will exist in the 3.11 version. I don't know what else is in that one. Joe karim Bendadda wrote: > > > > > > > > > > I think that's compile but the make doesn't work. I > tried > > to contact > > > > the author he doesn't answer... > This is too bad. It had a good life as an extension. The current modules shipping with the apache source should suffice for what I need in the future. Joe -- Joseph Lewis "Divide the fire, and you will sooner put it out." - Publius Syrus