Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 8B4051337B77 for ; Fri, 28 Jan 2011 04:54:13 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 11491-03 for ; Fri, 28 Jan 2011 08:54:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from dmz.eurolog.com (elomail.eurolog.com [194.50.162.62]) by mail.postgresql.org (Postfix) with ESMTP id 78D741337B4E for ; Fri, 28 Jan 2011 04:54:05 -0400 (AST) Received: from elomail.eurolog.com by dmz.eurolog.com via smtpd (for mail.postgresql.org [200.46.204.86]) with ESMTP; Fri, 28 Jan 2011 09:54:05 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Received: from 10.2.2.157 ([10.2.2.157]) by elomail.eurolog.com ([10.2.1.109]) with Microsoft Exchange Server HTTP-DAV ; Fri, 28 Jan 2011 08:54:02 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable In-Reply-To: <19278.1296149115@sss.pgh.pa.us> Organization: EURO-LOG AG User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7 Content-class: urn:content-classes:message Subject: Re: asm/ia64regs.h not found on FreeBSD 8.1 IA64 Date: Fri, 28 Jan 2011 09:54:05 +0100 Message-ID: <55FFF8CD182C864DA8F1C9BA0D63AB8006F251@elomail.eurolog.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ADMIN] asm/ia64regs.h not found on FreeBSD 8.1 IA64 Thread-Index: Acu+yOls5ImSuhK5TA+IzcRA87NI7Q== References: <55FFF8CD182C864DA8F1C9BA0D63AB8006F250@elomail.eurolog.com> <19278.1296149115@sss.pgh.pa.us> From: "Frank Brendel" To: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201101/179 X-Sequence-Number: 36619 Hi Tom, thanks for this really fast reply. I've removed the line #include and it compiles now. The function __getReg(_IA64_REG_AR_BSP) In postgres.c seems to be called = only on Intel compilers. And I see in asm/ia64regs.h (found on a Linux box) #define _IA64_REG_AR_BSP 3089 in a section /* * Register Names for getreg() and setreg(). * * The "magic" numbers happen to match the values used by the Intel=20 compiler's * getreg()/setreg() intrinsics. */ So I assume asm/ia64regs.h is only needed for Intel compilers on Linux. Since this is not the default behavior are there any concerns to install = this version into production? I'm thinking of stability or future updates. Many thanks Frank Am 27.01.2011 18:25, schrieb Tom Lane: > "Frank Brendel" writes: >> I can't compile PostgreSQL 9.0.2 on FreeBSD 8.1 for IA64. >> The error message is >> postgres.c:2998:26: error: asm/ia64regs.h: No such file or = directory > Hmm, the need for that header file is a very recent addition. I'm not > very surprised to hear of portability issues around it. What you need > to look into is what's needed to compile this patch: > = http://git.postgresql.org/gitweb?p=3Dpostgresql.git;a=3Dcommitdiff;h=3Dba= 007262a7661234588b1ebe297e3a95924ba587 > > If you're using gcc it's quite possible you don't need the header file > at all --- try just diking it out. Please report back. > > regards, tom lane >