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

Re: 723 failed to compile [FreeBSD-4.7-STABLE]

From: Fernan Aguero <fernan(at)iib(dot)unsam(dot)edu(dot)ar>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-ports(at)postgresql(dot)org
Subject: Re: 723 failed to compile [FreeBSD-4.7-STABLE]
Date: 2002-10-22 13:24:50
Message-ID: 20021022132450.GA39326@iib.unsam.edu.ar (view raw or flat)
Thread:
Lists: pgsql-ports
Hi Tom,

thanks for your reply. Indeed you hit the point rightly. See
below.

+----[ Esto dijo Tom Lane (tgl(at)sss(dot)pgh(dot)pa(dot)us):
|
| Fernan Aguero <fernan(at)iib(dot)unsam(dot)edu(dot)ar> writes:
| > cc -O -pipe  -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../.=
| > ./src/include -I/usr/local/include  -c -o tuptoaster.o tuptoaster.c=0D
| > tuptoaster.c: In function `toast_delete_datum':=0D
| > tuptoaster.c:914: `F_OIDEQ' undeclared (first use in this function)=0D
| > tuptoaster.c:914: (Each undeclared identifier is reported only once=0D
| > tuptoaster.c:914: for each function it appears in.)=0D
| > tuptoaster.c: In function `toast_fetch_datum':=0D
| > tuptoaster.c:997: `F_OIDEQ' undeclared (first use in this function)=0D
| > gmake[5]: *** [tuptoaster.o] Error 1=0D
| 
| This symptom usually means that the src/backend/utils/Gen_fmgrtab.sh script
| failed to build a valid fmgroids.h file.  This part of your trace looks
| pretty suspicious:
| 
| /usr/local/bin/gmake -C utils fmgroids.h
| gmake[4]: Entering directory `/usr/ports/databases/postgresql7/work/postgresql-7.2.3/src/backend/utils'
| CPP='cc -E' AWK='nawk' /bin/sh Gen_fmgrtab.sh ../../../src/include/catalog/pg_proc.h
| cc -E: not found
| gmake[4]: Leaving directory 

The problem is here, no doubt. This was also pointed by
someone at the freebsd-ports(at)freebsd(dot)org mailing list.

| 
| I think there's something wrong with your /bin/sh --- it looks to be
| trying to interpret the -E switch as part of the cc filename.  Anyone
| seen anything like that before?  Setting CPP to 'gcc -E' or 'cc -E' is
| the usual value, so it's not like this is untested ...

I guess that this might be the FreeBSD ports Makefile
messing things up. In FreeBSD all ports are compiled from a
Makefile (call it meta-Makefile) that sets some variables,
drives the inclusion of FBSD specific patches, provides for
a unified localization of non-system base binaries,
libraries, etc. I guess that either the Makefile for the
postgresql7 port (easy) or some of the more general bsd.*.mk
files (that are included in each ports makefile, more
difficult to fix, since this can break thousands of ports) is
conflicting with postgresql's own Makefiles.

Calling make like this worked, and pgsql compiled OK:
env -i PATH=$PATH make
(note that I don't call make within the extracted pgsql
sources (i.e. on pgsql's Makefile) but on the ports
meta-Makefile).

So my guess, again, is that it was a pretty simple fix, and
that the FreeBSD ports Makefiles (whichever) are the ones
breaking it.

Thanks again for your reply,

Fernan

| 
| 			regards, tom lane
|
+----]

-- 
F e r n a n   A g u e r o
http://genoma.unsam.edu.ar/~fernan

In response to

Responses

pgsql-ports by date

Next:From: Tom LaneDate: 2002-10-22 13:34:04
Subject: Re: 723 failed to compile [FreeBSD-4.7-STABLE]
Previous:From: Tom LaneDate: 2002-10-21 17:05:28
Subject: Re: 723 failed to compile [FreeBSD-4.7-STABLE]

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