On Fri, Sep 05, 2003 at 08:54:17PM +0100, Elliot Moore wrote: > I have been using qmail-ldap trouble free since 2001 on FreeBSD > > > I saw the great features of the latest qmail-ldap release and I wanted > to install it on my intel FreeBSD 4.4-RELEASE box > > but when I make qmail-ldap 20030901 it errors: > > ./load digest passwd.o digest_md4.o digest_md5.o digest_rmd160.o > digest_sha1.o base64.o qldap-debug.o output.o getopt.a substdio.a > case.a env.a stralloc.a str.a fs.a alloc.a error.a > passwd.o: In function `cmp_passwd': > passwd.o(.text+0xc5): undefined reference to `crypt' > passwd.o(.text+0xe8): undefined reference to `crypt' > passwd.o: In function `do_crypt': > passwd.o(.text+0x2e9): undefined reference to `crypt' > *** Error code 1 > > > I have unistd.h Crypt Library (libcrypt, -lcrypt) > > Relevant Makefile bits: > LDAPLIBS=-L/usr/local/app/openldap/lib -lldap -llber -lcrypt -lcrypto > -lssl > LDAPINCLUDES=-I/usr/local/app/openldap/include > SHADOWLIBS=-lcrypt > > I have removed references to -lcrypt - same error > I can compile previous versions ie qmail-ldap-1.03-20030101.patch > Using same Makefile options as above. > > Please can anyone suggest anything that I may be doing wrong or perhaps > my crypt libs need upgrading? > Any suggestions welcome!
You need to modify the Makefile rule for digest. I forgot the $(SHADOWLIBS) at the end. Afterwards it should build. Another way is to make it by hand: ./load digest passwd.o digest_md4.o digest_md5.o digest_rmd160.o \ digest_sha1.o base64.o qldap-debug.o output.o getopt.a substdio.a \ case.a env.a stralloc.a str.a fs.a alloc.a error.a -lcrypto -- :wq Claudio
