Re: Error while compiling on HP-UX ia64

From: Derk Jan Horstman <dj(dot)horstman(at)anva(dot)nl>
To: 'Tom Lane' <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Error while compiling on HP-UX ia64
Date: 2010-10-11 12:33:45
Message-ID: 168F24367E861A4698E58C183F317D0B0484804E43@anva-mail07.anva.amt
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

After a new install of HP-UX B.11.23 (ia64) and installing the latest patches on it, I've tried to compile PostgreSQL 9.0.1 from source again.
But I've still got problems with compiling, the process is ending with the next errors:

gmake[3]: Entering directory `/anva/PostgreSQL/pgsqlsource/postgresql-9.0.1/src/backend/libpq'
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../src/include -D_XOPEN_SOURCE_EXTENDED -I/usr/include -I/usr/local/include -c -o be-fsstubs.o be-fsstubs.c
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../src/include -D_XOPEN_SOURCE_EXTENDED -I/usr/include -I/usr/local/include -c -o be-secure.o be-secure.c
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../src/include -D_XOPEN_SOURCE_EXTENDED -I/usr/include -I/usr/local/include -c -o auth.o auth.c
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../src/include -D_XOPEN_SOURCE_EXTENDED -I/usr/include -I/usr/local/include -c -o crypt.o crypt.c
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../src/include -D_XOPEN_SOURCE_EXTENDED -I/usr/include -I/usr/local/include -c -o hba.o hba.c
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../src/include -D_XOPEN_SOURCE_EXTENDED -I/usr/include -I/usr/local/include -c -o ip.o ip.c
ip.c: In function 'pg_foreach_ifaddr':
ip.c:654: error: storage size of 'lifc' isn't known
ip.c:725: error: 'struct lifreq' has no member named 'lifr_addr'
ip.c:735: error: 'struct lifreq' has no member named 'lifr_addr'
ip.c:654: warning: unused variable 'lifc'
gmake[3]: *** [ip.o] Error 1
gmake[3]: Leaving directory `/anva/PostgreSQL/pgsqlsource/postgresql-9.0.1/src/backend/libpq'
gmake[2]: *** [libpq-recursive] Error 2
gmake[2]: Leaving directory `/anva/PostgreSQL/pgsqlsource/postgresql-9.0.1/src/backend'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/anva/PostgreSQL/pgsqlsource/postgresql-9.0.1/src'
gmake: *** [all] Error 2

SIOCGLIFCONF is declared in /usr/include/sys/ioctl.h
#define SIOCGLIFCONF _IOWR('I',20, struct if_laddrconf) /*get l_addr list */

Struct lifreq is declared in /usr/include/net/if.h
/* Logical interface request */
struct lifreq {
int lifr_flags;
char lifr_target[IFNAMSIZ];
char lifr_source[IFNAMSIZ];
};

Mkheaders from the gcc tools is used to solve incompatibilities between the HP-UX system header files and the gcc library.
But it doesn't affect this problem.

Does anybody knows how to solve this problem?

Regards, Derk Jan Horstman

***************************DISCLAIMER***********************************
Deze e-mail is uitsluitend bestemd voor de geadresseerde(n). Verstrekking aan en gebruik door anderen is niet toegestaan. ANVA bv sluit iedere aansprakelijkheid uit die voortvloeit uit electronische verzending.

This e-mail is intended exclusively for the addressee(s), and may not be passed on to, or made available for use by any person other than the addressee(s). ANVA bv rules out any and every liability resulting from any electronic transmission.
******************************************************************************

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Josh Kupershmidt 2010-10-11 13:41:35 Re: column-level update privs + lock table
Previous Message Darren Duncan 2010-10-11 02:29:24 Re: IEEE 754-2008 decimal numbers