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

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 (view raw or flat)
Thread:
Lists: pgsql-adminpgsql-bugspgsql-hackerspgsql-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

pgsql-ports by date

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

pgsql-hackers by date

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

pgsql-admin by date

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

pgsql-bugs by date

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

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