Bug 504706

Summary: Blitz packages for core 10 won't compile
Product: [Fedora] Fedora Reporter: Tim Wilson <tim.wilson>
Component: blitzAssignee: Sergio Pascual <sergio.pasra>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: 10CC: 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: 2009-06-13 10:08:43 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 Tim Wilson 2009-06-08 21:50:35 UTC
Description of problem:
Installed packages: blitz-0.9-7.fc9, blitz-devel-0.9.7.fc9; attempt to compile produces a blast of compile errors, too long to attach here. 

Version-Release number of selected component (if applicable):
0.9-7

How reproducible:
Every time

Steps to Reproduce:
1. Install packages
2. Include <blitz/array>
3. Try to compile
  
Actual results:
Many, many compile errors.

Expected results:
The code compiled fine on my old Fedora version, core 6. So I expected it might compile after upgrading to core 10. 


Additional info:
Uninstalling the packages mentioned above, and installing blitz version 0.9-7 from source, also produces (different) compile errors; but this can be fixed by adding "#include <cstdlib>" to funcs.h and mathfunc.h.

Comment 1 Sergio Pascual 2009-06-08 23:43:46 UTC
Please check if compiling with  
$ g++ myprogram.cc `pkg-config blitz --libs --cflags`
works

Comment 2 Tim Wilson 2009-06-09 15:22:11 UTC
Yep, it does work, like a charm. So I gather that I should generally use that pkg-config trick when compiling against any package, as a general rule? Sorry if I should've known that.

Comment 3 Sergio Pascual 2009-06-13 10:08:43 UTC
Blitz in fedora is patched to allow multilib installs, see bug #450999 for references. This means that part of the headers are in %libdir/blitz/include. The modified blitz.pc includes this header. You are always safe using pkg-config