Hello all,
I did reinstall my PC and got some error while compiling libpqxx. I
think the newer gcc version is not compatible to this library. If
anyone can give me a tip on how to solve it, I'll be very happy :)
My system is Fedora Core 6 and my gcc packages installed are:
gcc-4.1.1-30
gcc-c++-4.1.1-30
libgcc-4.1.1-30
Here is what I got when trying to compile:
-------------------------
[EMAIL PROTECTED] libpqxx-2.6.8]$ make
Making all in include
make[1]: Entrando no diretório `/home/rcborovik/libpqxx-2.6.8/include'
Making all in pqxx
make[2]: Entrando no diretório `/home/rcborovik/libpqxx-2.6.8/include/pqxx'
make all-am
make[3]: Entrando no diretório `/home/rcborovik/libpqxx-2.6.8/include/pqxx'
make[3]: Nada a ser feito para `all-am'.
make[3]: Saindo do diretório `/home/rcborovik/libpqxx-2.6.8/include/pqxx'
make[2]: Saindo do diretório `/home/rcborovik/libpqxx-2.6.8/include/pqxx'
make[2]: Entrando no diretório `/home/rcborovik/libpqxx-2.6.8/include'
make[2]: Nada a ser feito para `all-am'.
make[2]: Saindo do diretório `/home/rcborovik/libpqxx-2.6.8/include'
make[1]: Saindo do diretório `/home/rcborovik/libpqxx-2.6.8/include'
Making all in src
make[1]: Entrando no diretório `/home/rcborovik/libpqxx-2.6.8/src'
if /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I../include -I../include -I/usr/include -g -O2 -Werror -MT
prepared_statement.lo -MD -MP -MF ".deps/prepared_statement.Tpo" -c -o
prepared_statement.lo prepared_statement.cxx; \
then mv -f ".deps/prepared_statement.Tpo"
".deps/prepared_statement.Plo"; else rm -f
".deps/prepared_statement.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I../include -I../include -I/usr/include -g -O2
-Werror -MT prepared_statement.lo -MD -MP -MF
.deps/prepared_statement.Tpo -c prepared_statement.cxx -o
prepared_statement.o
cc1plus: warnings being treated as errors
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_algobase.h:
In function '_BI2 std::copy_backward(_BI1, _BI1, _BI2) [with _BI1 =
__gnu_cxx::__normal_iterator<pqxx::prepare::internal::prepared_def::param*,
std::vector<pqxx::prepare::internal::prepared_def::param,
std::allocator<pqxx::prepare::internal::prepared_def::param> > >, _BI2
= __gnu_cxx::__normal_iterator<pqxx::prepare::internal::prepared_def::param*,
std::vector<pqxx::prepare::internal::prepared_def::param,
std::allocator<pqxx::prepare::internal::prepared_def::param> > >]':
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/vector.tcc:257:
instantiated from 'void std::vector<_Tp,
_Alloc>::_M_insert_aux(__gnu_cxx::__normal_iterator<typename
std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer,
std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp =
pqxx::prepare::internal::prepared_def::param, _Alloc =
std::allocator<pqxx::prepare::internal::prepared_def::param>]'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_vector.h:610:
instantiated from 'void std::vector<_Tp, _Alloc>::push_back(const
_Tp&) [with _Tp = pqxx::prepare::internal::prepared_def::param, _Alloc
= std::allocator<pqxx::prepare::internal::prepared_def::param>]'
prepared_statement.cxx:139: instantiated from here
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_algobase.h:480:
warning: lowering visibility of 'static _BI2
std::__copy_backward_normal<true, true>::copy_b_n(_BI1, _BI1, _BI2)
[with _BI1 =
__gnu_cxx::__normal_iterator<pqxx::prepare::internal::prepared_def::param*,
std::vector<pqxx::prepare::internal::prepared_def::param,
std::allocator<pqxx::prepare::internal::prepared_def::param> > >, _BI2
= __gnu_cxx::__normal_iterator<pqxx::prepare::internal::prepared_def::param*,
std::vector<pqxx::prepare::internal::prepared_def::param,
std::allocator<pqxx::prepare::internal::prepared_def::param> > >]' to
match its type
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_algobase.h:
In static member function 'static _BI2
std::__copy_backward_normal<true, true>::copy_b_n(_BI1, _BI1, _BI2)
[with _BI1 =
__gnu_cxx::__normal_iterator<pqxx::prepare::internal::prepared_def::param*,
std::vector<pqxx::prepare::internal::prepared_def::param,
std::allocator<pqxx::prepare::internal::prepared_def::param> > >, _BI2
= __gnu_cxx::__normal_iterator<pqxx::prepare::internal::prepared_def::param*,
std::vector<pqxx::prepare::internal::prepared_def::param,
std::allocator<pqxx::prepare::internal::prepared_def::param> > >]':
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_algobase.h:517:
instantiated from '_BI2 std::copy_backward(_BI1, _BI1, _BI2) [with
_BI1 =
__gnu_cxx::__normal_iterator<pqxx::prepare::internal::prepared_def::param*,
std::vector<pqxx::prepare::internal::prepared_def::param,
std::allocator<pqxx::prepare::internal::prepared_def::param> > >, _BI2
= __gnu_cxx::__normal_iterator<pqxx::prepare::internal::prepared_def::param*,
std::vector<pqxx::prepare::internal::prepared_def::param,
std::allocator<pqxx::prepare::internal::prepared_def::param> > >]'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/vector.tcc:257:
instantiated from 'void std::vector<_Tp,
_Alloc>::_M_insert_aux(__gnu_cxx::__normal_iterator<typename
std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer,
std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp =
pqxx::prepare::internal::prepared_def::param, _Alloc =
std::allocator<pqxx::prepare::internal::prepared_def::param>]'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_vector.h:610:
instantiated from 'void std::vector<_Tp, _Alloc>::push_back(const
_Tp&) [with _Tp = pqxx::prepare::internal::prepared_def::param, _Alloc
= std::allocator<pqxx::prepare::internal::prepared_def::param>]'
prepared_statement.cxx:139: instantiated from here
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_algobase.h:480:
warning: lowering visibility of 'static _BI2
std::__copy_backward_normal<true, true>::copy_b_n(_BI1, _BI1, _BI2)
[with _BI1 =
__gnu_cxx::__normal_iterator<pqxx::prepare::internal::prepared_def::param*,
std::vector<pqxx::prepare::internal::prepared_def::param,
std::allocator<pqxx::prepare::internal::prepared_def::param> > >, _BI2
= __gnu_cxx::__normal_iterator<pqxx::prepare::internal::prepared_def::param*,
std::vector<pqxx::prepare::internal::prepared_def::param,
std::allocator<pqxx::prepare::internal::prepared_def::param> > >]' to
match its type
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_algobase.h:
In function '_BI2 std::__copy_backward_aux(_BI1, _BI1, _BI2) [with
_BI1 = pqxx::prepare::internal::prepared_def::param*, _BI2 =
pqxx::prepare::internal::prepared_def::param*]':
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_algobase.h:482:
instantiated from 'static _BI2 std::__copy_backward_normal<true,
true>::copy_b_n(_BI1, _BI1, _BI2) [with _BI1 =
__gnu_cxx::__normal_iterator<pqxx::prepare::internal::prepared_def::param*,
std::vector<pqxx::prepare::internal::prepared_def::param,
std::allocator<pqxx::prepare::internal::prepared_def::param> > >, _BI2
= __gnu_cxx::__normal_iterator<pqxx::prepare::internal::prepared_def::param*,
std::vector<pqxx::prepare::internal::prepared_def::param,
std::allocator<pqxx::prepare::internal::prepared_def::param> > >]'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_algobase.h:517:
instantiated from '_BI2 std::copy_backward(_BI1, _BI1, _BI2) [with
_BI1 =
__gnu_cxx::__normal_iterator<pqxx::prepare::internal::prepared_def::param*,
std::vector<pqxx::prepare::internal::prepared_def::param,
std::allocator<pqxx::prepare::internal::prepared_def::param> > >, _BI2
= __gnu_cxx::__normal_iterator<pqxx::prepare::internal::prepared_def::param*,
std::vector<pqxx::prepare::internal::prepared_def::param,
std::allocator<pqxx::prepare::internal::prepared_def::param> > >]'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/vector.tcc:257:
instantiated from 'void std::vector<_Tp,
_Alloc>::_M_insert_aux(__gnu_cxx::__normal_iterator<typename
std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer,
std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp =
pqxx::prepare::internal::prepared_def::param, _Alloc =
std::allocator<pqxx::prepare::internal::prepared_def::param>]'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_vector.h:610:
instantiated from 'void std::vector<_Tp, _Alloc>::push_back(const
_Tp&) [with _Tp = pqxx::prepare::internal::prepared_def::param, _Alloc
= std::allocator<pqxx::prepare::internal::prepared_def::param>]'
prepared_statement.cxx:139: instantiated from here
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_algobase.h:408:
warning: lowering visibility of 'static _BI2
std::__copy_backward<_BoolType,
std::random_access_iterator_tag>::copy_b(_BI1, _BI1, _BI2) [with _BI1
= pqxx::prepare::internal::prepared_def::param*, _BI2 =
pqxx::prepare::internal::prepared_def::param*, bool _BoolType =
false]' to match its type
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_algobase.h:
In static member function 'static _BI2 std::__copy_backward<_BoolType,
std::random_access_iterator_tag>::copy_b(_BI1, _BI1, _BI2) [with _BI1
= pqxx::prepare::internal::prepared_def::param*, _BI2 =
pqxx::prepare::internal::prepared_def::param*, bool _BoolType =
false]':
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_algobase.h:443:
instantiated from '_BI2 std::__copy_backward_aux(_BI1, _BI1, _BI2)
[with _BI1 = pqxx::prepare::internal::prepared_def::param*, _BI2 =
pqxx::prepare::internal::prepared_def::param*]'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_algobase.h:482:
instantiated from 'static _BI2 std::__copy_backward_normal<true,
true>::copy_b_n(_BI1, _BI1, _BI2) [with _BI1 =
__gnu_cxx::__normal_iterator<pqxx::prepare::internal::prepared_def::param*,
std::vector<pqxx::prepare::internal::prepared_def::param,
std::allocator<pqxx::prepare::internal::prepared_def::param> > >, _BI2
= __gnu_cxx::__normal_iterator<pqxx::prepare::internal::prepared_def::param*,
std::vector<pqxx::prepare::internal::prepared_def::param,
std::allocator<pqxx::prepare::internal::prepared_def::param> > >]'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_algobase.h:517:
instantiated from '_BI2 std::copy_backward(_BI1, _BI1, _BI2) [with
_BI1 =
__gnu_cxx::__normal_iterator<pqxx::prepare::internal::prepared_def::param*,
std::vector<pqxx::prepare::internal::prepared_def::param,
std::allocator<pqxx::prepare::internal::prepared_def::param> > >, _BI2
= __gnu_cxx::__normal_iterator<pqxx::prepare::internal::prepared_def::param*,
std::vector<pqxx::prepare::internal::prepared_def::param,
std::allocator<pqxx::prepare::internal::prepared_def::param> > >]'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/vector.tcc:257:
instantiated from 'void std::vector<_Tp,
_Alloc>::_M_insert_aux(__gnu_cxx::__normal_iterator<typename
std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer,
std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp =
pqxx::prepare::internal::prepared_def::param, _Alloc =
std::allocator<pqxx::prepare::internal::prepared_def::param>]'
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_vector.h:610:
instantiated from 'void std::vector<_Tp, _Alloc>::push_back(const
_Tp&) [with _Tp = pqxx::prepare::internal::prepared_def::param, _Alloc
= std::allocator<pqxx::prepare::internal::prepared_def::param>]'
prepared_statement.cxx:139: instantiated from here
/usr/lib/gcc/i386-redhat-linux/4.1.1/../../../../include/c++/4.1.1/bits/stl_algobase.h:408:
warning: lowering visibility of 'static _BI2
std::__copy_backward<_BoolType,
std::random_access_iterator_tag>::copy_b(_BI1, _BI1, _BI2) [with _BI1
= pqxx::prepare::internal::prepared_def::param*, _BI2 =
pqxx::prepare::internal::prepared_def::param*, bool _BoolType =
false]' to match its type
make[1]: ** [prepared_statement.lo] Erro 1
make[1]: Saindo do diretório `/home/rcborovik/libpqxx-2.6.8/src'
make: ** [all-recursive] Erro 1
-------------------------------
Thank all for helping!
Best regards,
Rafael Borovik
_______________________________________________
Libpqxx-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general