[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linking problems with mutex and zsyrk_
From: |
Daniel J Sebald |
Subject: |
Re: Linking problems with mutex and zsyrk_ |
Date: |
Sat, 25 Oct 2008 19:15:10 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020 |
Daniel J Sebald wrote:
I've been compiling recent versions of Octave on openSUSE 10.3.
(openSUSE has a pre-3.0 version, 2.9.12, that doesn't load version 7 mat
files, or even handle the load/save options all that well.) I've tried
the latest stable release (3.0.3), and that compiles fine. I've also
tried the latest mercurial source, and that fails at link time with
undefined library references:
pthread_mutexattr_init
pthread_mutexattr_settype
pthread_mutexattr_destroy
zsyrk_
What I notice about the mutex class functions is that they are declared
as a class member function in the file oct-mutex.cc, but nowhere do they
actually appear to be defined.
What the issue is with zsyrk_ from CMatrix.cc I'm not sure.
The link in the /src directory is successful if I add -lpthread and -lblas to
the list of libraries. (The link command between the source control code and
3.0.3 looks pretty much the same, i.e., no library has been lost along the
way.) So it is one of two things:
1) Some code is included that should be conditioned out with a preprocessor
statement.
2) A library hasn't been added that should be added.
In the case of the mutex code I might guess 2, that the -lpthread needs to be
added to the list of libraries somewhere. For the zsyrk_ I would guess 1,
because there are a lot of blas functions and I find it hard to believe that
zsyrk_ is the only one used in the circumstance that the blas library is used.
Dan