Bug 281811 - Libqapt fails to build against libxapian 1.2.7
Summary: Libqapt fails to build against libxapian 1.2.7
Status: RESOLVED DUPLICATE of bug 280024
Alias: None
Product: muon
Classification: Unmaintained
Component: libqapt (show other bugs)
Version: 1.1.80
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Jonathan Thomas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-11 16:40 UTC by Hrvoje Senjan
Modified: 2011-09-11 17:19 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hrvoje Senjan 2011-09-11 16:40:12 UTC
Version:           1.1.80 (using KDE 4.6.5) 
OS:                Linux

Here's the log:
dpkg-buildpackage -rfakeroot -d -b
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): 
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): 
dpkg-buildpackage: source package qapt
dpkg-buildpackage: source version 1.2.0-0ubuntu1~natty2
dpkg-buildpackage: source changed by Jonathan Thomas <echidnaman@kubuntu.org>
dpkg-buildpackage: host architecture amd64
 dpkg-source --before-build qapt-1.2.0
 fakeroot debian/rules clean
dh clean  --with kde --parallel
   dh_testdir -O--parallel
   dh_auto_clean --buildsystem=kde -O--parallel
   dh_clean -O--parallel
 debian/rules build
dh build  --with kde --parallel
   dh_testdir -O--parallel
   dh_auto_configure --buildsystem=kde -O--parallel
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt4: /usr/bin/qmake (found version "4.7.3")
-- Found Automoc4: /usr/bin/automoc4
-- checking for module 'polkit-qt-1'
--   found polkit-qt-1, version 0.99.0
-- Found PolkitQt-1: /usr/lib/libpolkit-qt-gui-1.so;/usr/lib/libpolkit-qt-core-1.so;/usr/lib/libpolkit-qt-agent-1.so 
-- Found Xapian: /usr/lib/libxapian.so
-- Found AptPkg: optimized;/usr/lib/libapt-pkg.so;/usr/lib/libapt-inst.so;debug;/usr/lib/libapt-pkg.so 
CMake Warning at CMakeLists.txt:41 (find_package):
  Could not find module FindQtGStreamer.cmake or a configuration file for
  package QtGStreamer.

  Adjust CMAKE_MODULE_PATH to find FindQtGStreamer.cmake or set
  QtGStreamer_DIR to the directory containing a CMake configuration file for
  QtGStreamer.  The file will have one of the following names:

    QtGStreamerConfig.cmake
    qtgstreamer-config.cmake



-- Performing Test __HAVE_GCC_VISIBILITY
-- Performing Test __HAVE_GCC_VISIBILITY - Success
-- Found Qt-Version 4.7.3 (using /usr/bin/qmake)
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
-- Found Automoc4: /usr/bin/automoc4 
-- Found Perl: /usr/bin/perl 
-- Found Phonon: /usr/include 
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
-- Found KDE 4.6 include dir: /usr/include
-- Found KDE 4.6 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Found Debconf-KDE: /usr/lib/libdebconf-kde.so
-- Looking for dgettext
-- Looking for dgettext - found
-- Found Gettext: built in libc
-- 
-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
+ QtGStreamer: Qt wrapper around the GStreamer multimedia framework <http://gstreamer.freedesktop.org>
Used to build an optional GStreamer plugin installer
-----------------------------------------------------------------------------

-- Configuring done
-- Generating done
-- Build files have been written to: /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu
   dh_auto_build --buildsystem=kde -O--parallel
make[1]: Entering directory `/home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu'
/usr/bin/cmake -H/home/hrvoje/Src/qapt-1.2.0 -B/home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/CMakeFiles /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[2]: Entering directory `/home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu'
make -f src/CMakeFiles/qapt.dir/build.make src/CMakeFiles/qapt.dir/depend
make[3]: Entering directory `/home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu'
/usr/bin/cmake -E cmake_progress_report /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/CMakeFiles 87
[  1%] Generating workerdbus.cpp, workerdbus.h
cd /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/src && /usr/bin/qdbusxml2cpp -m -p workerdbus /home/hrvoje/Src/qapt-1.2.0/src/worker/org.kubuntu.qaptworker.xml
/usr/bin/cmake -E cmake_progress_report /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/CMakeFiles 84
[  2%] Generating moc_backend.cxx
cd /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/src && /usr/bin/moc-qt4 -I/home/hrvoje/Src/qapt-1.2.0 -I/home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtDBus -I/usr/include/polkit-qt-1 -I/usr/include -I/home/hrvoje/Src/qapt-1.2.0/src -I/home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/src -o /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/src/moc_backend.cxx /home/hrvoje/Src/qapt-1.2.0/src/backend.h
/usr/bin/cmake -E cmake_progress_report /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/CMakeFiles 85
[  3%] Generating moc_cache.cxx
cd /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/src && /usr/bin/moc-qt4 -I/home/hrvoje/Src/qapt-1.2.0 -I/home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtDBus -I/usr/include/polkit-qt-1 -I/usr/include -I/home/hrvoje/Src/qapt-1.2.0/src -I/home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/src -o /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/src/moc_cache.cxx /home/hrvoje/Src/qapt-1.2.0/src/cache.h
/usr/bin/cmake -E cmake_progress_report /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/CMakeFiles 
[  3%] Generating moc_config.cxx
cd /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/src && /usr/bin/moc-qt4 -I/home/hrvoje/Src/qapt-1.2.0 -I/home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtDBus -I/usr/include/polkit-qt-1 -I/usr/include -I/home/hrvoje/Src/qapt-1.2.0/src -I/home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/src -o /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/src/moc_config.cxx /home/hrvoje/Src/qapt-1.2.0/src/config.h
/usr/bin/cmake -E cmake_progress_report /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/CMakeFiles 86
[  4%] Generating moc_history.cxx
cd /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/src && /usr/bin/moc-qt4 -I/home/hrvoje/Src/qapt-1.2.0 -I/home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtDBus -I/usr/include/polkit-qt-1 -I/usr/include -I/home/hrvoje/Src/qapt-1.2.0/src -I/home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/src -o /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/src/moc_history.cxx /home/hrvoje/Src/qapt-1.2.0/src/history.h
/usr/bin/cmake -E cmake_progress_report /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/CMakeFiles 
[  4%] Generating workerdbus.moc
cd /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/src && /usr/bin/moc-qt4 -I/home/hrvoje/Src/qapt-1.2.0 -I/home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtDBus -I/usr/include/polkit-qt-1 -I/usr/include -I/home/hrvoje/Src/qapt-1.2.0/src -I/home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/src -o /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/src/workerdbus.moc /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/src/workerdbus.h
cd /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/hrvoje/Src/qapt-1.2.0 /home/hrvoje/Src/qapt-1.2.0/src /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/src /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/src/CMakeFiles/qapt.dir/DependInfo.cmake --color=
Scanning dependencies of target qapt
make[3]: Leaving directory `/home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu'                                          
make -f src/CMakeFiles/qapt.dir/build.make src/CMakeFiles/qapt.dir/build
make[3]: Entering directory `/home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu'
/usr/bin/cmake -E cmake_progress_report /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/CMakeFiles 77
[  5%] Building CXX object src/CMakeFiles/qapt.dir/backend.o
cd /home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/src && /usr/bin/c++   -Dqapt_EXPORTS -g -O2  -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -I/home/hrvoje/Src/qapt-1.2.0 -I/home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtDBus -I/usr/include/polkit-qt-1 -I/home/hrvoje/Src/qapt-1.2.0/src -I/home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu/src    -o CMakeFiles/qapt.dir/backend.o -c /home/hrvoje/Src/qapt-1.2.0/src/backend.cpp
In file included from /usr/include/xapian/enquire.h:33:0,
                 from /usr/include/xapian.h:46,
                 from /home/hrvoje/Src/qapt-1.2.0/src/backend.cpp:42:
/usr/include/xapian/keymaker.h:64:10: error: a template-id may not appear in a using-declaration
/usr/include/xapian/keymaker.h: In member function ‘void Xapian::MultiValueKeyMaker::add_value(Xapian::valueno, bool)’:
/usr/include/xapian/keymaker.h:77:7: error: expected primary-expression before ‘.’ token
/usr/include/xapian/keymaker.h: At global scope:
/usr/include/xapian/keymaker.h:110:10: error: a template-id may not appear in a using-declaration
/usr/include/xapian/keymaker.h: In member function ‘void Xapian::MultiValueSorter::add(Xapian::valueno, bool)’:
/usr/include/xapian/keymaker.h:123:7: error: expected primary-expression before ‘.’ token
make[3]: *** [src/CMakeFiles/qapt.dir/backend.o] Error 1
make[3]: Leaving directory `/home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu'
make[2]: *** [src/CMakeFiles/qapt.dir/all] Error 2
make[2]: Leaving directory `/home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/hrvoje/Src/qapt-1.2.0/obj-x86_64-linux-gnu'
dh_auto_build: make -j1 returned exit code 2
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Reproducible: Didn't try

Steps to Reproduce:
Try to compile libqapt against Debian testing's version of libxapian - 1.2.7

Actual Results:  
Fails to build

Expected Results:  
Succesfully build
Comment 1 Hrvoje Senjan 2011-09-11 16:52:15 UTC
Git version:
cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt4: /usr/bin/qmake (found version "4.7.3")
-- Found Automoc4: /usr/bin/automoc4
-- checking for module 'polkit-qt-1'
--   found polkit-qt-1, version 0.99.0
-- Found PolkitQt-1: /usr/lib/libpolkit-qt-gui-1.so;/usr/lib/libpolkit-qt-core-1.so;/usr/lib/libpolkit-qt-agent-1.so 
WARNING: Installation prefix does not match PolicyKit install prefixes. You probably will need to move files installed in POLICY_FILES_INSTALL_DIR and by dbus_add_activation_system_service to the /usr prefix
-- Found Xapian: /usr/lib/libxapian.so
-- Found AptPkg: /usr/lib/libapt-pkg.so;/usr/lib/libapt-inst.so 
CMake Warning at CMakeLists.txt:41 (find_package):
  Could not find module FindQtGStreamer.cmake or a configuration file for
  package QtGStreamer.

  Adjust CMAKE_MODULE_PATH to find FindQtGStreamer.cmake or set
  QtGStreamer_DIR to the directory containing a CMake configuration file for
  QtGStreamer.  The file will have one of the following names:

    QtGStreamerConfig.cmake
    qtgstreamer-config.cmake



-- Performing Test __HAVE_GCC_VISIBILITY
-- Performing Test __HAVE_GCC_VISIBILITY - Success
-- Found Qt-Version 4.7.3 (using /usr/bin/qmake)
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
-- Found Automoc4: /usr/bin/automoc4 
-- Found Perl: /usr/bin/perl 
-- Found Phonon: /usr/include 
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
-- Found KDE 4.6 include dir: /usr/include
-- Found KDE 4.6 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Found Debconf-KDE: /usr/lib/libdebconf-kde.so
-- 
-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
+ QtGStreamer: Qt wrapper around the GStreamer multimedia framework <http://gstreamer.freedesktop.org>
Used to build an optional GStreamer plugin installer
-----------------------------------------------------------------------------

-- Configuring done
-- Generating done
-- Build files have been written to: /home/hrvoje/Src/libqapt/build
[18:43] hrvoje@debian ~/Src/libqapt/build$ make
[  2%] Generating workerdbus.cpp, workerdbus.h
[  4%] Generating moc_backend.cxx                                                                                      
[  6%] Generating moc_cache.cxx                                                                                        
[  9%] Generating moc_config.cxx                                                                                       
[ 11%] Generating moc_history.cxx                                                                                      
[ 13%] Generating workerdbus.moc                                                                                       
Scanning dependencies of target qapt                                                                                   
[ 15%] Building CXX object src/CMakeFiles/qapt.dir/backend.o                                                           
In file included from /usr/include/xapian/enquire.h:33:0,                                                              
                 from /usr/include/xapian.h:46,
                 from /home/hrvoje/Src/libqapt/src/backend.cpp:43:
/usr/include/xapian/keymaker.h:64:10: error: a template-id may not appear in a using-declaration
/usr/include/xapian/keymaker.h: In member function ‘void Xapian::MultiValueKeyMaker::add_value(Xapian::valueno, bool)’:
/usr/include/xapian/keymaker.h:77:7: error: expected primary-expression before ‘.’ token
/usr/include/xapian/keymaker.h: At global scope:
/usr/include/xapian/keymaker.h:110:10: error: a template-id may not appear in a using-declaration
/usr/include/xapian/keymaker.h: In member function ‘void Xapian::MultiValueSorter::add(Xapian::valueno, bool)’:
/usr/include/xapian/keymaker.h:123:7: error: expected primary-expression before ‘.’ token
make[2]: *** [src/CMakeFiles/qapt.dir/backend.o] Error 1
make[1]: *** [src/CMakeFiles/qapt.dir/all] Error 2
make: *** [all] Error 2
Comment 2 Jonathan Thomas 2011-09-11 17:19:21 UTC

*** This bug has been marked as a duplicate of bug 280024 ***