[GRASS5] Darwin: postgresql

Ok,

I successfully built and installed postgresql 7.1 here in Mac OS X land. When I attempt to compile grass.postgresql, it appears it can't find a header or something.

Here's the output:

#################################################################
/usr/src/grass/src.garden/grass.postgresql/d.rast.pg
   make -f OBJ.powerpc-apple-darwin1.3.3/make.rules

gcc -o /usr/src/grass/dist.powerpc-apple-
darwin1.3.3/etc/bin/cmd/d.rast.pg OBJ.powerpc-apple-darwin1.3.3/main.o OBJ.powerpc-apple-darwin1.3.3/getAllOpts.o OBJ.powerpc-apple-
darwin1.3.3/getSopts.o OBJ.powerpc-apple-darwin1.3.3/buildInfxQry.o OBJ.powerpc-apple-darwin1.3.3/runInfxFile.o /usr/src/grass/src/libes/LIB.powerpc-apple-darwin1.3.3/libdisplay.a /usr/src/grass/src/libes/LIB.powerpc-apple-darwin1.3.3/libraster.a /usr/src/grass/src/libes/LIB.powerpc-apple-darwin1.3.3/libgis.a -L/usr/local/pgsql/lib /usr/src/grass/src/libes/LIB.powerpc-apple-darwin1.3.3/libdatetime.a -I/usr/include -L/usr/local/lib -lz
/usr/bin/ld: Undefined symbols:
_PQclear
_PQerrorMessage
_PQexec
_PQfinish
_PQgetvalue
_PQntuples
_PQresultStatus
_PQsetdbLogin
_PQstatus
make[1]: *** [/usr/src/grass/dist.powerpc-apple-
darwin1.3.3/etc/bin/cmd/d.rast.pg] Error 1
make: *** [all] Error 2

Does anyone know where these symbols are defined?

Thanks,

Jeshua Lacock
Cartographer/Owner
http://SierraMaps.com
http://3dTopoMaps.com
Telephone: (760) 935-4481

On Sun, Jun 10, 2001 at 11:29:36PM -0700, Jeshua Lacock wrote:

Ok,

I successfully built and installed postgresql 7.1 here in Mac OS X
land. When I attempt to compile grass.postgresql, it appears it can't
find a header or something.

You're missing the linker flag for PostgreSQL's libpq (-lpq). I don't
see the include path either (probably -I/usr/local/pgsql/include). Did
you have 7.1 installed when you ran the configure script? If so, did
you make sure config.cache was removed first (or you started with clean
grass source directory)? Looks like the headers are being found, but
just the link flag is missing (-lpq).

--
Eric G. Miller <egm2@jps.net>

From neteler Mon Jun 11 10:04:50 2001
Return-Path: <neteler>
Received: by hgeo02.geog.uni-hannover.de (SMI-8.6/SMI-SVR4)
  id KAA21382; Mon, 11 Jun 2001 10:04:50 +0100
Date: Mon, 11 Jun 2001 10:04:50 +0100
From: Markus Neteler <neteler@geog.uni-hannover.de>
To: grass5@geog.uni-hannover.de
Subject: Re: [GRASS5] Darwin r.fill.dir
Message-ID: <20010611100450.D15422@hgeo02.geog.uni-hannover.de>
Mail-Followup-To: grass5@geog.uni-hannover.de
References: <200106110232.TAA27234@snipe.mail.pas.earthlink.net> <3B243A52.BF32B7C1@hpcc.nectec.or.th>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3B243A52.BF32B7C1@hpcc.nectec.or.th>; from jhickey@hpcc.nectec.or.th on Mon, Jun 11, 2001 at 10:26:10AM +0700
Sender: grass5-admin@geog.uni-hannover.de
Errors-To: grass5-admin@geog.uni-hannover.de
X-BeenThere: grass5@geog.uni-hannover.de
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:grass5-request@geog.uni-hannover.de?subject=help>
List-Post: <mailto:grass5@geog.uni-hannover.de>
List-Subscribe: <http://www.geog.uni-hannover.de/mailman/listinfo/grass5&gt;,
  <mailto:grass5-request@geog.uni-hannover.de?subject=subscribe>
List-Id: GRASS 5 Developers mailing list <grass5.geog.uni-hannover.de>
List-Unsubscribe: <http://www.geog.uni-hannover.de/mailman/listinfo/grass5&gt;,
  <mailto:grass5-request@geog.uni-hannover.de?subject=unsubscribe>
List-Archive: <http://www.geog.uni-hannover.de/pipermail/grass5/&gt;
Status: O
Content-Length: 832
Lines: 28

Hi all,

On Mon, Jun 11, 2001 at 10:26:10AM +0700, Justin Hickey wrote:

Hi Jeshua

Jeshua Lacock wrote:
> It appears to me a limitation of the math.h file installed with
> Darwin.
>
> MAXDOUBLE is not defined, however there there is a MAXFLOAT defined.
> Would it be safe to assign the same vaule to MAXDOUBLE?
>
> Additionally, MINFLOAT and MINDOUBLE have not been defined. Is there
> a value that I could assign them?

Since the math library is not part of the standard C library I would
suggest that these constants be changed to those in float.h which is
part of the standard library.

Namely, DBL_MAX, DBL_MIN, FLT_MAX, and FLT_MIN would probably be better
choices.

In CVS I have already changed these entries last week. So the current
r.fill.dir should compile well.

Cheers

Markus

This morning, we started experimenting with v.digit through tcltkgrass.
We created two new maps "dtest_1" and "digit_test" with few lines, one area
and two sites. We converted them with v.ascii and made topology with
v.support.

The problem is that we cannot find the files anywhere in the mapset
using file commands (ls) and (find). Grass modules (v.display, v.ascii,
v.support) in tcltk grass see them. The ls and find command see all others
maps that GRASS see except the ones created with v.digit. These files
should be in "dig" and "dig_ascii" and "dig_plus" directory.
Where could be saved??

V.digit show avery small problem : window terminal does not repaint when
we resize it. It repaint without problem when exposing it.

Thanks.
  
--
Robert Lagacé, professeur
Pavillon Comtois
Université Laval
Ste-Foy, Québec, G1K 7P4
tel : (418)-656-2131#2276
Fax : (418)-656-3723
E-mail : lagace@grr.ulaval.ca