| Summary: | gdcm: FTBFS against openjpeg-1.4 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Rex Dieter <rdieter> |
| Component: | gdcm | Assignee: | Mario Ceresa <mrceresa> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | rawhide | CC: | lemenkov, mrceresa |
| Target Milestone: | --- | Keywords: | Patch |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-02-02 17:42:06 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Rex Dieter
2011-01-13 16:41:48 UTC
Hello Rex! sure I'll try to help understanding what is going on. Only that I'm a bit busy right now at work and cannot be of much help until saturday. Best regards, Mario Hello Rex, The mangling is here: http://gdcm.git.sourceforge.net/git/gitweb.cgi?p=gdcm/gdcm;a=blob;f=Utilities/gdcmopenjpeg/openjpeg_mangle.h.in;h=62f15ece8340cb402c319d9e756c3f30be01f921;hb=HEAD I'm investigating the problem Mario Hello Rex! after a bit of investigation I believe that the problem is libgdcmMSFF is not correctly linked to libopenjpeg. As far as I got, this happens because the openjpeg-devel package now ships its own OpenJPEGConfig*.cmake files, which take precedence upon the FindOpenJPEG.cmake file that gdcm ships. However, the entry SET(OPENJPEG_LIBRARIES "") is missing information so the linker fails. Manually adding SET(OPENJPEG_LIBRARIES "/usr/lib64/libopenjpeg.so") to /usr/lib64/openjpeg-1.4/OpenJPEGConfig.cmake did the trick for me. Now I'll check why cmake does not generate correct linking information on openjpeg BTW, thanks to kevin for providing a test machine with rawhide installed: it really helped! With best regards, Mario Hello again,
Setting the OPENJPEG_LIBRARIES option in openjpeg CMakeLists.txt before configuring the export file solves the problem on the test machine.
This is the patch:
PATCH-START-------------------------------------------
diff --git a/openjpeg_v1_4_sources_r697/CMakeLists.txt b/openjpeg_v1_4_sources_r697/CMakeLists.txt
index 52150f5..eaf5e87 100644
--- a/openjpeg_v1_4_sources_r697/CMakeLists.txt
+++ b/openjpeg_v1_4_sources_r697/CMakeLists.txt
@@ -46,6 +46,8 @@ SET(OPENJPEG_LIBRARY_PROPERTIES
# OPENJPEG_INSTALL_DATA_DIR - share dir (say, examples, data, etc)
# OPENJPEG_INSTALL_INCLUDE_DIR - include dir (headers)
+SET(OPENJPEG_LIBRARIES ${OPENJPEG_LIBRARY_NAME})
+
# On Visual Studio 8 MS deprecated C. This removes all 1.276E1265 security
# warnings
END-PATCH---------------------------------------------
Hope this helps!
With best regards,
Mario
Hello Rex! did you have the time to test/apply the patch in openjpeg? This way gdcm will work again in rawhide... Thanks and regards, Mario Thanks, I'm @ fudcon , but I'll definitely try to look into this over the next day or 2. Ok, thanks for your prompt reply and enjoy the fudcon! OK, fix applied to openjpeg-1.4-3, http://koji.fedoraproject.org/koji/taskinfo?taskID=2753747 Great! but, do you apply the patch after including? I don't see any %patch55 macro in the specfile... Silly me, let's try 1.4-4 then Hello Rex, now I can link correctly, thanks! I submitted a new build: http://koji.fedoraproject.org/koji/buildinfo?buildID=216697 With best regards, Mario |