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
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.
Added in cvs. Thanks!