From owner-freebsd-questions@FreeBSD.ORG Mon Oct 27 00:03:07 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 900C616A4B3 for ; Mon, 27 Oct 2003 00:03:07 -0800 (PST) Received: from proxy.riic.at (postoffice.riic.at [140.78.161.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEA5B43F93 for ; Mon, 27 Oct 2003 00:03:05 -0800 (PST) (envelope-from hueber@riic.at) Received: from hanni.riic.uni-linz.ac.at (hanni.riic.uni-linz.ac.at [140.78.161.78])h9R830Pw006021; Mon, 27 Oct 2003 09:03:00 +0100 Date: Mon, 27 Oct 2003 09:03:00 +0100 From: Gernot Hueber To: Antoine Jacoutot Message-ID: <20031027080300.GG36100@hanni.riic.uni-linz.ac.at> References: <1067071545.3f9a383a03c1c@webmail.lphp.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1067071545.3f9a383a03c1c@webmail.lphp.org>; from ajacoutot@lphp.org on Sa, Okt 25, 2003 at 10:45:46 +0200 X-Mailer: Balsa 2.0.13 Lines: 94 X-Virus-Scanned: by AMaViS - amavis-milter (http://www.amavis.org/) cc: "freebsd-questions@freebsd.org" Subject: Re: compile automounter with LDAP support 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: Mon, 27 Oct 2003 08:03:07 -0000 X-List-Received-Date: Mon, 27 Oct 2003 08:03:07 -0000 Hi Antoine, you need to include "/usr/local/include/ldap.h": have a look am /usr/src/contrib/amd/include/am_defs.h (HAVE_LDAP_H) and the HAVE_MAP_LDAP in several source files. Probably you have to define both in /usr/src/usr.sbin/amd/amd/ Makefile?! Gernot Am 2003.10.25 10:45 schrieb(en) Antoine Jacoutot: > Hi :) > > I sent the following message to the list some time ago but got no > answer. > I sending it again in case someone could help me on this. > Basically, I would like to recompile adm, shipped with the base > system, with > LDAP support (after installing the openldap port). > > > 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 > > -- > Antoine Jacoutot > ajacoutot@lphp.org > http://www.lphp.org > PGP/GnuPG key: http://www.lphp.org/ressources/ajacoutot.asc > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- > unsubscribe@freebsd.org" > > -- Dipl.-Ing. Gernot Hueber Institut f. Integrierte Schaltungen Altenbergerstr. 69 4040 Linz Tel: +43 732 2468-7120, Fax: -7126 E-mail: hueber@riic.at WWW: www.riic.at