Skip site navigation (1) Skip section navigation (2)

Re: More schema queries

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-hackers(at)postgresql(dot)org>, <pgsql-patches(at)postgresql(dot)org>
Subject: Re: More schema queries
Date: 2002-05-20 15:11:36
Message-ID: D85C66DA59BA044EB96AB9683819CF6101529C@dogbert.vale-housing.co.uk (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches

> -----Original Message-----
> From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us] 
> Sent: 20 May 2002 15:16
> To: Dave Page
> Cc: pgsql-hackers(at)postgresql(dot)org
> Subject: Re: More schema queries 
> 
> 
> "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk> writes:
> > gcc -g -o postgres.exe -Wl,--base-file,postgres.base postgres.exp 
> > access/SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o parser/SUBSYS.o 
> > commands/SUBSYS.o executor /SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o 
> > main/SUBSYS.o nodes/SUBSYS.o optimizer/SUBSYS.o port/SUBSYS.o 
> > postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o 
> storage/ SUBSYS.o 
> > tcop/SUBSYS.o utils/SUBSYS.o -lcygipc -lcrypt
> > access/SUBSYS.o(.text+0x13):heaptuple.c: undefined reference to 
> > `mcount'
> 
> On Unix it's necessary for the link step to include a -pg 
> switch, just like the compile steps.  This is evidently not 
> happening in the Windows case.
> 
> In the Unix case, $(PROFILE) gets incorporated into 
> $(LDFLAGS) in src/Makefile.global, and then 
> src/backend/Makefile uses $(LDFLAGS) in the backend link rule 
> (line 40 in current source).  I don't see any inclusion of 
> flags at all in the Windows link rule at lines 48, 50. 
> Presumably these ought to at least mention $(PROFILE), and I 
> wonder whether they should not say $(LDFLAGS).
>
> Please check it out and submit a patch...

Attached (& CC'd to -patches). It all built OK with this, so I'll go off
and play with initdb & gprof now.

Regards, Dave.

Attachment: cygwin.patch
Description: application/octet-stream (1013 bytes)

Responses

pgsql-hackers by date

Next:From: Hannu KrosingDate: 2002-05-20 15:17:52
Subject: Re: More schema queries
Previous:From: Tom LaneDate: 2002-05-20 15:05:38
Subject: Re: Unbounded (Possibly) Database Size Increase - Toasting

pgsql-patches by date

Next:From: Bear GilesDate: 2002-05-20 18:29:54
Subject: First cut at mkcert
Previous:From: Bear GilesDate: 2002-05-20 06:39:24
Subject: revised SSL patches

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group