Bug 467661
Summary: | libopenjpeg has undefined references | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Alex Wauck <alex.wauck> | ||||||||
Component: | openjpeg | Assignee: | Rex Dieter <rdieter> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | medium | ||||||||||
Version: | 10 | CC: | moritz, rdieter, seg | ||||||||
Target Milestone: | --- | Keywords: | Patch | ||||||||
Target Release: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | 1.3-5.fc10 | Doc Type: | Bug Fix | ||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2009-07-16 06:51:21 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Created attachment 320838 [details]
Results of attempting to build from source RPM
Need to add -lm in there somewhere. As OpenJPEG doesn't have pkg-config support yet, I don't know what I can do from the OpenJPEG end, other than add it... Patches accepted. :) Also it's not finding openjpeg.h since it should be looking in /usr/include/openjpeg/ ... This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle. Changing version to '10'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping (In reply to comment #2) [...] > Also it's not finding openjpeg.h since it should be looking in > /usr/include/openjpeg/ ... Actually, openjpeg package should be fixed to install the header in /usr/include instead, see bug 484887. Regarding comment #2: Without pkg-config, I guess it's up to the app to guess/know what dependencies a linked library has. This is especially valid for linking against a static lib. With a dynamic lib, the dependency can be forced with a simple "-lm" at link time though. :-) I'm new at CMake, but I think I figured it out. A patch is attached. It "works for me". Poppler-0.10.5 now correctly detects openjpeg. Created attachment 335746 [details]
patch to force libm dependency at build
This patch makes CMake add a build/link time dependency on libmath (libm), which is thus properly exposed to other applications trying to link agains libopenjpeg without "-lm".
*ping* Does my attachment in comment #6 not fix the original issue properly? It does for me... I've hit this too, I'll take a look at integrating the patch, thanks. Fixed in rawhide. openjpeg-1.3-5.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/openjpeg-1.3-5.fc11 openjpeg-1.3-5.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/openjpeg-1.3-5.fc10 openjpeg-1.3-5.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update openjpeg'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-6882 openjpeg-1.3-5.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update openjpeg'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-6786 openjpeg-1.3-5.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report. openjpeg-1.3-5.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report. |
Created attachment 320837 [details] config.log from poppler-0.10 Description of problem: Poppler 0.10 fails to use libopenjpeg because libopenjpeg has undefined references to floor, ceilf, floorf, lrintf, and pow. Attempts to build the source RPM for libopenjpeg results in a failed patch. I will attach relevant output to this bug. Also, it would appear that the openjpeg packages have not been rebuilt since Fedora 9. Version-Release number of selected component (if applicable): 1.3-2.fc9 How reproducible: Attempt to configure poppler-0.10 (using source from poppler site). Note that it does not use libopenjpeg (and advises you to use it). Examine config.log and see that the libopenjpeg test program failed to compile due to the aforementioned undefined references.