Re: [BUGS] Error installing Postgres on Solaris 9

2005-07-05 Thread Tom Lane
Thanh Q Lam <[EMAIL PROTECTED]> writes: > My compiler is gcc 3.2. I wonder if the problem is that the modified system header files used by your copy of gcc are too far out of sync with the actual headers under /usr/include. Michael indicates he's using gcc 3.4.2 which'd presumably be a lot newer

Re: [BUGS] Error installing Postgres on Solaris 9

2005-07-05 Thread Thanh Q Lam
My compiler is gcc 3.2. Thanks, Thanh Michael Fuhr wrote: On Tue, Jul 05, 2005 at 02:25:07PM -0400, Tom Lane wrote: Hmm --- the "parse error" suggests that sys/socket.h on your platform has some inclusion dependency that we are failing to provide for. Can you find out what it i

Re: [BUGS] Error installing Postgres on Solaris 9

2005-07-05 Thread Tom Lane
Michael Fuhr <[EMAIL PROTECTED]> writes: > I just ran truss on gcc and noticed that it's reading > from /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/include/sys/types.h > instead of from /usr/include/sys/types.h. I don't know if that > matters; I've attached the diff of the two. Good catch. Th

Re: [BUGS] Error installing Postgres on Solaris 9

2005-07-05 Thread Michael Fuhr
On Tue, Jul 05, 2005 at 01:46:42PM -0600, Michael Fuhr wrote: > On Tue, Jul 05, 2005 at 03:27:49PM -0400, Tom Lane wrote: > > Michael Fuhr <[EMAIL PROTECTED]> writes: > > > I wonder what's different between Thanh's Solaris 9 box and mine. > > > > It would be useful for you guys to compare the resu

Re: [BUGS] Error installing Postgres on Solaris 9

2005-07-05 Thread Thanh Q Lam
Hi Tom/Michael, To answer Michael's question, I'm trying to install 7.4.8 on Solaris 9.  I tried 8.0 which failed at the same problem. Here is the result of grep from my box:   nsmapp1{postgres}: usr/include> grep projid_t *.h */*.h nss_dbdefs.h:    projid_t    projid; project.h:    projid_t

Re: [BUGS] Error installing Postgres on Solaris 9

2005-07-05 Thread Tom Lane
Michael Fuhr <[EMAIL PROTECTED]> writes: > sys/types.h:typedef id_tprojid_t; Well, we certainly include sys/types.h before including sys/socket.h. I wonder if the problem is that that typedef is inside an #if that for some reason is not firing on Thanh's setup? regards

Re: [BUGS] Error installing Postgres on Solaris 9

2005-07-05 Thread Michael Fuhr
On Tue, Jul 05, 2005 at 03:27:49PM -0400, Tom Lane wrote: > Michael Fuhr <[EMAIL PROTECTED]> writes: > > I wonder what's different between Thanh's Solaris 9 box and mine. > > It would be useful for you guys to compare the results of > > cd /usr/include > grep projid_t *.h */*.h Resul

Re: [BUGS] Error installing Postgres on Solaris 9

2005-07-05 Thread Tom Lane
Michael Fuhr <[EMAIL PROTECTED]> writes: > On Tue, Jul 05, 2005 at 02:25:07PM -0400, Tom Lane wrote: >> Hmm --- the "parse error" suggests that sys/socket.h on your platform >> has some inclusion dependency that we are failing to provide for. Can >> you find out what it is? (Hint: look for "proji

Re: [BUGS] Error installing Postgres on Solaris 9

2005-07-05 Thread Michael Fuhr
On Tue, Jul 05, 2005 at 02:25:07PM -0400, Tom Lane wrote: > > Hmm --- the "parse error" suggests that sys/socket.h on your platform > has some inclusion dependency that we are failing to provide for. Can > you find out what it is? (Hint: look for "projid_t") I wonder what's different between Th

Re: [BUGS] Error installing Postgres on Solaris 9

2005-07-05 Thread Thanh Q Lam
Hi Tom, Thanks for your quick reply! I have looked into those system header files, and don't know what they're for because I'm not a C programmer :-( Following is the Data block descriptor in the stream.h file that declares the projid_t. Thanks again, Thanh /*  * Data block descriptor  *  

Re: [BUGS] Error installing Postgres on Solaris 9

2005-07-05 Thread Tom Lane
Thanh Q Lam <[EMAIL PROTECTED]> writes: > when I run: ./configure --without-readline, I get errors that aborts the > configure process: "checking types of arguments for accept()... > configure: error: could not determine argument types". >> In file included from /usr/include/netinet/in.h:41, >>