Package: blitz++
Version: 1:0.8-4
Severity: normal

Hi,

I've had problems building a shared library against the Blitz++ Debian
package. According to the Blitz++ maintainer, the correct way to solve this
problem is to compile Blitz++ as a shared library, by passing
--enable-shared to configure.

The list archives appear to be somewhat broken, but you can see the
beginning of the relevant thread at 

http://sourceforge.net/mailarchive/forum.php?thread_id=10475329&forum_id=45523

The relevant message (which does not currently appear in the archive) is
appended below.

If necessary, I expect that I could come up with a small example that
exhibits the error, but hopefully that will not be necessary.

                                                                 Faheem.

************************************************************************

On Wed, 2006-05-31 at 16:03 -0400, Faheem Mitha wrote:

> The current Debian package does not contain a shared version of the 
> library. Should it? Currently, linking against blitz amounts to linking 
> against the static version, I presume.

Yes, and that is the problem.  You cannot build a shared object like
your Debian package was trying to do and link against code that has not
been compiled as position independent.  Thus, the blitz library must be
compiled with the -fPIC flag, and that is what the configure option
--enable-shared does for you.

> Hmm. Ok. Would shared and static versions of the library still be created 
> with the --enable-shared option, or would one have to do two separate 
> builds?

A static version is built by default (--enable-static is the default, so
this flag is unnecessary).  With --enable-shared you get both static and
shared versions of the blitz library.  The libblitz.la file works in
conjunction with libtool to select the appropriate library version at
link time.  In your Debian bug report, you should tell them to use
--enable-shared.

Regards, Julian C.

-- 
Dr. Julian C. Cummings                       E-mail: [EMAIL PROTECTED]
California Institute of Technology           Phone:  626-395-2543
1200 E. California Blvd., Mail Code 158-79   Fax:    626-584-5917
Pasadena, CA 91125                           Office: 125 Powell-Booth

-- System Information:
Debian Release: 3.1
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'stable'), (50, 'unstable'), (50, 
'testing'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.27.040914
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages blitz++ depends on:
ii  blas                          1.1-14     Basic Linear Algebra Subroutines, 
ii  g++                           4:3.3.5-3  The GNU C++ compiler

blitz++ recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to