Your message dated Sun, 22 Feb 2015 10:32:30 +0100
with message-id <[email protected]>
and subject line Re: Static libraries in libsuitesparse-dev should be compiled
with "-fPIC" option.
has caused the Debian Bug report #684116,
regarding Static libraries in libsuitesparse-dev should be compiled with
"-fPIC" option.
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
684116: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=684116
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libsuitesparse-dev
Version: 1:3.4.0-2
Dear libsuitesparse-dev maintainer,
The package is really useful for many scientific software.
However, The shared library files (*.so) are not available in Matlab.
For example, when I compile my mex file with the option
"-lcholmod /usr/lib/atlas-base/atlas/liblapack.a
/usr/lib/atlas-base/atlas/libblas.a",
Matlab crashes because
/usr/lib/libcholmod.so.1.7.1+00496421 cholmod_super_numeric+005621
tries to call
/usr/local/MATLAB/R2011b/bin/glnxa64/mkl.so+00973020 dpotrf+000076
When I used MUMPS library as "-ldmumps_seq", the situation was same.
However, when I directly assign the static libraries,
"/usr/lib/libdmumps_seq.a /usr/lib/libmumps_common_seq.a \
/usr/lib/libmpiseq_seq.a /usr/lib/libpord_seq.a",
it worked properly.
To link suitesparse, I guess I should list up the static libraries directly.
However, this link failed because the static libraries are not compiled
with the option '-fPIC'.
If possible, could you compile the static libraries with -fPIC ?
--- End Message ---
--- Begin Message ---
Dear Makoto,
On Tue, 7 Aug 2012 15:59:46 +0900 Makoto Yamashita
<[email protected]> wrote:
> Package: libsuitesparse-dev
> Version: 1:3.4.0-2
> However, The shared library files (*.so) are not available in Matlab.
> For example, when I compile my mex file with the option
> "-lcholmod /usr/lib/atlas-base/atlas/liblapack.a
> /usr/lib/atlas-base/atlas/libblas.a",
> Matlab crashes because
> /usr/lib/libcholmod.so.1.7.1+00496421 cholmod_super_numeric+005621
> tries to call
> /usr/local/MATLAB/R2011b/bin/glnxa64/mkl.so+00973020 dpotrf+000076
>
> When I used MUMPS library as "-ldmumps_seq", the situation was same.
> However, when I directly assign the static libraries,
> "/usr/lib/libdmumps_seq.a /usr/lib/libmumps_common_seq.a \
> /usr/lib/libmpiseq_seq.a /usr/lib/libpord_seq.a",
> it worked properly.
> To link suitesparse, I guess I should list up the static libraries directly.
> However, this link failed because the static libraries are not compiled
> with the option '-fPIC'.
>
> If possible, could you compile the static libraries with -fPIC ?
Compiling static libraries with -fPIC is strongly discouraged by the
Debian Policy. Quoting §10.2:
“As to the static libraries, the common case is not to have relocatable
code, since there is no benefit, unless in specific cases; therefore the
static version must not be compiled with the -fPIC flag. Any exception
to this rule should be discussed on the mailing list
[email protected], and the reasons for compiling with the
-fPIC flag must be recorded in the file README.Debian.”
I understand that you would like to have a special exception to this
rule in order to use the package in certain specific circumstances under
MATLAB. I don't think this special use case warrants an exception,
especially given the fact that MATLAB is not free software. As a
consequence, I am closing this issue. I would rather encourage you to
recompile SuiteSparse from source with the -fPIC flag.
Phillip: please note that your patch does not address the issue, because
libsuitesparseconfig is only a very tiny library which does not contain
the numerical routines; moreover I removed the _pic version in version
4.4.3-1 of the package that is currently waiting in the NEW queue.
Finally, note that I had not received your email because you had sent it
to [email protected] which does not CC the maintainer;
you should have also included [email protected]
(see /usr/share/doc/debian/bug-maint-info.txt.gz for details)
Cheers,
--
.''`. Sébastien Villemot
: :' : Debian Developer
`. `' http://sebastien.villemot.name
`- GPG Key: 4096R/381A7594
signature.asc
Description: This is a digitally signed message part
--- End Message ---
--
debian-science-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers