Re: FreeBSD 6.2 ./configure plays oddly when building 8.2.2 from tarball

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Andrew Hammond <andrew(dot)george(dot)hammond(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: FreeBSD 6.2 ./configure plays oddly when building 8.2.2 from tarball
Date: 2007-02-08 19:19:39
Message-ID: 20070208191939.GX24069@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andrew Hammond wrote:

> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> It was created by PostgreSQL configure 8.2.2, which was
> generated by GNU Autoconf 2.59. Invocation command line was
>
> $ ./configure --prefix=/usr/local/pgsql822_sl126_amd64_FreeBSD62
> --with-includes=/usr/local/include --with-libs=/usr/local/lib
> --enable-thread-saftey --with-openssl --enable-debug CC=gcc CFLAGS=-O3
> -funroll-loops -m64

[...]

> configure:2209: checking for C compiler default output file name
> configure:2212: gcc -O3 -funroll-loops -m64 conftest.c /usr/local/lib >&5
> /usr/local/lib: file not recognized: File format not recognized

Strange. I tried the same args on 8.2.3, and that config.log extract
shows this:

configure:2209: checking for C compiler default output file name
configure:2212: gcc -O3 -funroll-loops -m64 conftest.c >&5
[works]

Note no misplaced libs there. The configure args were

./configure --prefix=/tmp --with-includes=/usr/local/include --with-libs=/usr/local/lib --enable-thread-saftey --with-openssl --enable-debug CC=gcc CFLAGS="-O3 -funroll-loops -m64"
(including the thread-saftey typo)

I noticed that config.log has unquoted CFLAGS -- I'd say that's a bug,
but maybe it's of no consequence.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-02-08 19:23:00 Re: FreeBSD 6.2 ./configure plays oddly when building 8.2.2 from tarball
Previous Message Jan Wieck 2007-02-08 19:14:18 Re: Proposal: Commit timestamp