pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Murad Nayal <murad@godel.bioc.columbia.edu>
To: Bruce Momjian <pgman@candle.pha.pa.us>
To: tgl@sss.pgh.pa.us
Cc: pgsql-ports@postgresql.org
Cc: bugs@postgresql.org
Cc: pgsql-hackers@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: [BUGS] port v7.0 to SGI-IRIX-6.5.7/64
Date: Mon, 22 May 2000 22:53:07 +0200
Message-ID: <39299E33.B4E7C44D@godel.bioc.columbia.edu> (raw)
References: <200005222356.TAA01789@candle.pha.pa.us>
Bruce Momjian wrote:
>
> >
> > I managed to compile (and sort of run) postgres 7.0 to SGI running IRIX
> > 6.5.7. I compiled to 64bit libraries. The problems I had were both due
> > errors in the configure script as well as postgres configuration files.
> >
> > configure problems:
> > -------------------
> > 1- the program that configure uses to test for namespace std is faulty.
> > I had to manually add #define HAVE_NAMESPACE_STD 1 to the top of
> > interfaces/libpq++/pgconnection.h
>
> Can you suggest a test that does work on Irix?
>
the current test is:
#line 1680 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <stdlib.h>
using namespace std;
int main() {
; return 0; }
it fails with the message:
"configure", line 1683: error(3173): name must be a namespace name
using namespace std;
you just need to add a header file that contains elements of the C++
standard library defined in std. not all C++ standard library that comes
with the SGI C++ compiler are in defined in std. for example iostream
stuff are not in std. however string is. so just include the string
header file in the program. This compiles fine with CC:
#line 1680 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <stdlib.h>
#include <string>
using namespace std;
int main() {
; return 0; }
the SGI compiler puts the std library in header files that don't end in
".h". same header file ending in ".h" will have declarations in the
global name space.
Regards
--
Murad Nayal M.D. Ph.D.
Department of Biochemistry and Molecular Biophysics
College of Physicians and Surgeons of Columbia University
630 West 168th Street. New York, NY 10032
Tel: 212-305-6884 Fax: 212-305-6926
view thread (14+ messages) latest in thread
Message-ID: <39299E33.B4E7C44D@godel.bioc.columbia.edu> Permalink: ../39299E33.B4E7C44D@godel.bioc.columbia.edu/ Also on: postgresql.org/message-id/39299E33.B4E7C44D@godel.bioc.columbia.edu ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-admin@postgresql.org Cc: murad@godel.bioc.columbia.edu, pgman@candle.pha.pa.us, tgl@sss.pgh.pa.us, pgsql-ports@postgresql.org, bugs@postgresql.org, pgsql-hackers@postgresql.org Subject: Re: [BUGS] port v7.0 to SGI-IRIX-6.5.7/64 In-Reply-To: <39299E33.B4E7C44D@godel.bioc.columbia.edu> References: <200005222356.TAA01789@candle.pha.pa.us> <39299E33.B4E7C44D@godel.bioc.columbia.edu> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox