Received: from godel.bioc.columbia.edu (godel.bioc.columbia.edu [156.111.96.29]) by hub.org (8.9.3/8.9.3) with ESMTP id WAA03952; Mon, 22 May 2000 22:57:05 -0400 (EDT) (envelope-from murad@godel.bioc.columbia.edu) Received: from godel.bioc.columbia.edu (localhost [127.0.0.1]) by godel.bioc.columbia.edu (SGI-SGI-8.9.3/8.9.3) with ESMTP id WAA33938; Mon, 22 May 2000 22:53:07 +0200 (MDT) Message-ID: <39299E33.B4E7C44D@godel.bioc.columbia.edu> Date: Mon, 22 May 2000 22:53:07 +0200 From: Murad Nayal Organization: Columbia University X-Mailer: Mozilla 4.7C-SGI [en] (X11; I; IRIX64 6.5 IP30) X-Accept-Language: en MIME-Version: 1.0 To: Bruce Momjian , tgl@sss.pgh.pa.us CC: pgsql-ports@postgresql.org, bugs@postgresql.org, pgsql-hackers@postgresql.org, pgsql-admin@postgresql.org Subject: Re: [BUGS] port v7.0 to SGI-IRIX-6.5.7/64 References: <200005222356.TAA01789@candle.pha.pa.us> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200005/12 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 #include 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 #include #include 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