From owner-freebsd-questions@FreeBSD.ORG Wed Oct 15 07:38:28 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 41A0C16A4B3 for ; Wed, 15 Oct 2003 07:38:28 -0700 (PDT) Received: from mx1.lphp.org (APastourelles-107-1-22-68.w81-248.abo.wanadoo.fr [81.248.17.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A1DE43FBD for ; Wed, 15 Oct 2003 07:38:26 -0700 (PDT) (envelope-from ajacoutot@lphp.org) Received: from lphp.org (modem214.metz.imaginet.fr [195.68.12.214] (may be forged)) by mx1.lphp.org (8.12.8p2/8.12.8) with ESMTP id h9FEclTI099893 for ; Wed, 15 Oct 2003 16:38:47 +0200 (CEST) (envelope-from ajacoutot@lphp.org) Message-ID: <3F8D5BDE.5030107@lphp.org> Date: Wed, 15 Oct 2003 16:38:22 +0200 From: Antoine Jacoutot User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5b) Gecko/20031014 Thunderbird/0.2 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: error compiling amd with ldap X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2003 14:38:28 -0000 Hi :) I tried to recompile amd so it would have LDAP support. What I did is add the following line in /usr/src/usr.sbin/amd/amd/Makefile : SRCS+= info_ldap.c Unfortunately id does not work :( I did the following: $ cd /usr/src/usr.sbin/amd $ make clean && make depend && make I then get the following error: /usr/src/contrib/amd/amd/info_ldap.c:403: `LDAP_SUCCESS' undeclared (first use in this function) /usr/src/contrib/amd/amd/info_ldap.c:410: `LDAP_NO_SUCH_OBJECT' undeclared (first use in this function) /usr/src/contrib/amd/amd/info_ldap.c:423: structure has no member named `ldap' /usr/src/contrib/amd/amd/info_ldap.c:431: syntax error before '=' token /usr/src/contrib/amd/amd/info_ldap.c:432: structure has no member named `ldap' /usr/src/contrib/amd/amd/info_ldap.c:432: syntax error before "entry" /usr/src/contrib/amd/amd/info_ldap.c:438: syntax error before "entry" /usr/src/contrib/amd/amd/info_ldap.c:452: syntax error before "entry" /usr/src/contrib/amd/amd/info_ldap.c: In function `amu_ldap_mtime': /usr/src/contrib/amd/amd/info_ldap.c:473: structure has no member named `ldap' *** Error code 1 Stop in /usr/src/usr.sbin/amd/amd. *** Error code 1 Stop in /usr/src/usr.sbin/amd. I don't really know what to do, I guess ldap libraries aren't found or something, although I do have OpenLDAP installed and working (as a samba PDC and Unix users authentication system). Thanks in advance for your ideas... Antoine