Re: Error installing Postgres on Solaris 9

From: Thanh Q Lam <thanh(dot)q(dot)lam(at)alcatel(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Error installing Postgres on Solaris 9
Date: 2005-07-05 18:53:51
Message-ID: 42CAD73F.9040505@alcatel.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Tom,<br>
<br>
Thanks for your quick reply!<br>
I have looked into those system header files, and don't know what
they're for because I'm not a C programmer :-(<br>
<br>
Following is the Data block descriptor in the stream.h file that
declares the projid_t.<br>
<br>
<br>
Thanks again,<br>
Thanh<br>
<br>
/*<br>
&nbsp;* Data block descriptor<br>
&nbsp;*<br>
&nbsp;* NOTE: db_base, db_lim, db_ref and db_type are the *only* public
fields,<br>
&nbsp;* as described in datab(9S).&nbsp; Everything else is
implementation-private.<br>
&nbsp;*/<br>
<br>
#define&nbsp;&nbsp;&nbsp; DBLK_REFMAX&nbsp;&nbsp;&nbsp; 255U<br>
<br>
typedef struct datab {<br>
&nbsp;&nbsp;&nbsp; frtn_t&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; *db_frtnp;<br>
&nbsp;&nbsp;&nbsp; unsigned char&nbsp;&nbsp;&nbsp; *db_base;<br>
&nbsp;&nbsp;&nbsp; unsigned char&nbsp;&nbsp;&nbsp; *db_lim;<br>
&nbsp;&nbsp;&nbsp; unsigned char&nbsp;&nbsp;&nbsp; db_ref;<br>
&nbsp;&nbsp;&nbsp; unsigned char&nbsp;&nbsp;&nbsp; db_type;<br>
&nbsp;&nbsp;&nbsp; unsigned char&nbsp;&nbsp;&nbsp; db_flags;<br>
&nbsp;&nbsp;&nbsp; unsigned char&nbsp;&nbsp;&nbsp; db_struioflag;<br>
&nbsp;&nbsp;&nbsp; void&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; *db_cache;&nbsp;&nbsp;&nbsp; /* kmem cache descriptor */<br>
&nbsp;&nbsp;&nbsp; struct msgb&nbsp;&nbsp;&nbsp; *db_mblk;<br>
&nbsp;&nbsp;&nbsp; void&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (*db_free)(struct msgb *, struct datab *);<br>
&nbsp;&nbsp;&nbsp; void&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (*db_lastfree)(struct msgb *, struct datab *);<br>
#ifndef _LP64<br>
&nbsp;&nbsp;&nbsp; void&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; *db_pad;&nbsp;&nbsp;&nbsp; /* unused -- needed for alignment */<br>
#endif<br>
&nbsp;&nbsp;&nbsp; unsigned char&nbsp;&nbsp;&nbsp; *db_struiobase;<br>
&nbsp;&nbsp;&nbsp; unsigned char&nbsp;&nbsp;&nbsp; *db_struiolim;<br>
&nbsp;&nbsp;&nbsp; unsigned char&nbsp;&nbsp;&nbsp; *db_struioptr;<br>
&nbsp;&nbsp;&nbsp; union {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; double enforce_alignment;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; unsigned char data[8];<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; unsigned u16:16;&nbsp;&nbsp;&nbsp; /* used to store hw-calculated cksum */<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; /*<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;* Union used for future extensions (pointer to data ?).<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;*/<br>
&nbsp;&nbsp;&nbsp; } db_struioun;<br>
&nbsp;&nbsp;&nbsp; fthdr_t&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; *db_fthdr;<br>
&nbsp;&nbsp;&nbsp; ftflw_t&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ***db_ftflw;<br>
&nbsp;&nbsp;&nbsp; uid_t&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; db_uid;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; /* Effective user id */<br>
&nbsp;&nbsp;&nbsp; /* project ID - EXPERIMENTAL - may change in future release */<br>
&nbsp;&nbsp;&nbsp; projid_t&nbsp;&nbsp;&nbsp; db_projid;<br>
} dblk_t;<br>
<br>
<br>
Tom Lane wrote:<br>
<blockquote type="cite" cite="mid25025(dot)1120587907(at)sss(dot)pgh(dot)pa(dot)us">
<pre wrap="">Thanh Q Lam <a class="moz-txt-link-rfc2396E" href="mailto:thanh(dot)q(dot)lam(at)alcatel(dot)com">&lt;thanh(dot)q(dot)lam(at)alcatel(dot)com&gt;</a> writes:
</pre>
<blockquote type="cite">
<pre wrap="">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".
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">In file included from /usr/include/netinet/in.h:41,
from /usr/include/sys/socket.h:203,
from configure:10963:
/usr/include/sys/stream.h:307: parse error before "projid_t"
configure:10965: parse error before "accept"
configure:10965: conflicting types for `accept'
/usr/include/sys/socket.h:450: previous declaration of `accept'
configure:10965: warning: data definition has no type or storage class
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
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")

regards, tom lane
</pre>
</blockquote>
</body>
</html>

Attachment Content-Type Size
unknown_filename text/html 4.3 KB

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Fuhr 2005-07-05 19:18:19 Re: Error installing Postgres on Solaris 9
Previous Message jose fuenmayor 2005-07-05 18:44:00 Fwd: problems with pgadmin 3