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-06 09:22:14
Message-ID: 168F24367E861A4698E58C183F317D0B0484804E2E@anva-mail07.anva.amt
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom,

I found the next system header files:
/usr/include/sys/ioctl.h
/usr/include/net/if.h
/usr/include/net/if6.h

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

Lifreq is declared in if.h While if_laddrconf is declared in if6.h

So after your reply I was searching to the right HP-UX patches but I ran stuck with it.
There are some patches installed and after that the error on 'struct if_laddrconf' is disappeared but gmake is still going wrong with the next messages:
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

So I think the problem should be found in HP-UX patches.
Unfortunately the install of the last service pack ran into trouble with incomplete dependencies and a broken kernel compilation. So at this moment I have to fix an HP-UX Itanium (another challenge)

Regards,

Derk Jan Horstman

-----Oorspronkelijk bericht-----
Van: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Verzonden: maandag 4 oktober 2010 16:12
Aan: Derk Jan Horstman
CC: 'pgsql-general(at)postgresql(dot)org'
Onderwerp: Re: [GENERAL] Error while compiling on HP-UX ia64

Derk Jan Horstman <dj(dot)horstman(at)anva(dot)nl> writes:
> While compiling PostgreSQL-9.0.0 on HP-UX/ia64 (B.11.23) gmake breaks up with the next errors:
> ip.c:654: error: storage size of 'lifc' isn't known
> ip.c:656: error: storage size of 'lmask' isn't known
> ip.c:692: error: invalid application of 'sizeof' to incomplete type 'struct if_laddrconf'
> ip.c:721: error: invalid application of 'sizeof' to incomplete type 'struct lifreq'

So which system header files declare those structs? They should exist
someplace, since the system evidently declares SIOCGLIFCONF.

regards, tom lane

***************************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 Timon 2010-10-06 11:35:44 stuck spinlock detected at dynahash.c
Previous Message Craig Ringer 2010-10-06 08:17:54 Re: Compilation of optional packages