[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#718369: marked as done (soprano: FTBFS with with clucene 2.x: undefined symbol lucene::util::atomic_threads::atomic_decrement)



Your message dated Tue, 06 Aug 2013 15:08:12 +0000
with message-id <E1V6irs-0004kl-G6@franck.debian.org>
and subject line Bug#718369: fixed in soprano 2.9.2+dfsg.1-4
has caused the Debian Bug report #718369,
regarding soprano: FTBFS with with clucene 2.x: undefined symbol lucene::util::atomic_threads::atomic_decrement
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
718369: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718369
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: soprano
Version: 2.9.2+dfsg.1-1
Severity: serious
Tags: patch

Hi,

soprano fails to build with the recently updated clucene 2.x:

[...]
/usr/bin/c++  -fPIC -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common -fvisibility=hidden -fvisibility-inlines-hidden -fexceptions -fvisibility=default -fno-visibility-inlines-hidden  -Wl,-z,relro -Wl,--as-needed -Wl,--no-undefined -shared -Wl,-soname,libsopranoindex.so.1 -o libsopranoindex.so.1.1.0 CMakeFiles/sopranoindex.dir/cluceneindex.cpp.o CMakeFiles/sopranoindex.dir/clucenedocumentwrapper.cpp.o CMakeFiles/sopranoindex.dir/cluceneutils.cpp.o CMakeFiles/sopranoindex.dir/indexfiltermodel.cpp.o CMakeFiles/sopranoindex.dir/tstring.cpp.o CMakeFiles/sopranoindex.dir/indexqueryhit.cpp.o CMakeFiles/sopranoindex.dir/indexqueryhititeratorbackend.cpp.o CMakeFiles/sopranoindex.dir/queryhitwrapperresultiteratorbackend.cpp.o -lQtCore -lpthread ../soprano/libsoprano.so.4.3.0 -lclucene-core -lQtCore -lpthread -Wl,-rpath,/tmp/soprano-2.9.2+dfsg.1/Build/soprano: 
CMakeFiles/sopranoindex.dir/cluceneindex.cpp.o: In function `Soprano::Index::CLuceneIndex::Private::commit()':
/tmp/soprano-2.9.2+dfsg.1/Build/index/../../index/cluceneindex.cpp:248: undefined reference to `lucene::util::atomic_threads::atomic_decrement(unsigned int*)'
collect2: error: ld returned 1 exit status
make[4]: *** [index/libsopranoindex.so.1.1.0] Error 1
make[4]: Leaving directory `/tmp/soprano-2.9.2+dfsg.1/Build'
make[3]: *** [index/CMakeFiles/sopranoindex.dir/all] Error 2
make[3]: Leaving directory `/tmp/soprano-2.9.2+dfsg.1/Build'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/soprano-2.9.2+dfsg.1/Build'
dh_auto_build: make -j1 returned exit code 2
make[1]: *** [pre_build_dh_auto_build] Error 2
make[1]: Leaving directory `/tmp/soprano-2.9.2+dfsg.1'
make: *** [debian/dhmk_build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

That symbol is in libclucene-shared:

$ objdump -T /usr/lib/x86_64-linux-gnu/libclucene-core.so | c++filt | grep lucene::util::atomic_threads::atomic_decrement
0000000000000000      DF *UND*	0000000000000000              lucene::util::atomic_threads::atomic_decrement(unsigned int*)
$ objdump -T /usr/lib/x86_64-linux-gnu/libclucene-shared.so | c++filt | grep lucene::util::atomic_threads::atomic_decrement
0000000000005f20 g    DF .text	000000000000000e  Base        lucene::util::atomic_threads::atomic_decrement(unsigned int*)

Thanks to Barry deFreese on IRC who pointed me to the upstream patch, which is
http://lists.kde.org/?l=kde-commits&m=136932825018555&w=2

Debdiff attached.

Regards,

Rene
diff -Nru soprano-2.9.2+dfsg.1/debian/changelog soprano-2.9.2+dfsg.1/debian/changelog
--- soprano-2.9.2+dfsg.1/debian/changelog	2013-05-11 13:25:56.000000000 +0000
+++ soprano-2.9.2+dfsg.1/debian/changelog	2013-07-30 20:38:25.000000000 +0000
@@ -1,3 +1,10 @@
+soprano (2.9.2+dfsg.1-2) UNRELEASED; urgency=low
+
+  * backort http://lists.kde.org/?l=kde-commits&m=136932825018555&w=2 to fix
+    build with clucene 2.x 
+
+ -- Rene Engelhard <rene@debian.org>  Tue, 30 Jul 2013 18:22:15 +0000
+
 soprano (2.9.2+dfsg.1-1) unstable; urgency=low
 
   * New upstream release.
diff -Nru soprano-2.9.2+dfsg.1/debian/patches/find-clucene-shared.diff soprano-2.9.2+dfsg.1/debian/patches/find-clucene-shared.diff
--- soprano-2.9.2+dfsg.1/debian/patches/find-clucene-shared.diff	1970-01-01 00:00:00.000000000 +0000
+++ soprano-2.9.2+dfsg.1/debian/patches/find-clucene-shared.diff	2013-07-30 20:19:49.000000000 +0000
@@ -0,0 +1,103 @@
+Description: backport http://lists.kde.org/?l=kde-commits&m=136932825018555&w=2
+Author: Rene Engelhard <rene@debian.org>
+
+---
+Origin: upstream, http://lists.kde.org/?l=kde-commits&m=136932825018555&w=2
+Forwarded: http://lists.kde.org/?l=kde-commits&m=136932825018555&w=2
+
+--- soprano-2.9.2+dfsg.1.orig/cmake/modules/FindCLucene.cmake
++++ soprano-2.9.2+dfsg.1/cmake/modules/FindCLucene.cmake
+@@ -4,7 +4,8 @@
+ #
+ # CLUCENE_INCLUDE_DIR  = where CLucene/StdHeader.h can be found
+ # CLUCENE_LIBRARY_DIR  = where CLucene/clucene-config.h can be found
+-# CLUCENE_LIBRARY      = the library to link against CLucene
++# CLUCENE_LIBRARY      = the library to link against CLucene DEPRECATED Use CLUCENE_LIBRARIES
++# CLUCENE_LIBRARIES    = the libraries to link against CLucene
+ # CLUCENE_VERSION      = The CLucene version string
+ # CLucene_FOUND        = set to 1 if clucene is found
+ #
+@@ -36,13 +37,27 @@ SET(TRIAL_INCLUDE_PATHS
+   /sw/include
+   /usr/pkg/include
+   )
++
+ FIND_LIBRARY_WITH_DEBUG(CLUCENE_LIBRARY
+   WIN32_DEBUG_POSTFIX d
+   NAMES clucene clucene-core
+   PATHS ${TRIAL_LIBRARY_PATHS})
+-IF (CLUCENE_LIBRARY)
+-  MESSAGE(STATUS "Found CLucene library: ${CLUCENE_LIBRARY}")
+-ENDIF (CLUCENE_LIBRARY)
++# On Linux, Soprano needs both clucene-core and clucene-shared
++# CLUCENE_LIBRARIES contains both entries if available
++set(CLUCENE_LIBRARIES ${CLUCENE_LIBRARY})
++
++find_library(CLUCENE_SHARED_LIBRARY
++  NAMES clucene-shared
++  HINTS ${TRIAL_LIBRARY_PATHS}
++)
++
++if(CLUCENE_SHARED_LIBRARY)
++  set(CLUCENE_LIBRARIES ${CLUCENE_LIBRARIES} ${CLUCENE_SHARED_LIBRARY})
++endif()
++
++IF(CLUCENE_LIBRARIES)
++  message(STATUS "Found CLucene: ${CLUCENE_LIBRARIES}")
++ENDIF (CLUCENE_LIBRARIES)
+ FIND_PATH(CLUCENE_INCLUDE_DIR
+   NAMES CLucene.h
+   PATHS ${TRIAL_INCLUDE_PATHS})
+@@ -77,13 +92,13 @@ IF (CLUCENE_LIBRARY_DIR)
+   ENDIF (CLMATCH)
+ ENDIF (CLUCENE_LIBRARY_DIR)
+ 
+-IF(CLUCENE_INCLUDE_DIR AND CLUCENE_LIBRARY AND CLUCENE_LIBRARY_DIR AND CLUCENE_GOOD_VERSION)
++IF(CLUCENE_INCLUDE_DIR AND CLUCENE_LIBRARIES AND CLUCENE_LIBRARY_DIR AND CLUCENE_GOOD_VERSION)
+   SET(CLucene_FOUND TRUE)
+-ENDIF(CLUCENE_INCLUDE_DIR AND CLUCENE_LIBRARY AND CLUCENE_LIBRARY_DIR AND CLUCENE_GOOD_VERSION)
++ENDIF(CLUCENE_INCLUDE_DIR AND CLUCENE_LIBRARIES AND CLUCENE_LIBRARY_DIR AND CLUCENE_GOOD_VERSION)
+ 
+ IF(CLucene_FOUND)
+   IF(NOT CLucene_FIND_QUIETLY)
+-    MESSAGE(STATUS "Found CLucene: ${CLUCENE_LIBRARY}")
++    MESSAGE(STATUS "Found CLucene: ${CLUCENE_LIBRARIES}")
+   ENDIF(NOT CLucene_FIND_QUIETLY)
+ ELSE(CLucene_FOUND)
+   IF(CLucene_FIND_REQUIRED)
+@@ -94,5 +109,7 @@ ENDIF(CLucene_FOUND)
+ MARK_AS_ADVANCED(
+   CLUCENE_INCLUDE_DIR 
+   CLUCENE_LIBRARY_DIR 
++  CLUCENE_SHARED_LIBRARY 
+   CLUCENE_LIBRARY 
++  CLUCENE_LIBRARIES 
+   )
+--- soprano-2.9.2+dfsg.1.orig/index/CMakeLists.txt
++++ soprano-2.9.2+dfsg.1/index/CMakeLists.txt
+@@ -46,7 +46,7 @@ target_link_libraries(
+   sopranoindex
+   ${QT_QTCORE_LIBRARY}
+   soprano
+-  ${CLUCENE_LIBRARY}
++  ${CLUCENE_LIBRARIES}
+ )
+ 
+ set_target_properties(
+--- soprano-2.9.2+dfsg.1.orig/test/CMakeLists.txt
++++ soprano-2.9.2+dfsg.1/test/CMakeLists.txt
+@@ -156,12 +156,12 @@ if(BUILD_CLUCENE_INDEX)
+   # TString test
+   qt4_automoc(tstringtest tstringtest.cpp)
+   add_executable(tstringtest tstringtest.cpp stringpool.cpp ../index/tstring.cpp)
+-  target_link_libraries(tstringtest ${QT_QTCORE_LIBRARY} ${QT_QTTEST_LIBRARY} ${CLUCENE_LIBRARY})
++  target_link_libraries(tstringtest ${QT_QTCORE_LIBRARY} ${QT_QTTEST_LIBRARY} ${CLUCENE_LIBRARIES})
+   add_test(tstringtest ${EXECUTABLE_OUTPUT_PATH}/tstringtest)
+ 
+   qt4_automoc(cluceneindextest cluceneindextest.cpp)
+   add_executable(cluceneindextest cluceneindextest.cpp stringpool.cpp)
+-  target_link_libraries(cluceneindextest soprano sopranoindex ${QT_QTCORE_LIBRARY} ${QT_QTTEST_LIBRARY} ${CLUCENE_LIBRARY})
++  target_link_libraries(cluceneindextest soprano sopranoindex ${QT_QTCORE_LIBRARY} ${QT_QTTEST_LIBRARY} ${CLUCENE_LIBRARIES})
+   add_test(cluceneindextest ${EXECUTABLE_OUTPUT_PATH}/cluceneindextest)
+ 
+   qt4_automoc(indexmodelmultithreadingtest indexmodelmultithreadingtest.cpp)
diff -Nru soprano-2.9.2+dfsg.1/debian/patches/series soprano-2.9.2+dfsg.1/debian/patches/series
--- soprano-2.9.2+dfsg.1/debian/patches/series	2013-05-11 13:25:56.000000000 +0000
+++ soprano-2.9.2+dfsg.1/debian/patches/series	2013-07-30 20:11:32.000000000 +0000
@@ -1 +1,2 @@
 redland_raptor2_support.h
+find-clucene-shared.diff

--- End Message ---
--- Begin Message ---
Source: soprano
Source-Version: 2.9.2+dfsg.1-4

We believe that the bug you reported is fixed in the latest version of
soprano, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 718369@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Pino Toscano <pino@debian.org> (supplier of updated soprano package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 06 Aug 2013 16:18:51 +0200
Source: soprano
Binary: soprano-daemon libsoprano4 libsoprano-dev libsoprano-doc libsoprano-dbg
Architecture: source amd64 all
Version: 2.9.2+dfsg.1-4
Distribution: unstable
Urgency: low
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Changed-By: Pino Toscano <pino@debian.org>
Description: 
 libsoprano-dbg - debugging symbols for the Soprano RDF framework
 libsoprano-dev - development files for the Soprano RDF framework
 libsoprano-doc - developer documentation for the Soprano RDF framework
 libsoprano4 - libraries for the Soprano RDF framework
 soprano-daemon - daemon for the Soprano RDF framework
Closes: 718369
Changes: 
 soprano (2.9.2+dfsg.1-4) unstable; urgency=low
 .
   * Team upload.
   * Remove last bits of multiarch, since soprano is not read for it and
     would require more work to also not break rdepends:
     - drop patch add_m-a_dirs_to_the_search_path.diff
     - remove Pre-Depends
   * Backport upstream commit 4bfdfdfdee03080ec9ca21eeb168c2ab9dbba0bb to fix
     compatibility with clucene 2.x; patch upstream_find-clucene-shared.diff.
     (Closes: #718369)
   * Update symbols file.
Checksums-Sha1: 
 f1fbf487072e3c77a06e698ddbb0b75d9b890264 1833 soprano_2.9.2+dfsg.1-4.dsc
 9e92506f1a104eb540a3721d8c4a017c2294140e 31072 soprano_2.9.2+dfsg.1-4.debian.tar.gz
 49d07f6165b715c9b1140783f378c0de4a51efba 162090 soprano-daemon_2.9.2+dfsg.1-4_amd64.deb
 2a430aab7cea8157a04dc4a49b9058c0be9e4c95 412906 libsoprano4_2.9.2+dfsg.1-4_amd64.deb
 85cb4361586256b8fdb8d934943157298d60f8d1 83292 libsoprano-dev_2.9.2+dfsg.1-4_amd64.deb
 3b153cb81417353d32c4e8058e47b9fa4ced563c 7217618 libsoprano-doc_2.9.2+dfsg.1-4_all.deb
 ea488809f5eed08fb2ccf8db92dc193da05e96a5 8799546 libsoprano-dbg_2.9.2+dfsg.1-4_amd64.deb
Checksums-Sha256: 
 5f8fdf409928ab66fa29929452f6696e28bf771716b0e433ac6310334350552a 1833 soprano_2.9.2+dfsg.1-4.dsc
 cfd0913455d92770f9a28fe14239ef268cedaf5cfa7a14d2d99e66ec82365810 31072 soprano_2.9.2+dfsg.1-4.debian.tar.gz
 c3b5e60bf7f5681142f29e45965939ea2c547eb1429cf486579b7b0236211cb2 162090 soprano-daemon_2.9.2+dfsg.1-4_amd64.deb
 964c568a0d9c01e29ccb356f9e160a992e8a702fb73d5c6262432ca5d8c6dc40 412906 libsoprano4_2.9.2+dfsg.1-4_amd64.deb
 977ba400a16a289f123f99c658f1479b1110ef507756a7b381acb638f35929a2 83292 libsoprano-dev_2.9.2+dfsg.1-4_amd64.deb
 c29ba42482cf92fc45b1b87784fe402e72c5c8b452eeca6c83bab8ae8a2fbb39 7217618 libsoprano-doc_2.9.2+dfsg.1-4_all.deb
 839e8977148098b394e476d14cb436128249ee9a77c902806d7bf8ddd79bbba8 8799546 libsoprano-dbg_2.9.2+dfsg.1-4_amd64.deb
Files: 
 e197d79fea740a88c45c889598942708 1833 libs optional soprano_2.9.2+dfsg.1-4.dsc
 c47fd73c3e08f1f8a1130ce9b268f9e3 31072 libs optional soprano_2.9.2+dfsg.1-4.debian.tar.gz
 f029b2516adce0088b01e62da691a0e4 162090 utils optional soprano-daemon_2.9.2+dfsg.1-4_amd64.deb
 4a38b65622feaebec1f3ac7239387d8f 412906 libs optional libsoprano4_2.9.2+dfsg.1-4_amd64.deb
 7e3bc3e8b35e7d9cc47eb7f9a745da4e 83292 libdevel optional libsoprano-dev_2.9.2+dfsg.1-4_amd64.deb
 697d81f50cd23296da3750495650999b 7217618 doc extra libsoprano-doc_2.9.2+dfsg.1-4_all.deb
 bcedffeb159ba736a04d0723ab1cb3e3 8799546 debug extra libsoprano-dbg_2.9.2+dfsg.1-4_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)

iD8DBQFSAQfaTNH2piB/L3oRAlKJAJ9XsQKS4pREYX7rqZdirR31N778ZACfQGku
AC7AoRhjIdNpMe/E5XRlE3E=
=ZIGC
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: