From owner-freebsd-questions@FreeBSD.ORG Thu Jun 8 12:20:34 2006 Return-Path: X-Original-To: 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 CDB5216DB31 for ; Thu, 8 Jun 2006 10:28:57 +0000 (UTC) (envelope-from toomas.aas@raad.tartu.ee) Received: from kuller.raad.tartu.ee (kuller.raad.tartu.ee [194.126.106.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2424C43D49 for ; Thu, 8 Jun 2006 10:28:56 +0000 (GMT) (envelope-from toomas.aas@raad.tartu.ee) Received: from localhost (localhost [127.0.0.1]) by kuller.raad.tartu.ee (Postfix) with ESMTP id 06C64B817 for ; Thu, 8 Jun 2006 13:28:55 +0300 (EEST) Received: from kuller.raad.tartu.ee ([127.0.0.1]) by localhost (kuller.raad.tartu.ee [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24684-02 for ; Thu, 8 Jun 2006 13:28:48 +0300 (EEST) Received: from raad.tartu.ee (lv.raad.tartu.ee [194.126.106.110]) by kuller.raad.tartu.ee (Postfix) with ESMTP id 034D5B814 for ; Thu, 8 Jun 2006 13:28:48 +0300 (EEST) Received: from INFO/SpoolDir by raad.tartu.ee (Mercury 1.48); 8 Jun 06 13:28:48 +0200 Received: from SpoolDir by INFO (Mercury 1.48); 8 Jun 06 13:28:34 +0200 Received: from [172.26.1.3] (172.26.1.3) by raad.tartu.ee (Mercury 1.48) with ESMTP; 8 Jun 06 13:28:27 +0200 Message-ID: <4487FBCA.9030707@raad.tartu.ee> Date: Thu, 08 Jun 2006 13:28:26 +0300 From: Toomas Aas User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at post.raad.tartu.ee Cc: Subject: PostGIS LDFLAGS question on 4.11 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: Thu, 08 Jun 2006 12:20:35 -0000 Hello! I'm planning to install PostgreSQL 8.1 along with PostGIS and GEOS, from ports. Unfortunately, the server's operating system where I do this is 4.11 and it can't be easily upgraded. I found the following note in PostGIS documentation: -------------------------------------------------------------------------- If you plan to use GEOS functionality you might need to explicitly link PostgreSQL against the standard C++ library: LDFLAGS=-lstdc++ ./configure [YOUR OPTIONS HERE] This is a workaround for bogus C++ exceptions interaction with older development tools. If you experience weird problems (backend unexpectedly closed or similar things) try this trick. This will require recompiling your PostgreSQL from scratch, of course. -------------------------------------------------------------------------- I think that GCC 2.95 as found in FreeBSD 4 may qualify as an "older development tool"? I already installed GEOS and it pulled in lang/gcc34 as a dependency, but it seems that databases/postgresql81-server is going to be built with base system gcc. Is it likely to lead to the conflict described above? Is anyone running PostgreSQL + PostGIS on FreeBSD 4 and did you find it necessary to use this LDFLAGS trick? -- Toomas Aas