Sick! You are right, there is a problem with stock openssl on Mac.
My configure script picked up local openssl 0.9.7 copy I have compiled
from sources. When I use the one that comes from fink I also have same
build error. You have two options:
    1) (prefered) get openssl 0.9.7 and compile it by yourself
    2) apply the attached patch (it is also check in cvs).



Thanks for bug report!
Aleksey

Thanks,


I did install libxml2-2.5.7, libxslt-1.0.30, and openssl-0.9.7b.

My first problem was that configure would not find libxml2. After I solved that I did get the link error:

ld: Undefined symbols:
_ASN1_TIME_check

that I reported in my first message.


After I got your reply I tried the patch and it fixed the problem. But, since you recommended using openssl 0.9.7, I ran configure again and I saw this:

checking for libxml2 libraries >= 2.4.24... yes ('2.5.7')
checking for libxslt libraries >= 1.0.20... no
checking for openssl libraries >= 0.9.6... yes ('0.9.6')

So even though I did install libxslt and openssl-0.9.7 it did not find them. I figured I should run:


$ ./configure --with-libxml=/usr/local --with-libxslt=/usr/local --with-openssl=/usr/local/ssl

When I did this I got:

checking for libxml2 libraries >= 2.4.24... yes ('2.5.7')
checking for libxslt libraries >= 1.0.20... yes ('1.0.30')
checking for openssl libraries >= 0.9.6... yes ('0.9.7')

So far so good. But, now when I do make I get this:


Making all in apps
/bin/sh ../libtool --mode=link gcc -g -O2 -DXMLSEC_NO_XKMS=1 -o xmlsec1 xmlsec.o crypto.o cmdline.o ../src/openssl/libxmlsec1-openssl.la ../src/libxmlsec1.la -L/usr/local/lib -lxslt -lxml2 -lz -lpthread -lm -L/usr/local/lib -lxml2 -lz -lpthread -lm -L/usr/local/ssl/lib -lcrypto
gcc -g -O2 -DXMLSEC_NO_XKMS=1 -o .libs/xmlsec1 xmlsec.o crypto.o cmdline.o -L../src/openssl/.libs -lxmlsec1-openssl -L/usr/local/ssl/lib -L/usr/local/lib -L../src/.libs -lxmlsec1 -lxslt -lxml2 -lz -lpthread -lm -lcrypto
ld: Undefined symbols:
_AES_decrypt
_AES_encrypt
_AES_set_decrypt_key
_AES_set_encrypt_key
_ASN1_TIME_check
_CRYPTO_cleanup_all_ex_data
_EVP_CIPHER_CTX_set_padding
_EVP_MD_CTX_cleanup
_EVP_MD_CTX_init
_EVP_aes_128_cbc
_EVP_aes_192_cbc
_EVP_aes_256_cbc
_HMAC_CTX_cleanup
_HMAC_CTX_init
_OPENSSL_add_all_algorithms_noconf
make[2]: *** [xmlsec1] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Thanks for your help,


Dan Timis

_______________________________________________
xmlsec mailing list
[EMAIL PROTECTED]
http://www.aleksey.com/mailman/listinfo/xmlsec

Reply via email to