From: Umang Patel <umang87(at)yahoo(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject:
Date: 2002-05-01 20:16:32
Message-ID: 20020501201632.11574.qmail@web12205.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

The following steps should fix the configure and
compile problems that was occuring with installing
Postgres 7.2 on HPUX 11.11. using the gcc compiler
(See below for reference posts)

for compiling postgres 7.2 or 7.2.1 on HPUX11.11
run ./configure
=> checking types of arguments for accept()...
configure: error: could not determine argument types
open configure file : vi configure
find this line :
cat >> confdefs.h <<EOF
#define PG_VERSION "$VERSION"
EOF
and repalce by
cat >> confdefs.h <<EOF
#define _XOPEN_SOURCE_EXTENDED
#define PG_VERSION "$VERSION"
EOF

and run agin ./configure
now open src/Makefile.global
find the line begin by CFLAGS=
and add in this line :
-D_XOPEN_SOURCE_EXTENDED

After this step you need to modify 3 files
->src/backend/libpq/pqformat.c
->src/interfaces/libpq/fe-misc.c
->src/interfaces/odbc/socket.c
for adding :
#include <arpa/inet.h>
#include <netinet/in.h>

and Run gmake...

-------------------------------------------------------

Re: Second call for platform testing

From: Joe Conway <joseph(dot)conway(at)home(dot)com
<mailto:joseph(dot)conway(at)home(dot)com>>
To: lockhart(at)fourpalms(dot)org
<mailto:lockhart(at)fourpalms(dot)org>
Subject: Re: Second call for platform testing
Date: Thu, 29 Nov 2001 12:07:28 -0800

Thomas Lockhart wrote:

>>Are you still looking for HPUX 11.0+ ? I can arrange
for access to one
>>if we still need it (gcc though, I don't have access
to HP's compiler).
>>
>
> Yes, that would be great. 10.20 is pretty old
afaik...
>
> - Thomas
>
>

I ran into a problem on HPUX 11 right off with:

===============================
configure --enable-debug
.
.
.
checking for struct sockaddr_un... yes
checking for int timezone... yes
checking types of arguments for accept()... configure:
error: could not
determine argument types

===============================

I won't pretend to be very knowledgable about HPUX or
configure, but it
looks like the following in configure is where it
dies:

===============================

else
for ac_cv_func_accept_arg1 in 'int' 'unsigned
int'; do
for ac_cv_func_accept_arg2 in 'struct sockaddr
*' 'const struct
sockaddr *' 'void *'; do
for ac_cv_func_accept_arg3 in 'int' 'size_t'
'socklen_t'
'unsigned int' 'void'; do
cat > conftest.$ac_ext <<EOF

=======================================

and here's what the HPUX man page says:

=======================================
accept(2)

NAME
accept - accept a connection on a socket

SYNOPSIS
#include <sys/socket.h>

AF_CCITT only
#include <x25/x25addrstr.h>

int accept(int s, void *addr, int *addrlen);

_XOPEN_SOURCE_EXTENDED only (UNIX 98)
int accept(int s, struct sockaddr *addr,
socklen_t *addrlen);

=======================================

so it looks like configure expects the third argument
to be (int), when
on HPUX 11 the third argument is (int *).

Any ideas what I'm doing wrong?

-- Joe

__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

Browse pgsql-hackers by date

  From Date Subject
Next Message Oliver Elphick 2002-05-01 20:46:21 Re: mV database tools
Previous Message Arthur@LinkLine.com 2002-05-01 18:37:26 mV database tools