problem with patch - Mailing list pgsql-hackers

From Martín Marqués
Subject problem with patch
Date
Msg-id 01081018261204.15878@bugs
Whole thread Raw
Responses Re: problem with patch
List pgsql-hackers
I got a patch on the rewriteHandler.c file to the multi-action rules, and it 
worked great on Solaris 8, but doesn't compile on Solaris 7 if I use the 
option --with-CXX.

It fails with this message on configure:

checking for class string in <string.h>... no
configure: error: neither <string> nor <string.h> seem to define the C++ 
class `string\'

and from the config.log I get this:

configure:2347: checking whether we are using GNU C++
configure:2356: c++ -E conftest.C
configure:2375: checking whether c++ accepts -g
configure:2423: checking how to run the C++ preprocessor
configure:2441: c++ -E  conftest.C >/dev/null 2>conftest.out
configure:2476: checking for string
configure:2486: c++ -E  conftest.C >/dev/null 2>conftest.out
In file included from 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../../../../include/g++-3/alloc.h:18,                from 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../../../../include/g++-3/std/bastring.h:39,                from 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../../../../include/g++-3/string:6,                from
configure:2482:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../../../../include/g++-3/stl_config.h:151: 
_G_config.h: No such file or directory
In file included from 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../../../../include/g++-3/streambuf.h:36,                from 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../../../../include/g++-3/iostream.h:31,                from 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../../../../include/g++-3/stl_alloc.h:45,                from 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../../../../include/g++-3/alloc.h:21,                from 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../../../../include/g++-3/std/bastring.h:39,                from 
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../../../../include/g++-3/string:6,                from
configure:2482:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../../../../include/g++-3/libio.h:30: 
_G_config.h: No such file or directory
configure: failed program was:
#line 2481 "configure"
#include "confdefs.h"
#include <string>
configure:2513: checking for class string in <string.h>
configure:2528: c++ -c -O2 -g  conftest.C 1>&5
configure: In function `int main()':
configure:2524: `string' undeclared (first use this function)
configure:2524: (Each undeclared identifier is reported only once
configure:2524: for each function it appears in.)
configure:2524: parse error before `='
configure: failed program was:
#line 2518 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main() {
string foo = "test"
; return 0; }

Any thoughts?

-- 
Cualquiera administra un NT.
Ese es el problema, que cualquiera administre.
-----------------------------------------------------------------
Martin Marques                  |        mmarques@unl.edu.ar
Programador, Administrador      |       Centro de Telematica                      Universidad Nacional
        del Litoral
 
-----------------------------------------------------------------


pgsql-hackers by date:

Previous
From:
Date:
Subject: Boolean Implicitly Typed?
Next
From: Tom Lane
Date:
Subject: Re: problem with patch