Re:

From: Oleg Broytmann <phd(at)phd(dot)russ(dot)ru>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re:
Date: 2000-04-11 14:40:13
Message-ID: Pine.LNX.4.21.0004111436200.31774-100000@fep132.fep.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Tue, 11 Apr 2000, Tom Lane wrote:
> Oleg Broytmann <phd(at)sun(dot)med(dot)ru> writes:
> > gcc -O2 -I../../backend -I../../include -I../../interfaces/libpq -fPIC -c pgconnection.cc
> > In file included from pgconnection.cc:18:
> > pgconnection.h:76: syntax error before `('
>
> Hmm. Something broken about "string"?
>
> My guess is that configure didn't think it should define
> HAVE_CXX_STRING_HEADER, but that is actually necessary on your
> machine. Please look into it.

Thanks.
Yes, it was undefined. I defined it in config.h - and got all sorts of
other errors. Seems I have broken or incomplete g++ installation, probably
libstd++ and/or libio++. I rarely compile C++ programs, but I cannot recall
such problem:

make[2]: Entering directory
`/usr/local/src/PostgreSQL/postgresql-7.0beta5/src/i
nterfaces/libpq++'
gcc -O2 -I../../backend -I../../include -I../../interfaces/libpq -fPIC
-c pgc
onnection.cc
In file included from /usr/local/include/g++/alloc.h:18,
from /usr/local/include/g++/std/bastring.h:39,
from /usr/local/include/g++/string:6,
from pgconnection.h:29,
from pgconnection.cc:18:
/usr/local/include/g++/stl_config.h:106: _G_config.h: No such file or
directory
In file included from /usr/local/include/g++/streambuf.h:36,
from /usr/local/include/g++/iostream.h:31,
from /usr/local/include/g++/stl_alloc.h:45,
from /usr/local/include/g++/alloc.h:21,
from /usr/local/include/g++/std/bastring.h:39,
from /usr/local/include/g++/string:6,
from pgconnection.h:29,
from pgconnection.cc:18:
/usr/local/include/g++/libio.h:30: _G_config.h: No such file or directory
make[2]: *** [pgconnection.o] Error 1
make[2]: Leaving directory
`/usr/local/src/PostgreSQL/postgresql-7.0beta5/src/in
terfaces/libpq++'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/usr/local/src/PostgreSQL/postgresql-7.0beta5/src/in
terfaces'
make: *** [all] Error 2

Oleg.
----
Oleg Broytmann http://members.xoom.com/phd2.1/ phd2(at)earthling(dot)net
Programmers don't die, they just GOSUB without RETURN.

In response to

  • Re: at 2000-04-11 14:28:59 from Tom Lane

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2000-04-11 15:43:28 Re: #include oddity in v7.0b3
Previous Message Tom Lane 2000-04-11 14:28:59 Re: