Thread: Can't run configure

Can't run configure

From
"Williams, Travis L, NPONS"
Date:
I don't know whether this should be in novice or general.. but whenever I run the configure script it dies with the
followingerror: 

checking types of arguments for accept()... configure: error: could not determine argument types

I'm not quite sure what the problem is here.. considering I didn't give it any arguments (like --prefix or --with)

Any help is appreciated..

Travis

Re: Can't run configure

From
"Williams, Travis L, NPONS"
Date:
All,
    A little more data.. this does not happen on 7.1.3.  It completes succesfully.. but on 7.2 it gets the same error
asbelow. 

Travis

-----Original Message-----
From: Williams, Travis L, NPONS
Sent: Friday, September 13, 2002 12:48 PM
To: pgsql-general
Subject: [GENERAL] Can't run configure


I don't know whether this should be in novice or general.. but whenever I run the configure script it dies with the
followingerror: 

checking types of arguments for accept()... configure: error: could not determine argument types

I'm not quite sure what the problem is here.. considering I didn't give it any arguments (like --prefix or --with)

Any help is appreciated..

Travis

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Re: Can't run configure

From
"Nigel J. Andrews"
Date:
On Fri, 13 Sep 2002, Williams, Travis L, NPONS wrote:

> All,
>     A little more data.. this does not happen on 7.1.3.  It completes succesfully.. but on 7.2 it gets the same error
asbelow. 
>
> Travis
>
> -----Original Message-----
> From: Williams, Travis L, NPONS
> Sent: Friday, September 13, 2002 12:48 PM
> To: pgsql-general
> Subject: [GENERAL] Can't run configure
>
>
> I don't know whether this should be in novice or general.. but whenever I run the configure script it dies with the
followingerror: 
>
> checking types of arguments for accept()... configure: error: could not determine argument types
>
> I'm not quite sure what the problem is here.. considering I didn't give it any arguments (like --prefix or --with)
>
> Any help is appreciated..
>
> Travis

Well, I've not had any trouble configuring and building from source and aside
from a legacy binary install used briefly I have only used postgresql built
from source.

Perhaps you could provide slightly more information, such as the OS and what
has been installed on it regarding support for development, like header files,
and then may be someone stands a chance of helping.

In general I would say that if you need help it is better to give slightly more
information than you think is needed. Excessive amounts is perhaps bad but
slightly too much may well provide information that you will be asked for
before any progress can be made.

For instance, I don't know much about the configure process but without
looking, and I'm not going to until there's sufficient information to make me
think I stand a chance of determining the fault, I'm going to ask you to do:

find /usr -name \*\.h | xargs grep accept



--
Nigel J. Andrews
Director

---
Logictree Systems Limited
Computer Consultants


Re: Can't run configure

From
"Williams, Travis L, NPONS"
Date:
You know.. sometimes I amaze myself when I send off something like
below.. yet freak out when people do the same to me..  ;)(feel free to
beat the newbie!) anyway hpux 11.20.. I installed the GNU gcc and make..
I can copy the config.log.. but it is a little to much..  besides that
its pretty stand HP stuff.. below is the output of the find you sent..:

/usr/conf/sio/disc3.h: * indicates whether the driver in configuring,
accepting IO,
/usr/conf/sys/net_diag.h:AXIN:  The request (zx25callacc) to accept an
incoming call on ZLU %d
/usr/conf/sys/protosw.h:#define    PRU_ACCEPT        5    /*
accept connection from peer */
/usr/conf/sys/protosw.h:#define    PRU_ACCEPTCONN        18    /*
accept a connection */
/usr/conf/sys/scall_define.h:#define    SYS_accept    275
/usr/conf/sys/socket.h:   extern int accept __((int, struct sockaddr *,
socklen_t *));
/usr/conf/sys/socket.h:   extern int accept __((int, void *, int *));
/usr/conf/sys/socketvar.h: * Socket where accepts occur is so_head in
all subsidiary sockets.
/usr/conf/sys/socketvar.h: * If so_head is 0, socket is not related to
an accept.
/usr/conf/sys/socketvar.h: * while so_q is a queue of connections ready
to be accepted.
/usr/conf/sys/socketvar.h:    struct    socket *so_head;    /* back
pointer to accept socket */
/usr/conf/sys/termio.h: * This ioctl requires superuser previlege and is
accepted only on
/usr/conf/sys/termio.h: * This ioctl requires superuser previlege and is
accepted only on
/usr/conf/sys/dlpi.h:        int    dl_accept_value;    /* min.
acceptable bits/second*/
/usr/conf/sys/dlpi.h:        int    dl_accept_value;    /* min.
acceptable value of */
/usr/conf/sys/dlpi.h:        dl_through_t    dl_rcv_throughput;  /*
desired and acceptable*/
/usr/conf/sys/dlpi.h:        dl_transdelay_t    dl_rcv_trans_delay; /*
desired and acceptable*/
/usr/conf/sys/stream.h:    long        q_minpsz;    /* min packet
size accepted */
/usr/conf/sys/stream.h:    long        q_maxpsz;    /* max packet
size accepted */
/usr/conf/sys/tiuser.h:#define TRESQLEN        26      /* resfd
specified to accept w/ qlen>0  */
/usr/conf/sys/tiuser.h:extern    int    t_accept __( (int, int, struct
t_call *) );
/usr/conf/ufs/fs.h: * accept this magic number will handle
fs_featurebits correctly.
/usr/conf/netinet/ip_info.h:#define TCPS_BOUND       -4     /*
bound, ready to connect or accept */
/usr/conf/strtio/pty.h: * to work with this flag turn on.  This is
acceptable to HP because we have
/usr/local/include/FlexLexer.h:    yy_state_type yy_last_accepting_state;
/usr/local/include/FlexLexer.h:    char* yy_last_accepting_cpos;
/usr/local/include/bfd.h:       only accepts a subset of the
instructions
/usr/local/include/c++/3.2/bits/locale_facets.h:    // String literal of
acceptable (narrow) input, for num_get.
/usr/local/include/c++/3.2/bits/stl_deque.h:// operators but also
operator- must accept mixed iterator/const_iterator
/usr/local/include/c++/3.2/bits/stl_function.h: *  functor whose @c
operator() accepts a floating-point number, subtracts
/usr/local/include/c++/3.2/bits/stl_iterator.h:  // operators but also
operator- must accept mixed iterator/const_iterator
/usr/local/include/c++/3.2/hppa2.0n-hp-hpux11.00/bits/c++config.h://
changing the global allocator policy would be probably be accepted.
/usr/include/sys/net_diag.h:AXIN:  The request (zx25callacc) to accept
an incoming call on ZLU %d
/usr/include/sys/stream.h:    long        q_minpsz;    /* min
packet size accepted */
/usr/include/sys/stream.h:    long        q_maxpsz;    /* max
packet size accepted */
/usr/include/sys/tiuser.h:#define TRESQLEN        26      /* resfd
specified to accept w/ qlen>0  */
/usr/include/sys/tiuser.h:extern    int    t_accept __( (int, int,
struct t_call *) );
/usr/include/sys/xti.h:#define TRESQLEN    26    /* resfd specified to
accept w/ qlen>0    */
/usr/include/sys/xti.h:    t_scalar_t minacceptvalue; /* value of minimum
acceptable quality    */
/usr/include/sys/xti.h:extern    int    t_accept __((int, int, struct
t_call *));
/usr/include/sys/fs.h: * accept this magic number will handle
fs_featurebits correctly.
/usr/include/sys/portal.h: *      It is acceptable for code to be
written expecting the result
/usr/include/sys/protosw.h:#define    PRU_ACCEPT        5
/* accept connection from peer */
/usr/include/sys/protosw.h:#define    PRU_ACCEPTCONN        18
/* accept a connection */
/usr/include/sys/pstat/socket_pstat_body.h:#define PS_TCPS_BOUND
-4  /* bound, ready to connect or accept */
/usr/include/sys/pstat/socket_pstat_body.h:
* to be accepted
/usr/include/sys/scall_define.h:#define    SYS_accept    275
/usr/include/sys/socket.h:   extern int accept __((int, struct sockaddr
*, socklen_t *));
/usr/include/sys/socket.h:   extern int accept __((int, void *, int *));
/usr/include/sys/socketvar.h: * Socket where accepts occur is so_head in
all subsidiary sockets.
/usr/include/sys/socketvar.h: * If so_head is 0, socket is not related
to an accept.
/usr/include/sys/socketvar.h: * while so_q is a queue of connections
ready to be accepted.
/usr/include/sys/socketvar.h:    struct    socket *so_head;    /* back
pointer to accept socket */
/usr/include/sys/termio.h: * This ioctl requires superuser previlege and
is accepted only on
/usr/include/sys/termio.h: * This ioctl requires superuser previlege and
is accepted only on
/usr/include/sys/dlpi.h:        int    dl_accept_value;
/* min. acceptable bits/second*/
/usr/include/sys/dlpi.h:        int    dl_accept_value;
/* min. acceptable value of */
/usr/include/sys/dlpi.h:        dl_through_t
dl_rcv_throughput;  /* desired and acceptable*/
/usr/include/sys/dlpi.h:        dl_transdelay_t
dl_rcv_trans_delay; /* desired and acceptable*/
/usr/include/netinet/ip_info.h:#define TCPS_BOUND       -4     /*
bound, ready to connect or accept */
/usr/include/limits.h:                         accepted by
bc */
/usr/include/limits.h:                       constant
accepted by the bc
/usr/include/prot.h:extern int acceptable_password __((char *, FILE *));
/usr/include/rpc/rpc_msg.h:enum accept_stat {
/usr/include/rpc/rpc_msg.h: * Reply to an rpc request that was accepted
by the server.
/usr/include/rpc/rpc_msg.h: * accepted.
/usr/include/rpc/rpc_msg.h:struct accepted_reply {
/usr/include/rpc/rpc_msg.h:    enum accept_stat    ar_stat;
/usr/include/rpc/rpc_msg.h:        struct accepted_reply RP_ar;
/usr/include/rpc/trace.h:#define    TR_accepted 91
/usr/include/rpc/trace.h:#define    TR_do_accept 221
/usr/include/rpc/trace.h:#define    TR_t_accept  606
/usr/include/rpc/trace.h:#define    TR_xdr_accepted_reply  667
/usr/include/gssapi/gssapi.h:    OM_uint32 acceptor_addrtype;
/usr/include/gssapi/gssapi.h:    gss_buffer_desc acceptor_address;
/usr/include/gssapi/gssapi.h:OM_uint32 gss_accept_sec_context(
/usr/include/gssapi/gssapi.h:    const gss_cred_id_t,    /*
acceptor_cred_handle */
/usr/include/gssapi/gssapi.h:    OM_uint32,        /*
acceptor_time_req */
/usr/include/gssapi/gssapi.h:    OM_uint32 *        /*
acceptor_time_rec */
/usr/include/gssapi/gssapi.h:    OM_uint32 *,        /*
acceptor_lifetime */
/usr/include/gssapi/gssapi.h:OM_uint32 kgss_accept_sec_context(
/usr/include/gssapi.h:    OM_uint32 acceptor_addrtype;
/usr/include/gssapi.h:    gss_buffer_desc acceptor_address;
/usr/include/gssapi.h:OM_uint32 gss_accept_sec_context(
/usr/include/gssapi.h:    const gss_cred_id_t,    /* acceptor_cred_handle
*/
/usr/include/gssapi.h:    OM_uint32,        /* acceptor_time_req */
/usr/include/gssapi.h:    OM_uint32 *        /* acceptor_time_rec */
/usr/include/gssapi.h:    OM_uint32 *,        /* acceptor_lifetime */
/usr/include/gssapi.h:OM_uint32 kgss_accept_sec_context(
/usr/include/krb5/gssapi.h:      OM_uint32 acceptor_addrtype;
/usr/include/krb5/gssapi.h:      gss_buffer_desc acceptor_address;
/usr/include/krb5/gssapi.h:GSS_DLLIMP OM_uint32 KRB5_CALLCONV
gss_accept_sec_context
/usr/include/krb5/gssapi.h:            gss_cred_id_t,        /*
acceptor_cred_handle */
/usr/include/krb5/gssapi.h:        OM_uint32,            /*
acceptor_time_req */
/usr/include/krb5/gssapi.h:        OM_uint32 FAR *        /*
acceptor_time_rec */
/usr/include/krb5/gssapi.h:        OM_uint32 FAR *,        /*
acceptor_lifetime */
/usr/sam/lib/C/fs_swap.h:    label "When the values shown are
acceptable, select \"OK\"."

Travis

-----Original Message-----
From: Nigel J. Andrews [mailto:nandrews@investsystems.co.uk]
Sent: Friday, September 13, 2002 3:23 PM
To: Williams, Travis L, NPONS
Cc: pgsql-general
Subject: Re: [GENERAL] Can't run configure


On Fri, 13 Sep 2002, Williams, Travis L, NPONS wrote:

> All,
>     A little more data.. this does not happen on 7.1.3.  It
completes succesfully.. but on 7.2 it gets the same error as below.
>
> Travis
>
> -----Original Message-----
> From: Williams, Travis L, NPONS
> Sent: Friday, September 13, 2002 12:48 PM
> To: pgsql-general
> Subject: [GENERAL] Can't run configure
>
>
> I don't know whether this should be in novice or general.. but
whenever I run the configure script it dies with the following error:
>
> checking types of arguments for accept()... configure: error: could
not determine argument types
>
> I'm not quite sure what the problem is here.. considering I didn't
give it any arguments (like --prefix or --with)
>
> Any help is appreciated..
>
> Travis

Well, I've not had any trouble configuring and building from source and
aside
from a legacy binary install used briefly I have only used postgresql
built
from source.

Perhaps you could provide slightly more information, such as the OS and
what
has been installed on it regarding support for development, like header
files,
and then may be someone stands a chance of helping.

In general I would say that if you need help it is better to give
slightly more
information than you think is needed. Excessive amounts is perhaps bad
but
slightly too much may well provide information that you will be asked
for
before any progress can be made.

For instance, I don't know much about the configure process but without
looking, and I'm not going to until there's sufficient information to
make me
think I stand a chance of determining the fault, I'm going to ask you to
do:

find /usr -name \*\.h | xargs grep accept



--
Nigel J. Andrews
Director

---
Logictree Systems Limited
Computer Consultants


Re: Can't run configure

From
Tom Lane
Date:
"Williams, Travis L, NPONS" <tlw@att.com> writes:
> You know.. sometimes I amaze myself when I send off something like
> below.. yet freak out when people do the same to me..  ;)(feel free to
> beat the newbie!) anyway hpux 11.20.. I installed the GNU gcc and make..
> I can copy the config.log.. but it is a little to much..

I think we need to see the part of config.log that shows configure
trying to test the argument types of accept().  It works fine on HPUX
10.20, which seems to have the same definition of accept() as 11.20
does, according to your grep of /usr/include/sys/socket.h.  Certainly
the correct set of type names *does* get tried; why does the test
program fail to compile anyway?

Are you sure that your gcc installation is working (can you compile and
run a trivial test program)?

            regards, tom lane

Re: Can't run configure

From
Tom Lane
Date:
"Williams, Travis L, NPONS" <tlw@att.com> writes:
> I attached my config.log.

Here's the problem: all the attempts to check accept() are failing with:

configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (int, void *, int *);
int main() {

; return 0; }

My guess is that the 11.20 sys/socket.h requires some other header to be
included first to provide some typedef.  Can you look at the referenced
lines to see what type name(s) appear there, and then grep to see what
system include file defines it/them?

            regards, tom lane

Re: Can't run configure

From
"Williams, Travis L, NPONS"
Date:
Tom,
    What you asking is a little out of my league (not that I have a
problem grepping or anything ;) but I'm not quite sure what your asking
for..

Travis

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Saturday, September 14, 2002 10:55 AM
To: Williams, Travis L, NPONS
Cc: Nigel J. Andrews; pgsql-general
Subject: Re: [GENERAL] Can't run configure


"Williams, Travis L, NPONS" <tlw@att.com> writes:
> I attached my config.log.

Here's the problem: all the attempts to check accept() are failing with:

configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (int, void *, int *);
int main() {

; return 0; }

My guess is that the 11.20 sys/socket.h requires some other header to be
included first to provide some typedef.  Can you look at the referenced
lines to see what type name(s) appear there, and then grep to see what
system include file defines it/them?

            regards, tom lane

Re: Can't run configure

From
"Nigel J. Andrews"
Date:
On Sat, 14 Sep 2002, Williams, Travis L, NPONS wrote:

> Tom,
>     What you asking is a little out of my league (not that I have a
> problem grepping or anything ;) but I'm not quite sure what your asking
> for..


It might short cut things abit if you could send the /usr/include/sys/socket.h
file then we can start suggesting things to search for in other headers. Also
Tom or someone else with 10.20 can do a comparison and check that it's not a
difference in #if's, which seems unlikely but one never knows.

FWIW, looking at the config.log made me think that one would expect this test
to work be determining the failure of the compilation. That made me wonder why
it's a problem. Looking at configure I see my first thoughts were correct.
However, it does seem that all 18 combinations of arguments tried are failing
and failing with the same error messages. I suspect this means a macro
definition is missing somewhere for 11.20 or indeed a header file that was
being included no longer is. Hopefully in this later case it will be in this
file and doing a diff against 10.20 will then show it pretty quickly.

--
Nigel Andrews


>
> -----Original Message-----
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
> Sent: Saturday, September 14, 2002 10:55 AM
> To: Williams, Travis L, NPONS
> Cc: Nigel J. Andrews; pgsql-general
> Subject: Re: [GENERAL] Can't run configure
>
>
> "Williams, Travis L, NPONS" <tlw@att.com> writes:
> > I attached my config.log.
>
> Here's the problem: all the attempts to check accept() are failing with:
>
> configure:6079: gcc -c -O2   conftest.c 1>&5
> In file included from configure:6071:
> /usr/include/sys/socket.h:484: parse error before "sendfile"
> /usr/include/sys/socket.h:485: parse error before "bsize_t"
> /usr/include/sys/socket.h:486: parse error before "sendpath"
> /usr/include/sys/socket.h:487: parse error before "bsize_t"
> configure: failed program was:
> #line 6066 "configure"
> #include "confdefs.h"
> #ifdef HAVE_SYS_TYPES_H
> #include <sys/types.h>
> #endif
> #ifdef HAVE_SYS_SOCKET_H
> #include <sys/socket.h>
> #endif
> extern int accept (int, void *, int *);
> int main() {
>
> ; return 0; }
>
> My guess is that the 11.20 sys/socket.h requires some other header to be
> included first to provide some typedef.  Can you look at the referenced
> lines to see what type name(s) appear there, and then grep to see what
> system include file defines it/them?
>



Re: Can't run configure

From
"Williams, Travis L, NPONS"
Date:
Are you doing something different with this from 7.1.3 to 7.2?  Like I
said before 7.1.3 configures fine.

Travis


socket.h:

/* @(#) socket.h $Date: 2001/04/16 11:56:07 $Revision: r11.11/2
PATCH_11.11 (PHNE_23645) */
/*
 * BEGIN_DESC
 *
 *  File:     socket.h                       Date: 12/2/1998
 *  @(#)
 *
 *  Purpose:
 *    Definitions related to sockets: types, address families,
options.
 *
 *  Classification:            Release to Release Consistency
Req:
 *        <<please select one of the following:>>
 *     kernel subsystem private        none
 *     kernel private                none
 *     kernel 3rd party private        limited source
 *     public                    binary & source
 *
 *  BE header:  yes
 *
 *  Shipped:  yes
 *    /usr/include/sys/socket.h
 *    /usr/conf/sys/socket.h
 *
 *  <<please delete the following note if this is a "public" header>>
 *  NOTE:
 *    This header file contains information specific to the internals
 *    of the HP-UX implementation.  The contents of this header file
 *    are subject to change without notice.  Such changes may affect
 *    source code, object code, or binary compatibility between
 *    releases of HP-UX.  Code which uses the symbols contained within
 *    this header file is inherently non-portable (even between HP-UX
 *    implementations).
 *
 * END_DESC
*/


#ifndef _SYS_SOCKET_INCLUDED    /* allow multiple includes of this file
*/
#define _SYS_SOCKET_INCLUDED    /* without causing compilation errors */

/*
 * Copyright (c) 1982, 1985, 1986 Regents of the University of
California.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms are permitted
 * provided that the above copyright notice and this paragraph are
 * duplicated in all such forms and that any documentation,
 * advertising materials, and other materials related to such
 * distribution and use acknowledge that the software was developed
 * by the University of California, Berkeley.  The name of the
 * University may not be used to endorse or promote products derived
 * from this software without specific prior written permission.
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 *
 *    socket.h    7.3 (Berkeley) 6/27/88
 */

#include <sys/stdsyms.h>

#ifdef _INCLUDE_XOPEN_SOURCE_EXTENDED

#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/uio.h>

/*
 * Types
 */

#ifndef _CADDR_T
#  define _CADDR_T
   typedef char *caddr_t;
#endif /* _CADDR_T */

#ifndef    _SA_FAMILY_T
#define    _SA_FAMILY_T
typedef unsigned short    sa_family_t;
#endif /* ! _SA_FAMILY_T */

/*
 * Types of sockets
 */
#define    SOCK_STREAM    1        /* stream socket */
#define    SOCK_DGRAM    2        /* datagram socket */
#define    SOCK_RAW    3        /* raw-protocol interface */
#define    SOCK_RDM    4        /* reliably-delivered message */
#define    SOCK_SEQPACKET    5        /* sequenced packet stream */

/*
 * Option flags per-socket.
 */
#define    SO_DEBUG    0x0001        /* turn on debugging info
recording */
#define    SO_ACCEPTCONN    0x0002        /* socket has had listen() */
#define    SO_REUSEADDR    0x0004        /* allow local address reuse */
#define    SO_KEEPALIVE    0x0008        /* keep connections alive */
#define    SO_DONTROUTE    0x0010        /* just use interface addresses
*/
#define    SO_BROADCAST    0x0020        /* permit sending of broadcast
msgs */
#define    SO_USELOOPBACK    0x0040        /* bypass hardware when possible
*/
#define    SO_LINGER    0x0080        /* linger on close if data
present */
#define    SO_OOBINLINE    0x0100        /* leave received OOB data in
line */
#define SO_REUSEPORT     0x0200          /* allow local address & port
reuse */
#define SO_GETIFADDR    0x0400        /* HP: save the loc IP addr for
inb UDP packets */
#define SO_PMTU         0x0800          /* HP: advise to use PMTU
discovery */
#define SO_INPCB_COPY   0x1000          /* HP: local copy of inpcb
*/

/*
 * Additional options, not kept in so_options.
 */
#define SO_SNDBUF    0x1001        /* send buffer size */
#define SO_RCVBUF    0x1002        /* receive buffer size */
#define SO_SNDLOWAT    0x1003        /* send low-water mark */
#define SO_RCVLOWAT    0x1004        /* receive low-water mark */
#define SO_SNDTIMEO    0x1005        /* send timeout */
#define SO_RCVTIMEO    0x1006        /* receive timeout */
#define    SO_ERROR    0x1007        /* get error status and clear */
#define    SO_TYPE        0x1008        /* get socket type */
#define    SO_SND_COPYAVOID    0x1009        /* avoid copy on send*/
#define    SO_RCV_COPYAVOID    0x100a        /* avoid copy on rcv */
#define    SO_PROTOTYPE    0x100b        /* assign protocol for RAW
sockets */
#define SO_DISTRIBUTE   0x100c          /* distribute UDP datagrams to
*/
                    /* multiple streams - internal
use */
                    /* only
*/


#define SO_GET  1       /* Get socket option for Streams TCP/IP */
#define SO_SET  2       /* Set socket option for Streams TCP/IP */

/*
 * Structure used for manipulating linger option.
 *
 * if l_onoff == 0:
 *    close(2) returns immediately; any buffered data is sent later
 *    (default)
 *
 * if l_onoff != 0:
 *    if l_linger == 0, close(2) returns after discarding any unsent
data
 *    if l_linger != 0, close(2) does not return until buffered data is
sent
 */

struct    linger {
    int    l_onoff;        /* 0 = do not wait to send data
*/
                    /* non-0 = see l_linger
*/
    int    l_linger;        /* 0 = discard unsent data
*/
                    /* non-0 = wait to send data
*/
};

/*
 * Level number for (get/set)sockopt() to apply to socket itself.
 */
#define    SOL_SOCKET    0xffff        /* options for socket level */

/*
 * Address families.
 */
#define    AF_UNSPEC    0        /* unspecified */
#define    AF_UNIX        1        /* local to host (pipes,
portals) */
#define    AF_INET        2        /* internetwork: UDP, TCP, etc.
*/
#define    AF_IMPLINK    3        /* arpanet imp addresses */
#define    AF_PUP        4        /* pup protocols: e.g. BSP */
#define    AF_CHAOS    5        /* mit CHAOS protocols */
#define    AF_NS        6        /* XEROX NS protocols */
#define    AF_NBS        7        /* nbs protocols */
#define    AF_ECMA        8        /* european computer
manufacturers */
#define    AF_DATAKIT    9        /* datakit protocols */
#define    AF_CCITT    10        /* CCITT protocols, X.25 etc */
#define    AF_SNA        11        /* IBM SNA */
#define AF_DECnet    12        /* DECnet */
#define AF_DLI        13        /* Direct data link interface */
#define AF_LAT        14        /* LAT */
#define    AF_HYLINK    15        /* NSC Hyperchannel */
#define    AF_APPLETALK    16        /* Apple Talk */
#define AF_OTS        17        /* Used for OSI in the ifnets */
#define    AF_NIT        18        /* NIT */
#define AF_VME_LINK    19        /* VME backplane protocols */
#define AF_KEY          20              /* IPSec PF_KEY protocol */
#define AF_POLICY       21              /* IPSec PF_POLICY protocol */
#define AF_INET6        22              /* IPv6 protocol */
#define    AF_MAX        23

/* Valid values for the "how" argument in the shutdown() function.
 */
#define SHUT_RD        0        /* Disables further receive
operations*/
#define SHUT_WR        1        /* Disables further send
operations   */
#define SHUT_RDWR    2        /* Disables further send and
receive
                     * operations
                     */
/*
 * Unix98 type used for certain objects in X/Open sockets APIs
 * whose size will not grow with the architecture, for example
 * socket address length.
 *
 * We choose a definition that is consistent with the Unix95
 * profile.  However, in future implementations, we may choose
 * to limit the size to 32 bits in both 32-bit and 64-bit data
 * models.
 */
typedef size_t socklen_t;


#ifndef    _XOPEN_SOURCE_EXTENDED
/*
 * Valid values for the "flags" argument in sendfile()/sendpath().
 */
#define SF_DISCONNECT    1    /* Disables further sends and receives
*/
#endif /* !_XOPEN_SOURCE_EXTENDED */

#if defined(_XOPEN_SOURCE_EXTENDED) && !defined(_KERNEL)
/*
 * Structure used by kernel to store most
 * addresses (CASPEC/1170).
 */

struct sockaddr {
    sa_family_t    sa_family;      /* address family */
    char               sa_data[14];    /* up to 14 bytes of direct
address */
};

#else
/*
 * Structure used by kernel to store most
 * addresses.
 */
struct sockaddr {
    unsigned short sa_family;    /* address family */
    char           sa_data[14];    /* up to 14 bytes of direct
address */
};

#endif /* _XOPEN_SOURCE_EXTENDED */

#if defined(_HPUX_SOURCE) || defined(_INCLUDE_XOPEN_SOURCE_520)
struct sockaddr_ext {
        sa_family_t     sa_family;      /* address family */
        char            sa_data[26];    /* up to 26 bytes of direct
address */
};

/* sockaddr_storage:
 *  - It is large enough to accomodate sockaddr_in and sockaddr_in6 and
 *    possibly other protocol specific socket addresses.
 *  - The sockaddr_storage structure will align on a 64 bit boundary on
 *    HP-UX as the "_ss_align" field is defined as "double" which is
 *    8 byte (64 bit) on ILP32 and LP64.
 *  - "uint64_t" is not a valid type for strict ANSI C compilation for
ILP32.
 *  - If "double" ever becomes larger than 64 bit in the future, these
 *    defines need to be updated.
 */

#define _SS_MAXSIZE     256    /* Implementation specific max size */

#define _SS_ALIGNSIZE    (sizeof(double))  /* force the structure up to
64bit
                                             aligned */

/*
 * Definitions used for sockaddr_storage structure paddings design.
 */

#define _SS_PAD1SIZE    (_SS_ALIGNSIZE - sizeof (sa_family_t))


#define _SS_PAD2SIZE    (_SS_MAXSIZE - (sizeof (sa_family_t) +
_SS_PAD1SIZE + \
                          _SS_ALIGNSIZE))


struct sockaddr_storage {
    sa_family_t   ss_family;        /* address family */
        /* Following fields are implementation specific */
    char          _ss_pad1[_SS_PAD1SIZE];    /* 6 bytes of padding
*/
    double          _ss_align;    /* field to force desired 64bit
structure */
        char          _ss_pad2[_SS_PAD2SIZE];
};

#endif /* HP_UX SOURCE || INCLUDE_XOPEN_SOURCE_520  */

#ifndef    _XOPEN_SOURCE_EXTENDED
/*
 * Structure used by kernel to pass protocol
 * information in raw sockets.
 */
struct sockproto {
    unsigned short    sp_family;    /* address family */
    unsigned short    sp_protocol;    /* protocol */
};
#endif /* !_XOPEN_SOURCE_EXTENDED */

/*
 * Protocol families, same as address families for now.
 */
#define    PF_UNSPEC    AF_UNSPEC
#define    PF_UNIX        AF_UNIX
#define    PF_INET        AF_INET
#define    PF_IMPLINK    AF_IMPLINK
#define    PF_PUP        AF_PUP
#define    PF_CHAOS    AF_CHAOS
#define    PF_NS        AF_NS
#define    PF_NBS        AF_NBS
#define    PF_ECMA        AF_ECMA
#define    PF_DATAKIT    AF_DATAKIT
#define    PF_CCITT    AF_CCITT
#define    PF_SNA        AF_SNA
#define PF_DECnet    AF_DECnet
#define PF_DLI        AF_DLI
#define PF_LAT        AF_LAT
#define    PF_HYLINK    AF_HYLINK
#define    PF_APPLETALK    AF_APPLETALK
#define PF_OTS        AF_OTS
#define PF_NIT        AF_NIT
#define PF_VME_LINK    AF_VME_LINK
#define PF_KEY          AF_KEY
#define PF_POLICY       AF_POLICY
#define PF_INET6        AF_INET6

#define    PF_MAX        AF_MAX

/*
 * Maximum queue length specifiable by listen.
 */
#define    SOMAXCONN    4096

#if defined(_XOPEN_SOURCE_EXTENDED) && !defined(_KERNEL)
/*
 * Message header for recvmsg and sendmsg calls.
 * Used value-result for recvmsg, value only for sendmsg.
 */
struct msghdr {
    void    *msg_name;        /* optional address */
    socklen_t msg_namelen;        /* size of address */
    struct    iovec *msg_iov;        /* scatter/gather array */
    int    msg_iovlen;        /* # elements in msg_iov */
    void    *msg_control;        /* ancillary data, see below */
    socklen_t msg_controllen;    /* ancillary data buffer len */
    int    msg_flags;        /* flags on received message */
};
#else
/*
 * Message header for recvmsg and sendmsg calls.
 */
struct msghdr {
    caddr_t    msg_name;        /* optional address */
    int    msg_namelen;        /* size of address */
    struct    iovec *msg_iov;        /* scatter/gather array */
    int    msg_iovlen;        /* # elements in msg_iov */
    caddr_t    msg_accrights;        /* access rights sent/received
*/
    int    msg_accrightslen;
};

/*
 * Message header for recvmsg and sendmsg calls.
 * Used value-result for recvmsg, value only for sendmsg.
 */
struct msghdr2 {
    caddr_t    msg_name;        /* optional address */
    socklen_t msg_namelen;        /* size of address */
    struct    iovec *msg_iov;        /* scatter/gather array */
    u_int    msg_iovlen;        /* # elements in msg_iov */
    caddr_t    msg_control;        /* ancillary data, see below */
    socklen_t msg_controllen;    /* ancillary data buffer_ len */
    int    msg_flags;        /* flags on received message */
};
#endif /* _XOPEN_SOURCE_EXTENDED */

#define    MSG_OOB        0x1        /* process out-of-band data */
#define    MSG_PEEK    0x2        /* peek at incoming message */
#define    MSG_DONTROUTE    0x4        /* send without using routing
tables */

#ifdef _XOPEN_SOURCE_EXTENDED
#define MSG_EOR         0x8             /* data completes record */
#define MSG_TRUNC       0x10            /* data discarded before
delivery */
#define MSG_CTRUNC      0x20            /* control data lost before
delivery */
#define MSG_WAITALL     0x40            /* wait for full request or
error */
#else
#ifdef _KERNEL
#define MSG_EOR         0x8             /* data completes record */
#define MSG_TRUNC       0x10            /* data discarded before
delivery */
#define MSG_CTRUNC      0x20            /* control data lost before
delivery */
#define MSG_WAITALL     0x40            /* wait for full request or
error */
#endif /* _KERNEL */
#endif /* _XOPEN_SOURCE_EXTENDED */

#ifdef _KERNEL
/* Following used within kernel */
#define MSG_MBUF        0x1000          /* data in kernel, skip uiomove
*/
#define MSG_NONBLOCK    0x4000          /* nonblocking request */
#define MSG_COMPAT      0x8000          /* 4.3-format sockaddr */
#endif  /* _KERNEL */

#define    MSG_MAXIOVLEN    16

#if defined(_XOPEN_SOURCE_EXTENDED) || defined(_KERNEL)
/*
 * Given a byte length, align it to word boundary, aligned for cmsghdr.
 */
#define _CMSG_ALIGN(p)    (((p) + (int)sizeof(socklen_t) - 1) &
~((int)sizeof(socklen_t) - 1))

/*
 * Header for ancillary data objects in msg_control buffer.
 * Used for additional information with/about a datagram
 * not expressible by flags.  The format is a sequence
 * of message elements headed by cmsghdr structures.
 */
struct cmsghdr {
    socklen_t cmsg_len;        /* data byte count, including
hdr */
    int    cmsg_level;        /* originating protocol */
    int    cmsg_type;        /* protocol-specific type */
/* followed by    u_char  cmsg_data[]; */
};

/* given pointer to struct cmsghdr, return pointer to data */
#define    CMSG_DATA(cmsg)        ((unsigned char *)((cmsg) + 1))


#define    CMSG_FIRSTHDR(mhdr)    ((struct cmsghdr *)(mhdr)->msg_control)

/* given pointer to struct cmsghdr, return pointer to next cmsghdr */
#define    CMSG_NXTHDR(mhdr, cmsg)    \
    (((cmsg) == (struct cmsghdr *)0) ? CMSG_FIRSTHDR(mhdr) : \
     (((caddr_t)(cmsg) + ((struct cmsghdr *)(cmsg))->cmsg_len +
(int)sizeof(struct cmsghdr) > \
        (caddr_t)((mhdr)->msg_control) + (mhdr)->msg_controllen) ? \
        (struct cmsghdr *)0 : \
        (struct cmsghdr *)((caddr_t)(cmsg) + _CMSG_ALIGN(((struct
cmsghdr *)(cmsg))->cmsg_len))))

#define CMSG_SPACE(length)    (sizeof(struct cmsghdr) + \
                _CMSG_ALIGN(length))

#define CMSG_LEN(length)    (sizeof(struct cmsghdr) + length)

/* "Socket"-level control message types: */
#define    SCM_RIGHTS    0x01        /* access rights (array of int)
*/

#endif /* _XOPEN_SOURCE_EXTENDED || _KERNEL */

/* BSDIPC system calls */

#ifndef _KERNEL

#if defined(_XOPEN_SOURCE_EXTENDED) && !defined(_KERNEL)
#ifdef __cplusplus
  extern "C" {
#endif /* __cplusplus */
   extern int accept __((int, struct sockaddr *, socklen_t *));
   extern int bind __((int, const struct sockaddr *, socklen_t));
   extern int connect __((int, const struct sockaddr *, socklen_t));
   extern int getpeername __((int, struct sockaddr *, socklen_t *));
   extern int getsockname __((int, struct sockaddr *, socklen_t *));
   extern int getsockopt __((int, int, int, void *, socklen_t *));
   extern int listen __((int, int));
   extern ssize_t recv __((int, void *, size_t, int));
   extern ssize_t recvfrom __((int, void *, size_t, int,
                               struct sockaddr *, socklen_t *));
   extern ssize_t recvmsg __((int, struct msghdr *, int));
   extern ssize_t send __((int, const void *, size_t, int));
   extern ssize_t sendmsg __((int, const struct msghdr *, int));
   extern ssize_t sendto __((int, const void *, size_t, int,
                             const struct sockaddr *, socklen_t));
   extern int setsockopt __((int, int, int, const void *, socklen_t));
   extern int shutdown __((int, int));
   extern int socket __((int, int, int));
   extern int socketpair __((int, int, int, int[2]));
#ifdef __cplusplus
   }
#endif /* __cplusplus */

#else  /* !_XOPEN_SOURCE_EXTENDED*/
#ifdef __cplusplus
  extern "C" {
#endif /* __cplusplus */
   extern int accept __((int, void *, int *));
   extern int bind __((int, const void *, int));
   extern int connect __((int, const void *, int));
   extern int getpeername __((int, void *, int *));
   extern int getsockname __((int, void *, int *));
   extern int getsockopt __((int, int, int, void *, int *));
   extern int listen __((int, int));
   extern int recv __((int, void *, int, int));
   extern int recvfrom __((int, void *, int, int, void *, int *));
   extern int recvmsg __((int, struct msghdr msg[], int));
   extern int send __((int, const void *, int, int));
   extern int sendto __((int, const void *, int, int, const void *,
int));
   extern int sendmsg __((int, const struct msghdr msg[], int));
   extern int setsockopt __((int, int, int, const void *, int));
   extern int shutdown __((int, int));
   extern int socket __((int, int, int));
   extern int socketpair __((int, int, int, int[2]));
   extern sbsize_t sendfile __((int, int, off_t, bsize_t,
                               const struct iovec *, int));
   extern sbsize_t sendpath __((int, char *, off_t, bsize_t,
                               const struct iovec *, int));
#if defined(_LARGEFILE64_SOURCE)
#ifdef __LP64__
#define sendfile64 sendfile
#define sendpath64 sendpath
#else /* __LP64__ */
extern sbsize64_t sendfile64 __((int, int, off64_t, bsize64_t,
             const struct iovec *, int));
extern sbsize64_t sendpath64 __((int, char *, off64_t, bsize64_t,
             const struct iovec *, int));
#endif /* __LP64 */
#endif /* _LARGEFILE64_SOURCE */

#ifdef _APP32_64BIT_OFF_T
extern sbsize64_t __sendfile64 __((int,int,off_t,bsize_t, const struct
iovec *, int));
extern sbsize64_t __sendpath64 __((int,char *,off_t,bsize_t,const struct
iovec *,int));
#ifndef __cplusplus
static sbsize_t sendfile(a,b,c,d,e,f) int a,b,f; off_t c; bsize_t d;
__const struct iovec * e; { return __sendfile64(a,b,c,d,e,f); }
static sbsize_t sendpath(a,b,c,d,e,f) int a,f; char *b; off_t c; bsize_t
d; __const struct iovec * e; { return __sendpath64(a,b,c,d,e,f); }
#endif /* __cplusplus */
#endif /* _APP32_64BIT_OFF_T */
#ifdef __cplusplus
   }
#endif /* __cplusplus */

#if defined(__cplusplus) && defined(_APP32_64BIT_OFF_T)
inline sbsize_t sendfile __((int,int,off_t,bsize_t,const struct iovec
*,int));
inline sbsize_t sendpath __((int,char *,off_t,bsize_t, const struct
iovec *,int));
inline sbsize_t sendfile(int a, int b, off_t c, bsize_t d, const struct
iovec *
e, int f) { return __sendfile64(a,b,c,d,e,f); }
inline sbsize_t sendpath(int a, char *b, off_t c, bsize_t d, const
struct iovec
* e, int f) { return __sendpath64(a,b,c,d,e,f); }
#endif /* __cplusplus && _APP32_64BIT_OFF_T */

#endif  /* !_XOPEN_SOURCE_EXTENDED*/

#ifndef _XOPEN_SOURCE_EXTENDED
#ifdef __cplusplus
  extern "C" {
#endif /* __cplusplus */
   extern int rcmd __((char **, int, const char *,
                       const char *, const char *, int *));
   extern int rexec __((char **, int, const char *,
                        const char *, const char *, int *));
   extern int rresvport __((int *));
   extern int ruserok __((const char *, int, const char *, const char
*));
#ifdef __cplusplus
   }
#endif /* __cplusplus */
#endif /* !_XOPEN_SOURCE_EXTENDED */

#endif /* not _KERNEL */

#endif /* _INCLUDE_XOPEN_SOURCE_EXTENDED */

#endif    /* not _SYS_SOCKET_INCLUDED */

:End socket.h

-----Original Message-----
From: Nigel J. Andrews [mailto:nandrews@investsystems.co.uk]
Sent: Sunday, September 15, 2002 10:54 AM
To: Williams, Travis L, NPONS
Cc: Tom Lane; pgsql-general
Subject: RE: [GENERAL] Can't run configure


On Sat, 14 Sep 2002, Williams, Travis L, NPONS wrote:

> Tom,
>     What you asking is a little out of my league (not that I have a
> problem grepping or anything ;) but I'm not quite sure what your
asking
> for..


It might short cut things abit if you could send the
/usr/include/sys/socket.h
file then we can start suggesting things to search for in other headers.
Also
Tom or someone else with 10.20 can do a comparison and check that it's
not a
difference in #if's, which seems unlikely but one never knows.

FWIW, looking at the config.log made me think that one would expect this
test
to work be determining the failure of the compilation. That made me
wonder why
it's a problem. Looking at configure I see my first thoughts were
correct.
However, it does seem that all 18 combinations of arguments tried are
failing
and failing with the same error messages. I suspect this means a macro
definition is missing somewhere for 11.20 or indeed a header file that
was
being included no longer is. Hopefully in this later case it will be in
this
file and doing a diff against 10.20 will then show it pretty quickly.

--
Nigel Andrews


>
> -----Original Message-----
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
> Sent: Saturday, September 14, 2002 10:55 AM
> To: Williams, Travis L, NPONS
> Cc: Nigel J. Andrews; pgsql-general
> Subject: Re: [GENERAL] Can't run configure
>
>
> "Williams, Travis L, NPONS" <tlw@att.com> writes:
> > I attached my config.log.
>
> Here's the problem: all the attempts to check accept() are failing
with:
>
> configure:6079: gcc -c -O2   conftest.c 1>&5
> In file included from configure:6071:
> /usr/include/sys/socket.h:484: parse error before "sendfile"
> /usr/include/sys/socket.h:485: parse error before "bsize_t"
> /usr/include/sys/socket.h:486: parse error before "sendpath"
> /usr/include/sys/socket.h:487: parse error before "bsize_t"
> configure: failed program was:
> #line 6066 "configure"
> #include "confdefs.h"
> #ifdef HAVE_SYS_TYPES_H
> #include <sys/types.h>
> #endif
> #ifdef HAVE_SYS_SOCKET_H
> #include <sys/socket.h>
> #endif
> extern int accept (int, void *, int *);
> int main() {
>
> ; return 0; }
>
> My guess is that the 11.20 sys/socket.h requires some other header to
be
> included first to provide some typedef.  Can you look at the
referenced
> lines to see what type name(s) appear there, and then grep to see what
> system include file defines it/them?
>



Re: Can't run configure

From
Tom Lane
Date:
"Williams, Travis L, NPONS" <tlw@att.com> writes:
> socket.h:

So where are bsize_t and sbsize_t declared?  They appear nowhere in
HPUX 10.20 headers, but it's clearly failure to include definitions
of these types that is causing gcc to spit up.

            regards, tom lane

Re: Can't run configure

From
"Williams, Travis L, NPONS"
Date:
Didn't see my first email come through.. so here is the config.log..
sorry if it gets duplicated..

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:635: checking host system type
configure:661: checking which template to use
configure:824: checking whether to build with locale support
configure:853: checking whether to build with recode support
configure:883: checking whether to build with multibyte character
support
configure:937: checking whether NLS is wanted
configure:972: checking for default port number
configure:1006: checking for default soft limit on number of connections
configure:1130: checking for gcc
configure:1243: checking whether the C compiler (gcc  ) works
configure:1259: gcc -o conftest    conftest.c  1>&5
configure:1285: checking whether the C compiler (gcc  ) is a
cross-compiler
configure:1290: checking whether we are using GNU C
configure:1299: gcc -E conftest.c
configure:1318: checking whether gcc accepts -g
configure:1361: checking whether the C compiler (gcc -O2 ) works
configure:1377: gcc -o conftest -O2   conftest.c  1>&5
configure:1403: checking whether the C compiler (gcc -O2 ) is a
cross-compiler
configure:1408: checking for Cygwin environment
configure:1424: gcc -c -O2  conftest.c 1>&5
configure: In function `main':
configure:1420: `__CYGWIN32__' undeclared (first use in this function)
configure:1420: (Each undeclared identifier is reported only once
configure:1420: for each function it appears in.)
configure: failed program was:
#line 1413 "configure"
#include "confdefs.h"

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:1441: checking for mingw32 environment
configure:1453: gcc -c -O2  conftest.c 1>&5
configure: In function `main':
configure:1449: `__MINGW32__' undeclared (first use in this function)
configure:1449: (Each undeclared identifier is reported only once
configure:1449: for each function it appears in.)
configure: failed program was:
#line 1446 "configure"
#include "confdefs.h"

int main() {
return __MINGW32__;
; return 0; }
configure:1472: checking for executable suffix
configure:1482: gcc -o conftest -O2   conftest.c  1>&5
configure:1503: checking how to run the C preprocessor
configure:1524: gcc -E  conftest.c >/dev/null 2>conftest.out
configure:1584: checking whether gcc needs -traditional
configure:1730: checking whether to build with Tcl
configure:1754: checking whether to build with Tk
configure:1815: checking whether to build Perl modules
configure:1841: checking whether to build Python modules
configure:1867: checking whether to build Java/JDBC tools
configure:2105: checking whether to build with PAM support
configure:2185: checking whether to build the ODBC driver
configure:2323: checking whether to build C++ modules
configure:2716: checking for mawk
configure:2716: checking for gawk
configure:2716: checking for nawk
configure:2716: checking for awk
configure:2746: checking for flex
configure:2811: checking whether ln -s works
configure:2843: checking for ld used by GCC
configure:2911: checking if the linker (/usr/ccs/bin/ld) is GNU ld
configure:2966: checking for ranlib
configure:2998: checking for lorder
configure:3030: checking for tar
configure:3068: checking for bison
configure:3151: checking for perl
configure:3288: checking for readline
configure:3310: gcc -o conftest -O2     conftest.c -lreadline  1>&5
/usr/ccs/bin/ld: Can't find library for -lreadline
collect2: ld returned 1 exit status
configure: failed program was:
#line 3299 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char readline();

int main() {
readline()
; return 0; }
configure:3310: gcc -o conftest -O2     conftest.c -ledit  1>&5
/usr/ccs/bin/ld: Can't find library for -ledit
collect2: ld returned 1 exit status
configure: failed program was:
#line 3299 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char readline();

int main() {
readline()
; return 0; }
configure:3310: gcc -o conftest -O2     conftest.c -lreadline -ltermcap
1>&5
/usr/ccs/bin/ld: Can't find library for -lreadline
collect2: ld returned 1 exit status
configure: failed program was:
#line 3299 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char readline();

int main() {
readline()
; return 0; }
configure:3310: gcc -o conftest -O2     conftest.c -ledit -ltermcap
1>&5
/usr/ccs/bin/ld: Can't find library for -ledit
collect2: ld returned 1 exit status
configure: failed program was:
#line 3299 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char readline();

int main() {
readline()
; return 0; }
configure:3310: gcc -o conftest -O2     conftest.c -lreadline -lncurses
1>&5
/usr/ccs/bin/ld: Can't find library for -lreadline
collect2: ld returned 1 exit status
configure: failed program was:
#line 3299 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char readline();

int main() {
readline()
; return 0; }
configure:3310: gcc -o conftest -O2     conftest.c -ledit -lncurses
1>&5
/usr/ccs/bin/ld: Can't find library for -ledit
collect2: ld returned 1 exit status
configure: failed program was:
#line 3299 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char readline();

int main() {
readline()
; return 0; }
configure:3310: gcc -o conftest -O2     conftest.c -lreadline -lcurses
1>&5
/usr/ccs/bin/ld: Can't find library for -lreadline
collect2: ld returned 1 exit status
configure: failed program was:
#line 3299 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char readline();

int main() {
readline()
; return 0; }
configure:3310: gcc -o conftest -O2     conftest.c -ledit -lcurses  1>&5
/usr/ccs/bin/ld: Can't find library for -ledit
collect2: ld returned 1 exit status
configure: failed program was:
#line 3299 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char readline();

int main() {
readline()
; return 0; }
configure:3349: checking for library containing using_history
configure:3367: gcc -o conftest -O2     conftest.c  1>&5
/usr/ccs/bin/ld: Unsatisfied symbols:
   using_history (code)
collect2: ld returned 1 exit status
configure: failed program was:
#line 3356 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char using_history();

int main() {
using_history()
; return 0; }
configure:3389: gcc -o conftest -O2     conftest.c -lhistory   1>&5
/usr/ccs/bin/ld: Can't find library for -lhistory
collect2: ld returned 1 exit status
configure: failed program was:
#line 3378 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char using_history();

int main() {
using_history()
; return 0; }
configure:3416: checking for main in -lbsd
configure:3431: gcc -o conftest -O2     conftest.c -lbsd   1>&5
/usr/ccs/bin/ld: Can't find library for -lbsd
collect2: ld returned 1 exit status
configure: failed program was:
#line 3424 "configure"
#include "confdefs.h"

int main() {
main()
; return 0; }
configure:3460: checking for setproctitle in -lutil
configure:3479: gcc -o conftest -O2     conftest.c -lutil   1>&5
/usr/ccs/bin/ld: Can't find library for -lutil
collect2: ld returned 1 exit status
configure: failed program was:
#line 3468 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char setproctitle();

int main() {
setproctitle()
; return 0; }
configure:3507: checking for main in -lm
configure:3522: gcc -o conftest -O2     conftest.c -lm   1>&5
configure:3550: checking for main in -ldl
configure:3565: gcc -o conftest -O2     conftest.c -ldl  -lm  1>&5
/usr/ccs/bin/ld: Can't find library for -ldl
collect2: ld returned 1 exit status
configure: failed program was:
#line 3558 "configure"
#include "confdefs.h"

int main() {
main()
; return 0; }
configure:3593: checking for main in -lsocket
configure:3608: gcc -o conftest -O2     conftest.c -lsocket  -lm  1>&5
/usr/ccs/bin/ld: Can't find library for -lsocket
collect2: ld returned 1 exit status
configure: failed program was:
#line 3601 "configure"
#include "confdefs.h"

int main() {
main()
; return 0; }
configure:3636: checking for main in -lnsl
configure:3651: gcc -o conftest -O2     conftest.c -lnsl  -lm  1>&5
configure:3679: checking for main in -lipc
configure:3694: gcc -o conftest -O2     conftest.c -lipc  -lnsl -lm
1>&5
/usr/ccs/bin/ld: Can't find library for -lipc
collect2: ld returned 1 exit status
configure: failed program was:
#line 3687 "configure"
#include "confdefs.h"

int main() {
main()
; return 0; }
configure:3722: checking for main in -lIPC
configure:3737: gcc -o conftest -O2     conftest.c -lIPC  -lnsl -lm
1>&5
/usr/ccs/bin/ld: Can't find library for -lIPC
collect2: ld returned 1 exit status
configure: failed program was:
#line 3730 "configure"
#include "confdefs.h"

int main() {
main()
; return 0; }
configure:3765: checking for main in -llc
configure:3780: gcc -o conftest -O2     conftest.c -llc  -lnsl -lm  1>&5
/usr/ccs/bin/ld: Can't find library for -llc
collect2: ld returned 1 exit status
configure: failed program was:
#line 3773 "configure"
#include "confdefs.h"

int main() {
main()
; return 0; }
configure:3808: checking for main in -ldld
configure:3823: gcc -o conftest -O2     conftest.c -ldld  -lnsl -lm
1>&5
configure:3851: checking for main in -lld
configure:3866: gcc -o conftest -O2     conftest.c -lld  -ldld -lnsl -lm
1>&5
/usr/ccs/bin/ld: Can't find library for -lld
collect2: ld returned 1 exit status
configure: failed program was:
#line 3859 "configure"
#include "confdefs.h"

int main() {
main()
; return 0; }
configure:3894: checking for main in -lcompat
configure:3909: gcc -o conftest -O2     conftest.c -lcompat  -ldld -lnsl
-lm  1>&5
/usr/ccs/bin/ld: Can't find library for -lcompat
collect2: ld returned 1 exit status
configure: failed program was:
#line 3902 "configure"
#include "confdefs.h"

int main() {
main()
; return 0; }
configure:3937: checking for main in -lBSD
configure:3952: gcc -o conftest -O2     conftest.c -lBSD  -ldld -lnsl
-lm  1>&5
configure:3980: checking for main in -lgen
configure:3995: gcc -o conftest -O2     conftest.c -lgen  -lBSD -ldld
-lnsl -lm  1>&5
configure:4023: checking for main in -lPW
configure:4038: gcc -o conftest -O2     conftest.c -lPW  -lgen -lBSD
-ldld -lnsl -lm  1>&5
configure:4066: checking for main in -lresolv
configure:4081: gcc -o conftest -O2     conftest.c -lresolv  -lPW -lgen
-lBSD -ldld -lnsl -lm  1>&5
/usr/ccs/bin/ld: Can't find library for -lresolv
collect2: ld returned 1 exit status
configure: failed program was:
#line 4074 "configure"
#include "confdefs.h"

int main() {
main()
; return 0; }
configure:4110: checking for main in -lunix
configure:4125: gcc -o conftest -O2     conftest.c -lunix  -lPW -lgen
-lBSD -ldld -lnsl -lm  1>&5
/usr/ccs/bin/ld: Can't find library for -lunix
collect2: ld returned 1 exit status
configure: failed program was:
#line 4118 "configure"
#include "confdefs.h"

int main() {
main()
; return 0; }
configure:4154: checking for library containing crypt
configure:4172: gcc -o conftest -O2     conftest.c -lPW -lgen -lBSD
-ldld -lnsl -lm  1>&5
configure:4216: checking for __inet_ntoa in -lbind
configure:4235: gcc -o conftest -O2     conftest.c -lbind  -lPW -lgen
-lBSD -ldld -lnsl -lm  1>&5
/usr/ccs/bin/ld: Can't find library for -lbind
collect2: ld returned 1 exit status
configure: failed program was:
#line 4224 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char __inet_ntoa();

int main() {
__inet_ntoa()
; return 0; }
configure:4268:18: zlib.h: No such file or directory
configure:4329: checking for library containing fdatasync
configure:4347: gcc -o conftest -O2     conftest.c -lPW -lgen -lBSD
-ldld -lnsl -lm  1>&5
configure:5060: checking for crypt.h
configure:5070: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5060: checking for dld.h
configure:5070: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5066:17: dld.h: No such file or directory
configure: failed program was:
#line 5065 "configure"
#include "confdefs.h"
#include <dld.h>
configure:5060: checking for endian.h
configure:5070: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5066:20: endian.h: No such file or directory
configure: failed program was:
#line 5065 "configure"
#include "confdefs.h"
#include <endian.h>
configure:5060: checking for fp_class.h
configure:5070: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5066:22: fp_class.h: No such file or directory
configure: failed program was:
#line 5065 "configure"
#include "confdefs.h"
#include <fp_class.h>
configure:5060: checking for getopt.h
configure:5070: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5066:20: getopt.h: No such file or directory
configure: failed program was:
#line 5065 "configure"
#include "confdefs.h"
#include <getopt.h>
configure:5060: checking for ieeefp.h
configure:5070: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5066:20: ieeefp.h: No such file or directory
configure: failed program was:
#line 5065 "configure"
#include "confdefs.h"
#include <ieeefp.h>
configure:5060: checking for pwd.h
configure:5070: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5060: checking for sys/ipc.h
configure:5070: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5060: checking for sys/pstat.h
configure:5070: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5060: checking for sys/select.h
configure:5070: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5066:24: sys/select.h: No such file or directory
configure: failed program was:
#line 5065 "configure"
#include "confdefs.h"
#include <sys/select.h>
configure:5060: checking for sys/sem.h
configure:5070: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5060: checking for sys/socket.h
configure:5070: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5060: checking for sys/shm.h
configure:5070: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5060: checking for sys/types.h
configure:5070: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5060: checking for sys/un.h
configure:5070: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5060: checking for termios.h
configure:5070: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5060: checking for kernel/OS.h
configure:5070: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5066:23: kernel/OS.h: No such file or directory
configure: failed program was:
#line 5065 "configure"
#include "confdefs.h"
#include <kernel/OS.h>
configure:5060: checking for kernel/image.h
configure:5070: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5066:26: kernel/image.h: No such file or directory
configure: failed program was:
#line 5065 "configure"
#include "confdefs.h"
#include <kernel/image.h>
configure:5060: checking for SupportDefs.h
configure:5070: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5066:25: SupportDefs.h: No such file or directory
configure: failed program was:
#line 5065 "configure"
#include "confdefs.h"
#include <SupportDefs.h>
configure:5101: checking for netinet/in.h
configure:5111: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5138: checking for netinet/tcp.h
configure:5150: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5168: checking whether string.h and strings.h may both be
included
configure:5180: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5194: gcc -c -O2   conftest.c 1>&5
configure:5226: checking for readline/readline.h
configure:5236: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5232:31: readline/readline.h: No such file or directory
configure: failed program was:
#line 5231 "configure"
#include "confdefs.h"
#include <readline/readline.h>
configure:5226: checking for readline.h
configure:5236: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5232:22: readline.h: No such file or directory
configure: failed program was:
#line 5231 "configure"
#include "confdefs.h"
#include <readline.h>
configure:5266: checking for readline/history.h
configure:5276: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5272:30: readline/history.h: No such file or directory
configure: failed program was:
#line 5271 "configure"
#include "confdefs.h"
#include <readline/history.h>
configure:5266: checking for history.h
configure:5276: gcc -E   conftest.c >/dev/null 2>conftest.out
configure:5272:21: history.h: No such file or directory
configure: failed program was:
#line 5271 "configure"
#include "confdefs.h"
#include <history.h>
configure:5524: checking for working const
configure:5578: gcc -c -O2   conftest.c 1>&5
configure:5599: checking for inline
configure:5613: gcc -c -O2   conftest.c 1>&5
configure:5641: checking for preprocessor stringizing operator
configure:5676: checking for signed types
configure:5688: gcc -c -O2   conftest.c 1>&5
configure:5708: checking for volatile
configure:5720: gcc -c -O2   conftest.c 1>&5
configure:5740: checking whether struct tm is in sys/time.h or time.h
configure:5753: gcc -c -O2   conftest.c 1>&5
configure:5774: checking for tm_zone in struct tm
configure:5787: gcc -c -O2   conftest.c 1>&5
configure: In function `main':
configure:5783: structure has no member named `tm_zone'
configure: failed program was:
#line 5779 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <time.h>
int main() {
struct tm tm; tm.tm_zone;
; return 0; }
configure:5807: checking for tzname
configure:5822: gcc -o conftest -O2     conftest.c -lPW -lgen -lBSD
-ldld -lnsl -lm  1>&5
configure:5844: checking for union semun
configure:5858: gcc -c -O2   conftest.c 1>&5
configure: In function `main':
configure:5854: storage size of `semun' isn't known
configure: failed program was:
#line 5849 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>
int main() {
union semun semun;
; return 0; }
configure:5878: checking for struct cmsgcred
configure:5892: gcc -c -O2   conftest.c 1>&5
In file included from configure:5885:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:5886:23: sys/ucred.h: No such file or directory
configure: In function `main':
configure:5888: storage size of `sockcred' isn't known
configure: failed program was:
#line 5883 "configure"
#include "confdefs.h"
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/ucred.h>
int main() {
struct cmsgcred sockcred;
; return 0; }
configure:5912: checking for struct fcred
configure:5926: gcc -c -O2   conftest.c 1>&5
In file included from configure:5919:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:5920:23: sys/ucred.h: No such file or directory
configure: In function `main':
configure:5922: storage size of `sockcred' isn't known
configure: failed program was:
#line 5917 "configure"
#include "confdefs.h"
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/ucred.h>
int main() {
struct fcred sockcred;
; return 0; }
configure:5946: checking for struct sockcred
configure:5960: gcc -c -O2   conftest.c 1>&5
In file included from configure:5953:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:5954:23: sys/ucred.h: No such file or directory
configure: In function `main':
configure:5956: storage size of `sockcred' isn't known
configure: failed program was:
#line 5951 "configure"
#include "confdefs.h"
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/ucred.h>
int main() {
struct sockcred sockcred;
; return 0; }
configure:5980: checking for struct sockaddr_un
configure:5995: gcc -c -O2   conftest.c 1>&5
configure:6019: checking for int timezone
configure:6032: gcc -o conftest -O2     conftest.c -lPW -lgen -lBSD
-ldld -lnsl -lm  1>&5
configure:6052: checking types of arguments for accept()
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (int, struct sockaddr *, int *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (int, struct sockaddr *, size_t *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (int, struct sockaddr *, socklen_t *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (int, struct sockaddr *, unsigned int *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (int, struct sockaddr *, void *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (int, const struct sockaddr *, int *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (int, const struct sockaddr *, size_t *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (int, const struct sockaddr *, socklen_t *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (int, const struct sockaddr *, unsigned int *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (int, const struct sockaddr *, void *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (int, void *, int *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (int, void *, size_t *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (int, void *, socklen_t *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (int, void *, unsigned int *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (int, void *, void *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (unsigned int, struct sockaddr *, int *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (unsigned int, struct sockaddr *, size_t *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (unsigned int, struct sockaddr *, socklen_t *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (unsigned int, struct sockaddr *, unsigned int *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (unsigned int, struct sockaddr *, void *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (unsigned int, const struct sockaddr *, int *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (unsigned int, const struct sockaddr *, size_t *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (unsigned int, const struct sockaddr *, socklen_t *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (unsigned int, const struct sockaddr *, unsigned int
*);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (unsigned int, const struct sockaddr *, void *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (unsigned int, void *, int *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (unsigned int, void *, size_t *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (unsigned int, void *, socklen_t *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (unsigned int, void *, unsigned int *);
int main() {

; return 0; }
configure:6079: gcc -c -O2   conftest.c 1>&5
In file included from configure:6071:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
configure:6073: conflicting types for `accept'
/usr/include/sys/socket.h:467: previous declaration of `accept'
configure: failed program was:
#line 6066 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (unsigned int, void *, void *);
int main() {

; return 0; }

-----Original Message-----
From: Williams, Travis L, NPONS
Sent: Saturday, September 14, 2002 10:37 AM
To: 'Tom Lane'
Cc: Nigel J. Andrews; pgsql-general
Subject: RE: [GENERAL] Can't run configure


I attached my config.log.. if attachments don't get forwarded.. then
I'll resend.. I have compiled a couple of different programs since I got
the machine (I'm moving from a 386/solaris 8 machine)..  Like I said
earlier on 7.1.3 the configure runs fine, but 7.2 and 7.2.2 fail.

Travis

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Saturday, September 14, 2002 10:31 AM
To: Williams, Travis L, NPONS
Cc: Nigel J. Andrews; pgsql-general
Subject: Re: [GENERAL] Can't run configure


"Williams, Travis L, NPONS" <tlw@att.com> writes:
> You know.. sometimes I amaze myself when I send off something like
> below.. yet freak out when people do the same to me..  ;)(feel free to
> beat the newbie!) anyway hpux 11.20.. I installed the GNU gcc and
make..
> I can copy the config.log.. but it is a little to much..

I think we need to see the part of config.log that shows configure
trying to test the argument types of accept().  It works fine on HPUX
10.20, which seems to have the same definition of accept() as 11.20
does, according to your grep of /usr/include/sys/socket.h.  Certainly
the correct set of type names *does* get tried; why does the test
program fail to compile anyway?

Are you sure that your gcc installation is working (can you compile and
run a trivial test program)?

            regards, tom lane

Re: Can't run configure

From
"Williams, Travis L, NPONS"
Date:
I attached my config.log.. if attachments don't get forwarded.. then
I'll resend.. I have compiled a couple of different programs since I got
the machine (I'm moving from a 386/solaris 8 machine)..  Like I said
earlier on 7.1.3 the configure runs fine, but 7.2 and 7.2.2 fail.

Travis

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Saturday, September 14, 2002 10:31 AM
To: Williams, Travis L, NPONS
Cc: Nigel J. Andrews; pgsql-general
Subject: Re: [GENERAL] Can't run configure


"Williams, Travis L, NPONS" <tlw@att.com> writes:
> You know.. sometimes I amaze myself when I send off something like
> below.. yet freak out when people do the same to me..  ;)(feel free to
> beat the newbie!) anyway hpux 11.20.. I installed the GNU gcc and
make..
> I can copy the config.log.. but it is a little to much..

I think we need to see the part of config.log that shows configure
trying to test the argument types of accept().  It works fine on HPUX
10.20, which seems to have the same definition of accept() as 11.20
does, according to your grep of /usr/include/sys/socket.h.  Certainly
the correct set of type names *does* get tried; why does the test
program fail to compile anyway?

Are you sure that your gcc installation is working (can you compile and
run a trivial test program)?

            regards, tom lane

Attachment

Re: Can't run configure

From
"Williams, Travis L, NPONS"
Date:
All,
    After playing with it for a bit I got it to compile by not using
Gcc and using HP's cc.. Somewhere I thought I had read that you couldn't
use hp's default cc.. and that you had to use the gnu gcc?

Travis

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Sunday, September 15, 2002 12:40 PM
To: Williams, Travis L, NPONS
Cc: Nigel J. Andrews; pgsql-general
Subject: Re: [GENERAL] Can't run configure


"Williams, Travis L, NPONS" <tlw@att.com> writes:
> socket.h:

So where are bsize_t and sbsize_t declared?  They appear nowhere in
HPUX 10.20 headers, but it's clearly failure to include definitions
of these types that is causing gcc to spit up.

            regards, tom lane

Re: Can't run configure

From
Tom Lane
Date:
"Williams, Travis L, NPONS" <tlw@att.com> writes:
>     After playing with it for a bit I got it to compile by not using
> Gcc and using HP's cc.. Somewhere I thought I had read that you couldn't
> use hp's default cc.. and that you had to use the gnu gcc?

No, HP's cc is fine.  It now sounds like the issue is that HP's cc
auto-defines some symbol that the 11.20 headers must have defined to
produce a consistent set of definitions ... while gcc doesn't :-(.

It would be interesting to see the output of

cc -Ae -E /usr/include/sys/socket.h

and

gcc -E /usr/include/sys/socket.h

(ps: please try to send them in a way that doesn't mess up the
formatting; your transmission of socket.h was rather badly mangled
by linewrapping)

            regards, tom lane

Re: Can't run configure

From
Tom Lane
Date:
"Williams, Travis L, NPONS" <tlw@att.com> writes:
> Sent directly to you so that I can send attachments..  once again thanks
> for helping..

Okay, the cc output shows
        typedef long  sbsize_t;
        typedef unsigned long bsize_t;
at line 190 of /usr/include/sys/types.h ... while gcc seems not to be
reading that file at all, but instead
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2/include/sys/types.h
                                   ^^^^^^^^^
which doesn't contain these definitions (or else is ifdef'ing them out).

So my conclusion is that your gcc installation was built on an HPUX 11.00
system, and has not been updated for 11.20.  The "fixed" headers that it
contains are out of step with your actual system headers.

You might be able to fix this by rerunning gcc's fixincludes script, but
I'm not enough of a gcc guru to be sure about that.  I'd be inclined to
just reinstall it from scratch.

            regards, tom lane

Re: Can't run configure

From
"Williams, Travis L, NPONS"
Date:
Actually.. it's 11.11.. somewhere I was thinking 11.20 (probably from
10.20.. which is a common build)..  I personally didn't put gcc on
there.. but I'll forward this to the sysadm that did..

Travis

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Monday, September 16, 2002 11:57 AM
To: Williams, Travis L, NPONS
Cc: pgsql-general@postgreSQL.org
Subject: Re: [GENERAL] Can't run configure


"Williams, Travis L, NPONS" <tlw@att.com> writes:
> Sent directly to you so that I can send attachments..  once again
thanks
> for helping..

Okay, the cc output shows
        typedef long  sbsize_t;
        typedef unsigned long bsize_t;
at line 190 of /usr/include/sys/types.h ... while gcc seems not to be
reading that file at all, but instead
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2/include/sys/types.h
                                   ^^^^^^^^^
which doesn't contain these definitions (or else is ifdef'ing them out).

So my conclusion is that your gcc installation was built on an HPUX
11.00
system, and has not been updated for 11.20.  The "fixed" headers that it
contains are out of step with your actual system headers.

You might be able to fix this by rerunning gcc's fixincludes script, but
I'm not enough of a gcc guru to be sure about that.  I'd be inclined to
just reinstall it from scratch.

            regards, tom lane