[erlang-questions] Erlang crypto_drv in R13B02/03 fails to load on amd64-Solaris2.10
Fri Nov 20 22:58:55 CET 2009
Peter-Henry Mander <> wrote:
>A useful point, but no. I've been careful to ensure that the build is 64 bit:
OK, it was just a first guess.:-)
>Björn-Egil Dahlberg and Sverker Eriksson suggested that linker flags
>"-Wl,-Bsymbolic" applied to crypto_drv.so build might offer respite,
>but this was unsuccessful. I may have stuck in the wrong place, mind
Hm, they should of course know more about the Erlang/OTP build than I
do, but the few words that are recognizable from the error message, like
"relocation error" and "does not fit", don't really suggest that it is
an issue with symbol resolution I think.
My next guess would be a -fpic vs -fPIC problem when compiling
crypto_drv - in many cases / architectures you can "get away" with using
-fpic which is supposedly slightly more efficient, but my understanding
is that -fPIC should always work and is sometimes required. Of course if
your build actually used -fPIC (likely), this is moot.
But then I recognized one more word from the message: "main". This kind
of contradicts what I wrote above, but surely there shouldn't be a
"main" symbol in crypto_drv. What does 'nm' say?
More information about the erlang-questions