Compilation on Solaris 2.6 NOT succesfull - Mailing list pgsql-ports

From Nico De Ranter
Subject Compilation on Solaris 2.6 NOT succesfull
Date
Msg-id 36A5C607.FF6@sonycom.com
Whole thread Raw
List pgsql-ports
Howdy,

I'm trying to compile postgres 6.4.2 on a SUN Ultra 10 (sparc)
running Solaris 2.6.

My compilation stopped with the following errors:

gmake[2]: Entering directory
`/usr/people/nico.nba/postgresql-6.4.2/src/interfaces/libpq++'
CC  -I../../backend -I../../include -I../../interfaces/libpq
-I../../include -I../../backend   -g     -c pgenv.cc -o pgenv.o
"pgenv.h", line 21: Error: Could not open include file <string>.
"pgenv.h", line 48: Error: Type name expected instead of "string".
"pgenv.h", line 48: Error: No storage class or type for this
declaration.
"pgenv.h", line 48: Error: "," expected instead of "pgAuth".
"pgenv.h", line 49: Error: Use ";" to terminate declarations.
"pgenv.h", line 49: Error: Type name expected instead of "string".
"pgenv.h", line 49: Error: No storage class or type for this
declaration.
"pgenv.h", line 49: Error: Multiple declaration for string.
"pgenv.h", line 49: Error: "," expected instead of "pgHost".
"pgenv.h", line 50: Error: Use ";" to terminate declarations.
"pgenv.h", line 50: Error: Type name expected instead of "string".
"pgenv.h", line 50: Error: No storage class or type for this
declaration.
"pgenv.h", line 50: Error: Multiple declaration for string.
"pgenv.h", line 50: Error: "," expected instead of "pgPort".
"pgenv.h", line 51: Error: Use ";" to terminate declarations.
"pgenv.h", line 51: Error: Type name expected instead of "string".
"pgenv.h", line 51: Error: No storage class or type for this
declaration.
"pgenv.h", line 51: Error: Multiple declaration for string.
"pgenv.h", line 51: Error: "," expected instead of "pgOption".
"pgenv.h", line 52: Error: Use ";" to terminate declarations.
"pgenv.h", line 52: Error: Type name expected instead of "string".
"pgenv.h", line 52: Error: No storage class or type for this
declaration.
"pgenv.h", line 52: Error: Multiple declaration for string.
"pgenv.h", line 52: Error: "," expected instead of "pgTty".
"pgenv.h", line 54: Error: Use ";" to terminate declarations.
Compilation aborted, too many Error messages.



When I look at interfaces/libpq++/pgenv.h it has a line:

#include <string>

which looks very strange to me.  I tried changing it to
strings.h or string.h but that doesn't work.  Any idea how
I can get this working.

(I'm using the C++ compiler from SUN)

Nico

pgsql-ports by date:

Previous
From: Unprivileged user
Date:
Subject: Port Bug Report:
Next
From: Chewy
Date:
Subject: Ports