freefem++ - GCC-4.3 build problem

Dominik 'Rathann' Mierzejewski dominik at greysector.net
Thu Feb 21 17:39:14 UTC 2008


On Thursday, 21 February 2008 at 12:02, Denis Leroy wrote:
> Dominik 'Rathann' Mierzejewski wrote:
>> Hi, I need some help with building freefem++-2.23 in rawhide.
>>
>> [...]
>> g++ -DHAVE_CONFIG_H -I. -I../.. -I../lglib -I../bamglib -I../Graphics -I../femlib -I../../arpack/arpack++/include    -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -MT Drawing.o -MD -MP -MF .deps/Drawing.Tpo -c -o Drawing.o `test -f '../femlib/Drawing.cpp' || echo './'`../femlib/Drawing.cpp
>> In file included from /usr/lib/gcc/x86_64-redhat-linux/4.3.0/../../../../include/c++/4.3.0/bits/stl_algo.h:67,
>>                  from /usr/lib/gcc/x86_64-redhat-linux/4.3.0/../../../../include/c++/4.3.0/algorithm:67,
>>                  from ../femlib/fem.hpp:135,
>>                  from ../femlib/Drawing.cpp:39:
>> /usr/lib/gcc/x86_64-redhat-linux/4.3.0/../../../../include/c++/4.3.0/bits/stl_heap.h: In function 'bool Fem2D::std::__is_heap(_RandomAccessIterator, _RandomAccessIterator)':
>> /usr/lib/gcc/x86_64-redhat-linux/4.3.0/../../../../include/c++/4.3.0/bits/stl_heap.h:117: error: 'distance' is not a member of 'Fem2D::std'
>> /usr/lib/gcc/x86_64-redhat-linux/4.3.0/../../../../include/c++/4.3.0/bits/stl_heap.h: In function 'bool Fem2D::std::__is_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare)':
>> /usr/lib/gcc/x86_64-redhat-linux/4.3.0/../../../../include/c++/4.3.0/bits/stl_heap.h:123: error: 'distance' is not a member of 'Fem2D::std'
>>
>> And tons of similar ones.
>> Full log at http://koji.fedoraproject.org/koji/getfile?taskID=451366&name=build.log
>>
>> If anyone has a clue what's going on here, I'd appreciate the help.
>
> You added the #include <algorithm> within a namespace definition. Just move 
> it to the top and things will be fine.

Thanks, I missed that.

> I found other problems as well, just 
> sent you a patch off-list that compiles everything for me (on top of the 
> patch you already have in cvs).

Confirmed, compiles fine. I'm now fixing the missing pdf doc problem. Thanks
again.

Regards,
R.

-- 
Fedora contributor http://fedoraproject.org/wiki/DominikMierzejewski
Livna contributor http://rpm.livna.org MPlayer developer http://mplayerhq.hu
"Faith manages."
        -- Delenn to Lennier in Babylon 5:"Confessions and Lamentations"




More information about the fedora-devel-list mailing list