octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New autoconf bitfcns test failing


From: Rik
Subject: Re: New autoconf bitfcns test failing
Date: Tue, 05 Jun 2012 11:40:23 -0700

On 06/05/2012 11:14 AM, John W. Eaton wrote:
> On  5-Jun-2012, c. wrote:
>
> | 
> | On 5 Jun 2012, at 17:56, Rik wrote:
> | 
> | > Carlo,
> | > 
> | > In the following changeset you added autoconf checking for templated bit
> | > functions like bit_and, bit_or, and bit_xor.
> | > 
> | > changeset:   14725:fa48fd0f160f
> | > user:        Carlo de Falco <address@hidden>
> | > date:        Tue Jun 05 07:39:46 2012 +0200
> | > summary:     Add configure check for templated bitwise operators.
> | > 
> | > Unfortunately, I now can't compile on a straight Linux distribution 
> (Ubuntu
> | > 10.04).  I get the following errors when trying to compile src/bitfcns.cc
> | > 
> | > bitfcns.cc:51: error: redefinition of ‘struct std::bit_and<_Tp>’
> | > /usr/include/c++/4.4/bits/stl_function.h:293: error: previous definition 
> of
> | > ‘struct std::bit_and<_Tp>’
> | > bitfcns.cc:58: error: redefinition of ‘struct std::bit_or<_Tp>’
> | > /usr/include/c++/4.4/bits/stl_function.h:301: error: previous definition 
> of
> | > ‘struct std::bit_or<_Tp>’
> | > bitfcns.cc:65: error: redefinition of ‘struct std::bit_xor<_Tp>’
> | > /usr/include/c++/4.4/bits/stl_function.h:309: error: previous definition 
> of
> | > ‘struct std::bit_xor<_Tp>’
> | > make[3]: *** [liboctinterp_la-bitfcns.lo] Error 1
> | > 
> | > If I look at config.h it shows that HAVE_CXX_BITWISE_OP_TEMPLATES is
> | > undefined so the templates get re-defined at the start of bitfcns.cc.  It
> | > looks like it must be something with the test program in acinclude.m4 
> which
> | > is returning the wrong result.
> | > 
> | > --Rik
> | 
> | Rik,
> | thanks for reporting this.
> | can you please also send me your config.log?
>
> I think the following change will fix the problem.
6/5/12

JWE,

Your patch fixes the problem for me. 

For others, note that just getting rid of config.cache and re-running
configure was not good enough to fix the problem.  I had to apply the patch
and then do 'make maintainer-clean; ./autogen.sh; ./configure; make' to set
everything straight.

--Rik



reply via email to

[Prev in Thread] Current Thread [Next in Thread]