Thread: error installing PGSql 7.4.3 on Solaris 9

error installing PGSql 7.4.3 on Solaris 9

From
Jonathan Wynett
Date:
Not sure if I am writing to the correct list but this was the address it
gave at the top of the "Supported Platforms" in the docs.

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

I checked the config.log and found the following log msgs:
----

configure:10965: parse error before `accept'
configure:10965: conflicting types for `accept'
/usr/include/sys/socket.h:446: previous declaration of `accept'
configure:10965: warning: data definition has no type or storage class
/usr/include/netinet/in.h:304: storage size of `sin_addr' isn't known
/usr/include/netinet/in.h:320: storage size of `sin6_addr' isn't known
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

Jon Wynett
Senior Java Developer
Research Systems, Inc.
303-413-3985
jwynett@rsinc.com

Re: error installing PGSql 7.4.3 on Solaris 9

From
Tom Lane
Date:
Jonathan Wynett <jwynett@rsinc.com> writes:
> when I run: ./configure --without-readline, I get the following error that
> aborts the config process: "checking types of arguments for accept()...
> configure: error: could not determine argument types"

I get the impression that your system may have nonstandard dependencies
between system header files that require us to throw some additional
explicit "#include"s into this test.  It's hard to be sure how to fix it
from what you have shown us, but this:

> /usr/include/netinet/in.h:304: storage size of `sin_addr' isn't known
> /usr/include/netinet/in.h:320: storage size of `sin6_addr' isn't known

looks a lot like netinet/in.h is being included without including some
header it depends on.  Can you dig into it and determine an appropriate
fix?

            regards, tom lane