Bug 474087

Summary: cfitsio and cfitsio-devel have inconsistent versions
Product: [Fedora] Fedora Reporter: malcolm <mal42north>
Component: CCfitsAssignee: Sergio Pascual <sergio.pasra>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 10CC: matt, mmahut, sergio.pasra
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-12-21 08:35:35 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:

Description malcolm 2008-12-02 05:36:40 UTC
Description of problem
When building a simple test application to open a fits file the executable 
Aborts with the message shown under "Actual results"

The offending piece of test code works perfectly on FC9

Version-Release number of selected component (if applicable):
3.1 or 3.06, take your pick

How reproducible:
 
100%

Steps to Reproduce:
1. Compile example code for fits reader given in the CCfits documentation
2. Run the object file with a legal fits file to read.
3. 
  
Actual results:
ERROR: Mismatch in the version of the fitsio.h include file used to build
the CFITSIO library, and the version included by the application program:
   Version used to build the CFITSIO library   = 3.100000
   Version included by the application program = 3.060000
terminate called after throwing an instance of 'CCfits::FITS::CantOpen'
Aborted


Expected results:
Executable will read FITS primary header and data


Additional info:

Comment 1 Matthew Truch 2008-12-02 14:24:53 UTC
Hmmmm.

Would you please do a:
$ rpm -q cfitsio cfitsio-devel CCfits CCfits-devel
and post the output?

Comment 2 malcolm 2008-12-03 05:33:42 UTC
Output is
cfitsio-3.100-1.fc10.x86_64
cfitsio-devel-3.100-1.fc10.x86_64
CCfits-2.0-1.fc9.x86_64
CCfits-devel-2.0-1.fc9.x86_64

/usr/include/cfitsio/fitsio.h contains the line
#define CFITSIO_VERSION 3.10
in agreement with the rpm -q.

I find it curious that both the CCfits rpms appear to be from fc9, which I just confirmed does ship with version 3.06 of cfitsio, so this may be the problem.

I recorded all the extra packages I downloaded, so can tell you that I installed
the fits RPM's with the following command:

yum install cfitsio cfitsio-devel CCfits CCfits-docs CCfits-devel

Comment 3 Matthew Truch 2008-12-03 14:27:50 UTC
Ok.  So CCfits needs to be rebuilt because of the version mismatch between it and cfitsio.  cfitsio has his annoying ‘feature’ that although the major number of the library doesn't change (and nor does the API), it refuses to run if the versions don't match perfectly.  

Sergio, I'm asigning this to CCfits; please bump the release of CCfits and rebuild.

Comment 4 Sergio Pascual 2008-12-03 15:01:25 UTC
I was planning to upgrade to CCfits 2.1 one of this days anyway...

Comment 5 Fedora Update System 2008-12-03 17:27:24 UTC
CCfits-2.1-1.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/CCfits-2.1-1.fc10

Comment 6 Fedora Update System 2008-12-07 04:21:09 UTC
CCfits-2.1-1.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 CCfits'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2008-10814

Comment 7 Fedora Update System 2008-12-21 08:35:32 UTC
CCfits-2.1-1.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.