Dirk Eddelbuettel a écrit : > On 19 December 2007 at 11:53, Brian Gough wrote: > | At Tue, 18 Dec 2007 09:23:30 -0600, > | Dirk Eddelbuettel wrote: > | > > /usr/lib/libgsl.so: undefined reference to `cblas_zher2k' > | > > /usr/lib/libgsl.so: undefined reference to `cblas_strsv' > | > > /usr/lib/libgsl.so: undefined reference to `cblas_zdotc_sub' > | > [ many more of these ] > | > > | > Can you see a way forward on this? Is is maybe a question of link order, > ie > | > could -lgslcblas -lgsl be an answer? > | > | The option -Wl,--as-needed needs to be disabled in some way, if it's > | applied globally it's certainly not compatible with libraries that > | depend on other libraries (surely a fairly common occurrence?). The > | link order is not a factor.
I think this case is pretty rare. If a library depends on on other libraries, it usually links with them. Given the very few packages that have a problem with this linker option, it seems to confirm that this is rare. > | Maybe there is some official way to turn off that feature in qmake, or > | to make it behave more intelligently with regard to external libraries > | vs Qt libraries. Otherwise one could put the gsl library at the end > | of the libraries list with -Wl,--no-as-needed: > | > | .... -Wl,--no-as-needed -lgsl -lgslcblas -lm > > Thanks for the follow-up -- I agree with your point. Now we need to see if > Debian is set on --as-needed wand wants it globally. Which could be an issue > as you politely point out... > >From my point of view using -Wl,--no-as-needed is only a workaround to the problem. I really think that libgsl should be linked with libgslcblas. -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [EMAIL PROTECTED] | [EMAIL PROTECTED] `- people.debian.org/~aurel32 | www.aurel32.net -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]