Re: Config error

Didier Spaier <[email protected]> Mon, 20 Apr 2015 01:52:23 +0200
Newsgroups gmane.linux.slackware
Message-ID <[email protected]>
Salut Philippe

On 17/04/2015 18:25, Philippe Delavalade wrote:
> Hi.
>
> I tried to compile from source freesweep (a game). I got an error when
> configuring but don't know what to do.
>
> Here is the config.log generated :
>
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> It was created by configure, which was
> generated by GNU Autoconf 2.52.  Invocation command line was
>
>    $ ./configure
>
> ## ---------- ##
> ## Platform.  ##
> ## ---------- ##
>
> hostname = messier31
> uname -m = x86_64
> uname -r = 3.10.17
> uname -s = Linux
> uname -v = #2 SMP Fri Feb 14 16:45:28 CST 2014
>
> /usr/bin/uname -p = Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
> /bin/uname -X     = unknown
>
> /bin/arch              = x86_64
> /usr/bin/arch -k       = unknown
> /usr/convex/getsysinfo = unknown
> hostinfo               = unknown
> /bin/machine           = unknown
> /usr/bin/oslevel       = unknown
> /bin/universe          = unknown
>
> PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
>
> ## ------------ ##
> ## Core tests.  ##
> ## ------------ ##
>
> configure:968: PATH=".;."; conftest.sh
> ./configure: line 969: conftest.sh: command not found
> configure:971: $? = 127
> configure:1013: checking build system type
> configure:1026: error: /bin/sh ./config.sub x86_64-unknown-linux-gnu failed.
> <snip>

Here, configuration succeed succeeds on Slackware 14.1 and fails on 
Slackware64-14.1 on the same laptop.

Looking above this line (that I get too on Slackware64-14.1 too):
 > configure:1026: error: /bin/sh ./config.sub x86_64-unknown-linux-gnu 
failed.
I saw that "x86_64-unknown-linux-gnu" is the output of
./config.guess (run on line 1025 of configure).

But on Slackware 14.1 I get a different result:

/tmp/freesweep-0.92$ ./config.guess
i686-pc-linux-gnuoldld


So I just replaced, in line 1025 of configure, this:
ac_cv_build_alias=`$ac_config_guess`
by that:
ac_cv_build_alias=i686-pc-linux-gnuoldld

then under Slackware64-14.1 I ran:
.configure
make

It worked!

So my tentative conclusion is that for a small application like that 
autotools is an overkill...

Amicalement,

Didier