From owner-freebsd-questions Thu Feb 20 6:58:26 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 4933037B401 for ; Thu, 20 Feb 2003 06:58:25 -0800 (PST) Received: from janeway.vonbek.dhs.org (bgm-24-94-58-56.stny.rr.com [24.94.58.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 762B943F75 for ; Thu, 20 Feb 2003 06:58:24 -0800 (PST) (envelope-from syborg@stny.rr.com) Received: by janeway.vonbek.dhs.org (Postfix, from userid 507) id 286994FA7E; Thu, 20 Feb 2003 09:45:15 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by janeway.vonbek.dhs.org (Postfix) with ESMTP id 20A194868; Thu, 20 Feb 2003 09:45:15 -0500 (EST) Date: Thu, 20 Feb 2003 09:45:15 -0500 (EST) From: John Bleichert X-X-Sender: syborg@janeway.vonbek.dhs.org Reply-To: John Bleichert To: Jonathan Chen Cc: freebsd Subject: Re: PosgreSQL from ports In-Reply-To: <20030220085957.GB80790@grimoire.chen.org.nz> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Thu, 20 Feb 2003, Jonathan Chen wrote: > On Wed, Feb 19, 2003 at 09:14:27PM -0800, Syborg wrote: > > Greetings! > > > > I have installed PostgreSQL 7.3.2 from the ports tree. > > The server runs fine, I can create tables and issues > > queries and whatnot. I can not, however, compile C > > applications as the linker doesnt seem to find the C > > libraries. > > Show us the commands you're using to link with, as well as the error > messages, and we can probably tell you what you're doing wrong. > -- (This was originally from me - my mail box was down for a bit so I jumped on yahoo) I'm trying to compile a very simple postgres app, from the samples, using this simple Makefile: ~~ CFLAGS=-Wall -I/usr/local/include -L/usr/local/lib pgtest: pgtest.c gcc -o pgtest pgtest.c $(CFLAGS) ~~ I use this setup to test the rig on my Linux box too. I get lots of linker errors, the linker cannot find /usr/local/lib/libpq.so it looks like: ... /tmp/ccNOWnok.o(.text+0x2b8): undefined reference to `PQntuples' ... Normally when I install a dev environment from ports, I dont need to fiddle with ldconfig. Do I need to do that here? Or am I missing something? Thanks - JB # John Bleichert # http://vonbek.dhs.org/latest.jpg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message