Skip site navigation (1) Skip section navigation (2)

Error installing Postgres on Solaris 9

From: Thanh Q Lam <thanh(dot)q(dot)lam(at)alcatel(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Error installing Postgres on Solaris 9
Date: 2005-07-05 15:16:45
Message-ID: 42CAA45D.8050100@alcatel.com (view raw or flat)
Thread:
Lists: 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



Responses

pgsql-bugs by date

Next:From: Tzahi FadidaDate: 2005-07-05 15:32:10
Subject: BUG #1755: SPI_execute_plan not releasing memory even after SPI_finish
Previous:From: Tom LaneDate: 2005-07-05 15:04:15
Subject: Re: extract epoch bug

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group