From owner-freebsd-questions Thu Feb 20 7:48:17 2003 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 AC96B37B405 for ; Thu, 20 Feb 2003 07:48:16 -0800 (PST) Received: from mired.org (ip68-97-54-220.ok.ok.cox.net [68.97.54.220]) by mx1.FreeBSD.org (Postfix) with SMTP id 3E5E743F85 for ; Thu, 20 Feb 2003 07:48:15 -0800 (PST) (envelope-from mwm-dated-1046188094.7236f8@mired.org) Received: (qmail 72864 invoked from network); 20 Feb 2003 15:48:14 -0000 Received: from localhost.mired.org (HELO guru.mired.org) (127.0.0.1) by localhost.mired.org with SMTP; 20 Feb 2003 15:48:14 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15956.63678.64099.226682@guru.mired.org> Date: Thu, 20 Feb 2003 09:48:14 -0600 To: John Bleichert Cc: freebsd Subject: Re: PosgreSQL from ports In-Reply-To: References: <15956.62785.172285.578609@guru.mired.org> X-Mailer: VM 7.07 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: Mike Meyer X-Delivery-Agent: TMDA/0.69 (Count Fleet) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In , John Bleichert typed: > On Thu, 20 Feb 2003, Mike Meyer wrote: > > You need to add -lpq to the CFLAGS so you actually use the postgres > > library. > Doh! I had tried that, but without the '-L' line provided above. Both are > required for the build. Hmm. Yup. -lpq to tell gcc what library to use, and -L/usr/local/lib to tell gcc where to find the library. You probably did just -lpq on Linux, and libpq is either in /usr/lib, or gcc is preconfigured to look in /usr/local/lib. http://www.mired.org/consulting.html Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message