Costinelkmz / iphone-elite

Automatically exported from code.google.com/p/iphone-elite
GNU General Public License v2.0
1 stars 1 forks source link

Problem building vfdecrypt under cygwin, fix attached (cause: wrong build command in doc) #50

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install cygwin (uname -a : CYGWIN_NT-6.0 blah 1.5.24(0.156/4/2)
2007-01-31 10:57 i686 Cygwin), load packages for developement (incl.
openssl-devel v 0.9.8g-1) 
1. Download vfdecrypt-linux.tar.gz file (filesize 12292, sha1
1a0d2785e9dbaea385a0b66a49a9c206f13fd955) from
http://code.google.com/p/iphone-elite/downloads/detail?name=vfdecrypt-linux.tar.
gz&can=2&q=
3. Unpack, in vfdecrypt.c you'll find build command in the first comment,
it reads 'compile: gcc -o vfdecrypt  vfdecrypt.c -lssl'
4. Issue build command

What is the expected output? What do you see instead?
Expected output is vfdecrypt executable and some build infos. Instead:
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0x6c0):
undefined reference to `_HMAC_Init_ex'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0x6db):
undefined reference to `_HMAC_Update'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0x6f5):
undefined reference to `_HMAC_Final'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0x75b):
undefined reference to `_AES_cbc_encrypt'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0x7ac):
undefined reference to `_EVP_CIPHER_CTX_init'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0x7e4):
undefined reference to `_EVP_des_ede3_cbc'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0x811):
undefined reference to `_EVP_DecryptInit_ex'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0x841):
undefined reference to `_EVP_DecryptUpdate'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0x894):
undefined reference to `_EVP_DecryptFinal_ex'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0x8db):
undefined reference to `_EVP_CIPHER_CTX_cleanup'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0x933):
undefined reference to `_EVP_CIPHER_CTX_init'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0x938):
undefined reference to `_EVP_des_ede3_cbc'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0x965):
undefined reference to `_EVP_DecryptInit_ex'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0x9a1):
undefined reference to `_EVP_DecryptUpdate'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0x9f4):
undefined reference to `_EVP_DecryptFinal_ex'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0xa38):
undefined reference to `_EVP_CIPHER_CTX_cleanup'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0xae4):
undefined reference to `_PKCS5_PBKDF2_HMAC_SHA1'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0xba6):
undefined reference to `_PKCS5_PBKDF2_HMAC_SHA1'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0xbc7):
undefined reference to `_EVP_CIPHER_CTX_init'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0xbe3):
undefined reference to `_EVP_des_ede3_cbc'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0xc12):
undefined reference to `_EVP_DecryptInit_ex'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0xc4d):
undefined reference to `_EVP_DecryptUpdate'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0xca0):
undefined reference to `_EVP_DecryptFinal_ex'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0xce4):
undefined reference to `_EVP_CIPHER_CTX_cleanup'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0x1433):
undefined reference to `_HMAC_CTX_init'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0x1438):
undefined reference to `_EVP_sha1'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0x1462):
undefined reference to `_HMAC_Init_ex'
/cygdrive/c/Users/JfK/AppData/Local/Temp/ccQ6zpas.o:vfdecrypt.c:(.text+0x1480):
undefined reference to `_AES_set_decrypt_key'
Info: resolving _optarg by linking to __imp__optarg (auto-import)
Info: resolving _optopt by linking to __imp__optopt (auto-import)
collect2: ld returned 1 exit status

Of course no executable is created.

What version of the product are you using? On what operating system?
Windows Vista Home Basic, cygwin (uname -a : CYGWIN_NT-6.0 blah
1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin), incl. openssl-devel v 0.9.8g-1

Please provide any additional information below.
Quick fix: issue command gcc -o vfdecrypt  vfdecrypt.c -lssl -lcrypto.
Adding crypto library fixes issue

Original issue reported on code.google.com by 16iph...@gmail.com on 2 Dec 2007 at 10:54