Bug 467661

Summary: libopenjpeg has undefined references
Product: [Fedora] Fedora Reporter: Alex Wauck <alex.wauck>
Component: openjpegAssignee: Rex Dieter <rdieter>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 10CC: 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:
Description Flags
config.log from poppler-0.10
none
Results of attempting to build from source RPM
none
patch to force libm dependency at build none

Description Alex Wauck 2008-10-20 03:27:14 UTC
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.

Comment 1 Alex Wauck 2008-10-20 03:28:58 UTC
Created attachment 320838 [details]
Results of attempting to build from source RPM

Comment 2 Callum Lerwick 2008-10-20 17:26:45 UTC
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/ ...

Comment 3 Bug Zapper 2008-11-26 04:01:29 UTC
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

Comment 4 Dominik 'Rathann' Mierzejewski 2009-03-01 19:14:20 UTC
(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.

Comment 5 Moritz Barsnick 2009-03-18 18:06:53 UTC
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.

Comment 6 Moritz Barsnick 2009-03-18 18:09:05 UTC
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".

Comment 7 Moritz Barsnick 2009-05-18 11:23:09 UTC
*ping*

Does my attachment in comment #6 not fix the original issue properly? It does for me...

Comment 8 Rex Dieter 2009-06-19 13:22:28 UTC
I've hit this too, I'll take a look at integrating the patch, thanks.

Comment 9 Rex Dieter 2009-06-19 15:00:51 UTC
Fixed in rawhide.

Comment 10 Fedora Update System 2009-06-19 15:18:52 UTC
openjpeg-1.3-5.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/openjpeg-1.3-5.fc11

Comment 11 Fedora Update System 2009-06-19 15:19:36 UTC
openjpeg-1.3-5.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/openjpeg-1.3-5.fc10

Comment 12 Fedora Update System 2009-06-24 19:20:13 UTC
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

Comment 13 Fedora Update System 2009-06-24 19:23:57 UTC
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

Comment 14 Fedora Update System 2009-07-16 06:51:04 UTC
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.

Comment 15 Fedora Update System 2009-07-16 06:53:54 UTC
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.