Error installing Postgres on Solaris 9 - Mailing list pgsql-bugs

From Thanh Q Lam
Subject Error installing Postgres on Solaris 9
Date
Msg-id 42CAC1DB.9010103@alcatel.com
Whole thread Raw
Responses Re: Error installing Postgres on Solaris 9  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Hi,

when I run: ./configure --without-readline, I get errors that aborts the
configure process: "checking types of arguments for accept()...
configure: error: could not determine argument types".   Please see
following from the config.log.


Thanks,
Thanh

>
> configure:10983: gcc -c -O2 -fno-strict-aliasing   conftest.c >&5
> In file included from /usr/include/netinet/in.h:41,
>                 from /usr/include/sys/socket.h:203,
>                 from configure:10963:
> /usr/include/sys/stream.h:307: parse error before "projid_t"
> configure:10965: parse error before "accept"
> configure:10965: conflicting types for `accept'
> /usr/include/sys/socket.h:450: previous declaration of `accept'
> configure:10965: warning: data definition has no type or storage class
> configure:10986: $? = 1
> configure: failed program was:
> #line 10958 "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 unsigned int PASCAL accept (unsigned int, void *, socklen_t *);
> #ifdef F77_DUMMY_MAIN
> #  ifdef __cplusplus
>     extern "C"
> #  endif
>   int F77_DUMMY_MAIN() { return 1; }
> #endif
> int
> main ()
> {
>
>  ;
>  return 0;
> }
> configure:10983: gcc -c -O2 -fno-strict-aliasing   conftest.c >&5
> In file included from /usr/include/netinet/in.h:41,
>                 from /usr/include/sys/socket.h:203,
>                 from configure:10963:
> /usr/include/sys/stream.h:307: parse error before "projid_t"
> configure:10965: parse error before "accept"
> configure:10965: conflicting types for `accept'
> /usr/include/sys/socket.h:450: previous declaration of `accept'
> configure:10965: warning: data definition has no type or storage class
> configure:10986: $? = 1
> configure: failed program was:
> #line 10958 "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 unsigned int PASCAL accept (unsigned int, void *, unsigned int *);
> #ifdef F77_DUMMY_MAIN
> #  ifdef __cplusplus
>     extern "C"
> #  endif
>   int F77_DUMMY_MAIN() { return 1; }
> #endif
> int
> main ()
> {
>
>  ;
>  return 0;
> }
> configure:10983: gcc -c -O2 -fno-strict-aliasing   conftest.c >&5
> In file included from /usr/include/netinet/in.h:41,
>                 from /usr/include/sys/socket.h:203,
>                 from configure:10963:
> /usr/include/sys/stream.h:307: parse error before "projid_t"
> configure:10965: parse error before "accept"
> configure:10965: conflicting types for `accept'
> /usr/include/sys/socket.h:450: previous declaration of `accept'
> configure:10965: warning: data definition has no type or storage class
> configure:10986: $? = 1
> configure: failed program was:
> #line 10958 "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 unsigned int PASCAL accept (unsigned int, void *, void *);
> #ifdef F77_DUMMY_MAIN
> #  ifdef __cplusplus
>     extern "C"
> #  endif
>   int F77_DUMMY_MAIN() { return 1; }
> #endif
> int
> main ()
> {
>
>  ;
>  return 0;
> }
> configure:11006: error: could not determine argument types
>
>

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #1755: SPI_execute_plan not releasing memory even after SPI_finish
Next
From: Tom Lane
Date:
Subject: Re: Error installing Postgres on Solaris 9