Bug 504706 - Blitz packages for core 10 won't compile
Summary: Blitz packages for core 10 won't compile
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: blitz
Version: 10
Hardware: x86_64
OS: Linux
low
high
Target Milestone: ---
Assignee: Sergio Pascual
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-06-08 21:50 UTC by Tim Wilson
Modified: 2009-06-13 10:08 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-06-13 10:08:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.