Yes, these errors are during the link stage.  Your libcrypto.a should
contain the file des_enc.o which should contain DES_encrypt1.  If you can't
find that symbols then something has gone wrong with your build.  I don't
think LD_LIBRARY_PATH has any effect on Cygwin, but I'm not positive -- I
think the standard Windows PATH search is used. 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Friday, 22 October 2004 12:28 AM
To: [EMAIL PROTECTED]
Subject: collect2: ld returned 1 exit status


Hi,

when trying to compile OpenSSL_0_9_7d on my Win2k machine with Cygwin I
receive the following error:

collect2: ld returned 1 exit status

This should be related to the linker, correct? I have attached the part of
log file where the error occurs. Can anybody help? I donīt know if my
configuration is correct. Do I need to set up environment variables besides
of the LD_LIBRARY_PATH variable, which I have set to the ld.exe directory?

../libcrypto.a(c_ofb64.o)(.text+0x14e):c_ofb64.c: undefined reference to
`_CAST_ encrypt'
../libcrypto.a(c_ecb.o)(.text+0x75):c_ecb.c: undefined reference to
`_CAST_encry pt'
../libcrypto.a(c_ecb.o)(.text+0xc6):c_ecb.c: undefined reference to
`_CAST_decry pt'
../libcrypto.a(c_cfb64.o)(.text+0xca):c_cfb64.c: undefined reference to
`_CAST_e ncrypt'
../libcrypto.a(c_cfb64.o)(.text+0x1ba):c_cfb64.c: undefined reference to
`_CAST_ encrypt'
../libcrypto.a(bf_ofb64.o)(.text+0x14e):bf_ofb64.c: undefined reference to
`_BF_ encrypt'
../libcrypto.a(bf_cfb64.o)(.text+0xca):bf_cfb64.c: undefined reference to
`_BF_e ncrypt'
../libcrypto.a(bf_cfb64.o)(.text+0x1ba):bf_cfb64.c: undefined reference to
`_BF_ encrypt'
../libcrypto.a(xcbc_enc.o)(.text+0x1b9):xcbc_enc.c: undefined reference to
`_DES _encrypt1'
../libcrypto.a(xcbc_enc.o)(.text+0x2ba):xcbc_enc.c: undefined reference to
`_DES _encrypt1'
../libcrypto.a(xcbc_enc.o)(.text+0x463):xcbc_enc.c: undefined reference to
`_DES _encrypt1'
../libcrypto.a(xcbc_enc.o)(.text+0x55d):xcbc_enc.c: undefined reference to
`_DES _encrypt1'
collect2: ld returned 1 exit status
make[1]: *** [openssl] Error 1
make[1]: Leaving directory `/cygdrive/c/OpenSSL/openssl-0.9.7d/apps'
make: *** [sub_all] Error 1


I appreciate your support.

Best Regards,
Michael
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to