[Haskell-cafe] OpenSSL.Digest linking error: EVP_mdc2

Donn Cave donn at avvanta.com
Mon Jul 7 01:51:00 EDT 2008

Quoth "Ken Takusagawa" <ken.takusagawa.2 at gmail.com>:

| $ ghc --make test-hopenssl.hs  -lcrypto
| [1 of 1] Compiling Main             ( test-hopenssl.hs, test-hopenssl.o )
| Linking test-hopenssl ...
| /tmp/ken/lib/hopenssl-1.0/ghc-6.8.2/libHShopenssl-1.0.a(Digest.o): In
| function `s2O8_info':
| (.text+0xf3a): undefined reference to `EVP_mdc2'
| /tmp/ken/lib/hopenssl-1.0/ghc-6.8.2/libHShopenssl-1.0.a(Digest.o): In
| function `s2TQ_info':
| (.text+0x1435): undefined reference to `EVP_mdc2'
| collect2: ld returned 1 exit status

I see the following in the Configure file for openssl-0.9.8h:


I don't know why this would be, but I infer that the function hopenssl
was looking for is commonly missing in SSL builds.

	Donn Cave, donn at avvanta.com

More information about the Haskell-Cafe mailing list