Bonjour,

Lors de la compilation sous une distribution Linux Gentoo x64, le résultat affiche le message d'erreur suivant :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
_CPP_11_CONTAINER -D_QX_CPP_11_TUPLE -D_QX_BUILDING_QX_ORM -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I. -Iinclude -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtSql -isystem /usr/include/qt5/QtCore -Iqt/moc -I/usr/lib64/qt5/mkspecs/linux-g++ -o release/QxNestedModel.o src/QxModelView/QxNestedModel.cpp
In file included from /usr/include/boost/serialization/shared_ptr.hpp:28:0,
                 from include/QxSerialize/boost/QxSerialize_shared_ptr.h:54,
                 from include/QxValidator/QxInvalidValue.h:49,
                 from src/QxValidator/QxInvalidValue.cpp:34:
/usr/include/boost/serialization/shared_ptr_helper.hpp: In static member function ‘static const boost::serialization::extended_type_info* boost::serialization::shared_ptr_helper<SPT>::non_polymorphic::get_object_type(U&)’:
/usr/include/boost/serialization/shared_ptr_helper.hpp:107:22: error: ‘singleton’ is not a member of ‘boost::serialization’
             return & boost::serialization::singleton<
                      ^
/usr/include/boost/serialization/shared_ptr_helper.hpp:110:13: error: expected ‘(’ before ‘>’ token
             >::get_const_instance();
             ^
/usr/include/boost/serialization/shared_ptr_helper.hpp:110:14: error: ‘::get_const_instance’ has not been declared
             >::get_const_instance();
              ^
/usr/include/boost/serialization/shared_ptr_helper.hpp: In static member function ‘static const boost::serialization::extended_type_info* boost::serialization::shared_ptr_helper<SPT>::polymorphic::get_object_type(U&)’:
/usr/include/boost/serialization/shared_ptr_helper.hpp:117:20: error: ‘singleton’ is not a member of ‘boost::serialization’
             return boost::serialization::singleton<
                    ^
/usr/include/boost/serialization/shared_ptr_helper.hpp:120:13: error: expected ‘(’ before ‘>’ token
             >::get_const_instance().get_derived_extended_type_info(u);
             ^
/usr/include/boost/serialization/shared_ptr_helper.hpp:120:14: error: ‘::get_const_instance’ has not been declared
             >::get_const_instance().get_derived_extended_type_info(u);
              ^
/usr/include/boost/serialization/shared_ptr_helper.hpp: In member function ‘void boost::serialization::shared_ptr_helper<SPT>::reset(SPT<T>&, T*)’:
/usr/include/boost/serialization/shared_ptr_helper.hpp:152:30: error: invalid use of incomplete type ‘const class boost::serialization::extended_type_info’
                     this_type->get_debug_info()
                              ^
/usr/include/boost/serialization/shared_ptr_helper.hpp:42:7: error: forward declaration of ‘const class boost::serialization::extended_type_info’
 class extended_type_info;
       ^
/usr/include/boost/serialization/shared_ptr_helper.hpp:167:30: error: invalid use of incomplete type ‘const class boost::serialization::extended_type_info’
                     true_type->get_debug_info(),
                              ^
/usr/include/boost/serialization/shared_ptr_helper.hpp:42:7: error: forward declaration of ‘const class boost::serialization::extended_type_info’
 class extended_type_info;
       ^
/usr/include/boost/serialization/shared_ptr_helper.hpp:168:30: error: invalid use of incomplete type ‘const class boost::serialization::extended_type_info’
                     this_type->get_debug_info()
                              ^
/usr/include/boost/serialization/shared_ptr_helper.hpp:42:7: error: forward declaration of ‘const class boost::serialization::extended_type_info’
 class extended_type_info;
       ^
Makefile.Release:9067: recipe for target 'release/QxInvalidValue.o' failed
make[1]: *** [release/QxInvalidValue.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/var/calculate/tmp/portage/dev-cpp/qxorm-1.3.2/work/QxOrm'
Makefile:38: recipe for target 'release' failed
m
L'environnement de build est le suivant :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
ccache version 3.1.9 [disabled]
app-shells/bash:          4.3_p33-r2::gentoo
dev-util/ccache:          3.1.9-r4::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.8.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=x86-64 -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="-O2 -march=x86-64 -pipe"
FCFLAGS="-O2 -pipe"
FFLAGS="-O2 -pipe"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,--as-needed"
MAKEOPTS="-j9"
Le poste est installé avec Boost 1.56 et QT 5.4.2.
Quel est la cause de cette erreur ? Est ce un problème d'environnement ?