Re: [BUGS] port v7.0 to SGI-IRIX-6.5.7/64

From: Murad Nayal <murad(at)godel(dot)bioc(dot)columbia(dot)edu>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, tgl(at)sss(dot)pgh(dot)pa(dot)us
Cc: pgsql-ports(at)postgresql(dot)org, bugs(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org, pgsql-admin(at)postgresql(dot)org
Subject: Re: [BUGS] port v7.0 to SGI-IRIX-6.5.7/64
Date: 2000-05-22 20:53:07
Message-ID: 39299E33.B4E7C44D@godel.bioc.columbia.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-bugs pgsql-hackers pgsql-ports

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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Hans Poo 2000-05-22 21:09:31 Installation of postgre DBD is easy without RMP
Previous Message Murad Nayal 2000-05-22 16:42:48 port v7.0 to SGI-IRIX-6.5.7/64

Browse pgsql-bugs by date

  From Date Subject
Next Message Murad Nayal 2000-05-22 21:12:51 Re: [BUGS] port v7.0 to SGI-IRIX-6.5.7/64
Previous Message Murad Nayal 2000-05-22 16:42:48 port v7.0 to SGI-IRIX-6.5.7/64

Browse pgsql-hackers by date

  From Date Subject
Next Message Oliver Elphick 2000-05-22 20:58:21 Re: OO Patch
Previous Message Chris Bitmead 2000-05-22 20:04:19 Re: Thus spoke SQL3 (on OO)

Browse pgsql-ports by date

  From Date Subject
Next Message Murad Nayal 2000-05-22 21:12:51 Re: [BUGS] port v7.0 to SGI-IRIX-6.5.7/64
Previous Message Murad Nayal 2000-05-22 16:42:48 port v7.0 to SGI-IRIX-6.5.7/64