Re: problem installing cvs comedi

Hello Alessandro,

On 30/06/06 15:44, Alessandro Toso wrote:
> Hi all,
> 
> I'm trying to install the cvs version of comedi and comedilib. While
> with comedilib everything works fine, when I enter in the comedi
> directory and run "sh autogen.sh" I get this error message:
> 
> checking Linux major/minor version... 2.6
> checking for Linux CFLAGS... ./configure: line
> 4499: /usr/local/comedi/./confstatf11072/flags: No such file or
> directory
> 
> I think that the problem is that autogen.sh makes a mistake in
> generating the "configure" script. Line 4499 is:
> 
> ${MAKE-make} -C ${LINUX_DIR} V=1 SUBDIRS=${tmpdir} LINUXDIR=${LINUX_DIR}
> MODVERDIR=${tmpdir} modules >&5 2>&5
>         . ${tmpdir}/flags
> 
> and there shoudn't be a carriage return after 2>&5. The correct
> instruction is:
> 
> ${MAKE-make} -C ${LINUX_DIR} V=1 SUBDIRS=${tmpdir} LINUXDIR=${LINUX_DIR}
> MODVERDIR=${tmpdir} modules >&5 2>&5 . ${tmpdir}/flags
> 
> I hope this is the correct way to avoid the problem (I tryed and it
> works).

No that's wrong.  Could you restore it as it was and post the section of
the config.log file from "checking for Linux CFLAGS" onwards?  That
would show where the error occurred.  It looks like the make command run
by that test failed before it created the ${tmpdir}/flags file.

The test is trying to build a dummy module in the ${tmpdir} directory,
and create the ${tmpdir}/flags file as a side effect.  The following ".
${tmpdir}/flags" command is trying to source the contents of created
${tmpdir}/flags file into the current shell.  The "." command is failing
because ${tmpdir}/flags file doesn't exist, because the preceding make
command failed to create it for some reason.

-- 
-=( Ian Abbott _at_ MEV Ltd.    E-mail: <abbotti_at_mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-

Received on 2006-07-03Z15:54:24