Re: [Kolab-devel] libkolabxml git master does not build due to boost error

Timotheus Pokorra <[email protected]>
Newsgroups gmane.comp.kde.devel.kolab
Message-ID <CAJ0=nQeCwH5a4cSaEB6azMEE7h+Y1J_xAYy7pe9+ee6ueZ1ZJg@mail.gmail.com>
Thanks Christian,

this works fine.

Now I came across building the package kolab-utils, and I have a
similar problem:

Probably related to this commit in June 2013:
https://git.kolab.org/kolab-utils/commit/?id=f4e91e5ee07f931ee4285b160c6c3d6304052856

[ 70%] Building CXX object fbdaemon/CMakeFiles/kolab-freebusyd.dir/main.cpp.o
cd /home/buildkolab/rpmbuild/BUILD/kolab-utils-master/build/fbdaemon
&& /usr/bin/c++    -O2 -g  -Wnon-virtual-dtor -Wno-long-long -ansi
-Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith
-Wformat-security -fno-check-new -fno-common -Woverloaded-virtual
-fno-threadsafe-statics -fvisibility=hidden -Werror=return-type
-fvisibility-inlines-hidden -fexceptions -UQT_NO_EXCEPTIONS -g
-I/home/buildkolab/rpmbuild/BUILD/kolab-utils-master/.
-I/home/buildkolab/rpmbuild/BUILD/kolab-utils-master/lib
-I/usr/include/QtXmlPatterns -I/usr/include/QtHelp
-I/usr/include/QtAssistant -I/usr/include/QtDBus -I/usr/include/QtTest
-I/usr/include/QtUiTools -I/usr/include/QtScript -I/usr/include/QtSvg
-I/usr/include/QtXml -I/usr/include/QtSql -I/usr/include/QtOpenGL
-I/usr/include/QtNetwork -I/usr/include/QtDesigner
-I/usr/include/Qt3Support -I/usr/include/QtGui -I/usr/include/QtCore
-I/usr/lib64/qt4/mkspecs/default -I/usr/include/calendaring
-I/usr/lib64/cmake/Libkolab/../../../include/kolab
-I/usr/lib64/cmake/Libkolabxml/../../../include/kolabxml
-I/home/buildkolab/rpmbuild/BUILD/kolab-utils-master/build   -o
CMakeFiles/kolab-freebusyd.dir/main.cpp.o -c
/home/buildkolab/rpmbuild/BUILD/kolab-utils-master/fbdaemon/main.cpp
/home/buildkolab/rpmbuild/BUILD/kolab-utils-master/fbdaemon/main.cpp:
In function 'int main(int, char**)':
/home/buildkolab/rpmbuild/BUILD/kolab-utils-master/fbdaemon/main.cpp:29:
error: 'KGlobal' has not been declared
make[2]: *** [fbdaemon/CMakeFiles/kolab-freebusyd.dir/main.cpp.o] Error 1
make[2]: Leaving directory
`/home/buildkolab/rpmbuild/BUILD/kolab-utils-master/build'
make[1]: *** [fbdaemon/CMakeFiles/kolab-freebusyd.dir/all] Error 2
make[1]: Leaving directory
`/home/buildkolab/rpmbuild/BUILD/kolab-utils-master/build'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.hdjZ5T (%build)

The easiest solution is to include kglobal.h as well in
fbdaemon/main.cpp, then it works for me on CentOS 6.4

Thanks,
  Timotheus

On 23 September 2013 11:03, Christian Mollekopf <[email protected]> wrote:
> On Saturday 21 September 2013 18.33:56 Timotheus Pokorra wrote:
>> Hello Christian,
>> I am working on CentOS 6.4.
>> By default boost 1.41 is installed.
>>
>> The file unordered_set.hpp is in the place that you describe, and it
>> is included fine.
>> But the namespace is not boost::unordered::unordered_set!
>>
>> /usr/include/boost/unordered/unordered_set.hpp has these lines:
>> [...]
>> namespace boost
>> {
>>     template <class Value, class Hash, class Pred, class Alloc>
>>     class unordered_set
>> [...]
>>
>> If I change rpmbuild/BUILD/libkolabxml-master/src/objectvalidation.cpp
>> line 32 and line 40
>> replacing boost::unordered::unordered_set with boost::unordered_set
>> then it compiles fine.
>>
>> Would that work on Fedora too?
>
> Yup, fixed in 706a80b.
>
> Cheers,
> Christian
>
> _______________________________________________
> devel mailing list
> [email protected]
> https://lists.kolab.org/mailman/listinfo/devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.