From owner-freebsd-questions@FreeBSD.ORG Mon Feb 13 13:51:52 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 CC71C16A420 for ; Mon, 13 Feb 2006 13:51:52 +0000 (GMT) (envelope-from jbronson@wixb.com) Received: from shadow.sixcompanies.com (shadow.sixcompanies.com [65.43.82.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id B00EC43D60 for ; Mon, 13 Feb 2006 13:51:51 +0000 (GMT) (envelope-from jbronson@wixb.com) Received: from dakota.wixb.com (shadow.sixcompanies.com [10.43.82.173]) by shadow.sixcompanies.com (8.13.5/8.13.5) with ESMTP id k1DDpoo2077435; Mon, 13 Feb 2006 07:51:50 -0600 (CST) Message-Id: <7.0.1.0.2.20060213074844.011505f0@sixcompanies.com> X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Date: Mon, 13 Feb 2006 07:52:01 -0600 To: freebsd-questions@freebsd.org From: "J.D. Bronson" Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: qpopper/gdbm X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Feb 2006 13:51:52 -0000 I am trying to compile qpopper (from src) and use APOP with the gdbm database. gdbm was installed from ports and works fine. I setup my env as such: LDFLAGS=-L/usr/lib -L/usr/local/lib -R/usr/lib -R/usr/local/lib and ldconfig shows gdbm: # ldconfig -r | grep gdbm 86:-lgdbm.3 => /usr/local/lib/libgdbm.so.3 I ran ./configure --enable-apop ... ... checking ndbm.h usability... yes checking ndbm.h presence... yes checking for ndbm.h... yes checking gdbm.h usability... yes checking gdbm.h presence... yes checking for gdbm.h... yes checking dbm.h usability... no checking dbm.h presence... no checking for dbm.h... no checking for pam_authenticate in -lpam... yes checking which database manager to use ... checking gdbm ... checking for gdbm_open in -lgdbm... yes found gdbm so configure detected this.... but then when I ran 'make', the build fails! /usr/bin/gcc -c -I.. -I.. -I. -I../mmangle -I../common -O2 -pipe -mtune=pentium4 -idirafter /usr/local/include -freg-struct-return -DHAVE_CONFIG_H -DFREEBSD -DUNIX popauth.c -o popauth.o /usr/bin/gcc -o popauth base64.o scram.o md5.o hmac.o popauth.o -lgdbm ../common/libcommon.a /usr/bin/ld: cannot find -lgdbm *** Error code 1 Stop in /tmp/qpopper4.1a2/popper. *** Error code 1 Can anyone point something out to me as to how to get ld to find -lgdbm when ldconfig and configure already picked it up? -JD