Re: [PORTS] Port Bug Report: buf_init.c does not compile (spin lock problem?)

From: "Pedro J(dot) Lobo" <pjlobo(at)euitt(dot)upm(dot)es>
To: Stephane Bortzmeyer <bortzmeyer(at)pasteur(dot)fr>
Cc: pgsql-ports(at)postgreSQL(dot)org
Subject: Re: [PORTS] Port Bug Report: buf_init.c does not compile (spin lock problem?)
Date: 1999-06-18 08:45:34
Message-ID: Pine.OSF.4.05.9906181038090.29992-100000@haddock.euitt.upm.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

On Thu, 17 Jun 1999, Stephane Bortzmeyer wrote:

>On Thursday 17 June 1999, at 18 h 38, the keyboard of "Pedro J. Lobo"
><pjlobo(at)euitt(dot)upm(dot)es> wrote:
>
>> I have tested it with DEC C and works right out of the box. I have tried
>> gcc 2.7.2 in the past, and have never been able to build postgres with it.
>> gcc 2.8 doesn't work either, and now it seems that egcs behaves the same.
>
>Thanks, but after 'make distclean' and a new configure, it doesn't work better
>with Digital/Compaq's cc:
>
>make -C port all
>make[2]: Entering directory `/home/bortz/tmp/postgresql-6.5/src/backend/port'
>...
>cc -I../../include -I../../backend -DNOFIXADE -I.. -c isinf.c -o isinf.o
>cc -I../../include -I../../backend -DNOFIXADE -I.. -c snprintf.c -o
^^^^^^^^^^^^^

These flags correspond to the template 'alpha_gcc', not to 'alpha_cc',
which is the one that should be used with DEC C. The problem you are
seeing comes from a missing flag (-std). Make sure that you give the
option "--with-CC=cc' to configure, and if you don't see this line:

checking setting template to... alpha_cc

(that is, if it says 'alpha_gcc' instead) then re-run configure with the
option "--with-template=alpha_cc". I didn't have to specify that, but...
Also, it wouldn't hurt if you remove the whole source tree and extract it
again from the tarball, just in case. The 'make distclean' should have the
same effect, but it seems it didn't.

Cheers,

Pedro.

--
-------------------------------------------------------------------
Pedro José Lobo Perea Tel: +34 91 336 78 19
Centro de Cálculo Fax: +34 91 331 92 29
E.U.I.T. Telecomunicación e-mail: pjlobo(at)euitt(dot)upm(dot)es
Universidad Politécnica de Madrid
Ctra. de Valencia, Km. 7 E-28031 Madrid - España / Spain

In response to

Responses

Browse pgsql-ports by date

  From Date Subject
Next Message Stephane Bortzmeyer 1999-06-18 12:04:54 Re: [PORTS] Port Bug Report: buf_init.c does not compile (spin lock problem?)
Previous Message Ivor Durham 1999-06-18 07:06:06 6.5beta to 6.5 update fails on Solaris 2.7