Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [PORTS] Building 8.3 beta 4 stops on (at least) 2 errors

From: Tom Lane <tgl(at)sss.pgh.pa.us>
Date: Mon Jan 07 2008 - 20:20:02 EST


"J6M" <j6m@adm.estp.fr> writes:
> xlc -O2 -qmaxmem=16384 -qsrcmsg -qlonglong -qnoansialias -I../../../../src/include
> -c -o tsquery.o tsquery.c
> 108 | PT_CLOSE = 5,
> ....................a
> a - 1506-275 (S) Unexpected text ',' encountered.

Some compilers are picky about extra commas in enum lists, some aren't. I guess we have not currently got any in the buildfarm that are.

> xlc -O2 -qmaxmem=16384 -qsrcmsg -qlonglong -qnoansialias -I../include -I../../../../src/interfaces/ecpg/include
> -I../../../../src/interfaces/libpq -I../../../../src/include/utils -I../../../../src/include
> -c -o informix.o informix.c
> "/usr/include/stdio.h", line 434.12: 1506-343 (S) Redeclaration of fgetpos64
> differs from previous declaration on line 274 of "/usr/include/stdio.h".
> "/usr/include/stdio.h", line 434.12: 1506-377 (I) The type "long long*" of
> parameter 2 differs from the previous type "long*".

The problem here seems to be that informix.c was violating our coding rule that no system headers may be included before c.h (or in this case, postgres_fe.h). Please change the first few lines of the file to this ordering:

#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"

#include 
#include 
#include 

#include <ecpgtype.h>
...

and see if it doesn't work then.

BTW, it seems we do not have any buildfarm members running xlc. If you can spare the cycles to build PG once a day or so, please consider joining the buildfarm so these types of portability issues can be caught sooner.
http://www.pgbuildfarm.org/index.html

Do you need help?X

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq Received on Mon Jan 7 20:21:43 2008

This archive was generated by hypermail 2.1.8 : Wed Jun 18 2008 - 23:39:11 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library