Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 197796 - sci-libs/arpack symbol duplication with lapack
Summary: sci-libs/arpack symbol duplication with lapack
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-01 18:17 UTC by David Radice
Modified: 2007-11-02 13:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Modified version of the patch from http://news.tiker.net/node/373 (arpack-arscnd-3.patch,78.96 KB, patch)
2007-11-01 18:20 UTC, David Radice
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Radice 2007-11-01 18:17:23 UTC
Both arpack and lapack exports the symbol "SECOND", the first as a subroutine, the latter as a function. Usually the linker does a good job linking with the right symbol, but sometimes it does the wrong thing so apps built with lapack and arpack can behave very strangely and/or segfault. 

This issue seems to be x86 related, and x86_64 seems to be unaffected.

See the Debian bug report for more infos:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=315570 

The only known solution is to patch arpack and change SECOND --> ARSCND (or something else) on the x86 arch. I am going to attach a slightly modified version (to make the patch works with the Gentoo patchset) of the patch found here:

http://news.tiker.net/node/373
Comment 1 David Radice 2007-11-01 18:20:54 UTC
Created attachment 134930 [details, diff]
Modified version of the patch from http://news.tiker.net/node/373

This should be applied after the autotools patch. The gcc-4.2 patch is merged into this patch: gcc-4.2.patch patches a file which is removed by the new patch, I have modified the new arcscnd.f file to avoid the known issue with the gfortran-4.2 in the same way as the gcc-4.2.patch was doing with second.f.
Comment 2 Sébastien Fabbro (RETIRED) gentoo-dev 2007-11-02 13:15:13 UTC
Added in cvs. Thanks!