strange compile errors...

Atheus

Diamond Member
Jun 7, 2005
7,313
2
0
I'm trying to compile rainbowcrack 1.2 on debian sarge and it's complaining about the openssl headers:

g++ Public.cpp ChainWalkContext.cpp HashAlgorithm.cpp HashRoutine.cpp RainbowTableGenerate.cpp -lssl -march=pentium3 -O3 -o rtgen
ChainWalkContext.cpp:14:26: openssl/rand.h: No such file or directory
ChainWalkContext.cpp: In member function `void
...

But i already built and installed openssl and symlinked the include directory:

monolith:~/rainbowcrack-1.2************# ls -l openssl

total 1144
-rw-r--r-- 1 root root 4854 2007-02-27 16:32 aes.h
-rw-r--r-- 1 root root 40292 2007-02-27 16:32 asn1.h
-rw-r--r-- 1 root root 18383 2007-02-27 16:32 asn1_mac.h
-rw-r--r-- 1 root root 26671 2007-02-27 16:32 asn1t.h
-rw-r--r-- 1 root root 27580 2007-02-27 16:32 bio.h
-rw-r--r-- 1 root root 5073 2007-02-27 16:32 blowfish.h
-rw-r--r-- 1 root root 20395 2007-02-27 16:32 bn.h
-rw-r--r-- 1 root root 4229 2007-02-27 16:32 buffer.h
-rw-r--r-- 1 root root 4315 2007-02-27 16:32 cast.h
-rw-r--r-- 1 root root 1267 2007-02-27 16:32 comp.h
-rw-r--r-- 1 root root 4080 2007-02-27 16:32 conf_api.h
-rw-r--r-- 1 root root 9372 2007-02-27 16:32 conf.h
-rw-r--r-- 1 root root 18556 2007-02-27 16:32 crypto.h
-rw-r--r-- 1 root root 10718 2007-02-27 16:32 des.h
-rw-r--r-- 1 root root 18221 2007-02-27 16:32 des_old.h
-rw-r--r-- 1 root root 7260 2007-02-27 16:32 dh.h
-rw-r--r-- 1 root root 9215 2007-02-27 16:32 dsa.h
-rw-r--r-- 1 root root 13871 2007-02-27 16:32 dso.h
-rw-r--r-- 1 root root 540 2007-02-27 16:32 ebcdic.h
-rw-r--r-- 1 root root 9656 2007-02-27 16:32 ec.h
-rw-r--r-- 1 root root 35327 2007-02-27 16:32 engine.h
-rw-r--r-- 1 root root 9539 2007-02-27 16:32 e_os2.h
-rw-r--r-- 1 root root 11948 2007-02-27 16:32 err.h
-rw-r--r-- 1 root root 32594 2007-02-27 16:32 evp.h
-rw-r--r-- 1 root root 4646 2007-02-27 16:32 fips.h
-rw-r--r-- 1 root root 2878 2007-02-27 16:32 fips_rand.h
-rw-r--r-- 1 root root 4297 2007-02-27 16:32 hmac.h
-rw-r--r-- 1 root root 4340 2007-02-27 16:32 idea.h
-rw-r--r-- 1 root root 7636 2007-02-27 16:32 krb5_asn.h
-rw-r--r-- 1 root root 5888 2007-02-27 16:32 kssl.h
-rw-r--r-- 1 root root 7450 2007-02-27 16:32 lhash.h
-rw-r--r-- 1 root root 3866 2007-02-27 16:32 md2.h
-rw-r--r-- 1 root root 4646 2007-02-27 16:32 md4.h
-rw-r--r-- 1 root root 4646 2007-02-27 16:32 md5.h
-rw-r--r-- 1 root root 3859 2007-02-27 16:32 mdc2.h
-rw-r--r-- 1 root root 33095 2007-02-27 16:32 objects.h
-rw-r--r-- 1 root root 96535 2007-02-27 16:32 obj_mac.h
-rw-r--r-- 1 root root 23830 2007-02-27 16:32 ocsp.h
-rw-r--r-- 1 root root 5218 2007-02-27 16:32 opensslconf.h
-rw-r--r-- 1 root root 3752 2007-02-27 16:32 opensslv.h
-rw-r--r-- 1 root root 4911 2007-02-27 16:32 ossl_typ.h
-rw-r--r-- 1 root root 2863 2007-02-27 16:32 pem2.h
-rw-r--r-- 1 root root 24618 2007-02-27 16:32 pem.h
-rw-r--r-- 1 root root 12080 2007-02-27 16:32 pkcs12.h
-rw-r--r-- 1 root root 15793 2007-02-27 16:32 pkcs7.h
-rw-r--r-- 1 root root 5423 2007-02-27 16:32 rand.h
-rw-r--r-- 1 root root 4278 2007-02-27 16:32 rc2.h
-rw-r--r-- 1 root root 3692 2007-02-27 16:32 rc4.h
-rw-r--r-- 1 root root 4661 2007-02-27 16:32 rc5.h
-rw-r--r-- 1 root root 4267 2007-02-27 16:32 ripemd.h
-rw-r--r-- 1 root root 14086 2007-02-27 16:32 rsa.h
-rw-r--r-- 1 root root 105410 2007-02-27 16:32 safestack.h
-rw-r--r-- 1 root root 5016 2007-02-27 16:32 sha.h
-rw-r--r-- 1 root root 3744 2007-02-27 16:32 ssl23.h
-rw-r--r-- 1 root root 10716 2007-02-27 16:32 ssl2.h
-rw-r--r-- 1 root root 20937 2007-02-27 16:32 ssl3.h
-rw-r--r-- 1 root root 74521 2007-02-27 16:32 ssl.h
-rw-r--r-- 1 root root 4380 2007-02-27 16:32 stack.h
-rw-r--r-- 1 root root 13331 2007-02-27 16:32 symhacks.h
-rw-r--r-- 1 root root 9141 2007-02-27 16:32 tls1.h
-rw-r--r-- 1 root root 3552 2007-02-27 16:32 tmdiff.h
-rw-r--r-- 1 root root 4253 2007-02-27 16:32 txt_db.h
-rw-r--r-- 1 root root 3439 2007-02-27 16:32 ui_compat.h
-rw-r--r-- 1 root root 16892 2007-02-27 16:32 ui.h
-rw-r--r-- 1 root root 44860 2007-02-27 16:32 x509.h
-rw-r--r-- 1 root root 22023 2007-02-27 16:32 x509v3.h
-rw-r--r-- 1 root root 16311 2007-02-27 16:32 x509_vfy.h

So how could it not find the files?
 

Cerebus451

Golden Member
Nov 30, 2000
1,425
0
76
Originally posted by: FoBoT
wrong forum

True dat.

But to answer the question, the compiler will not look in the current directory for include files by default (have to add a -I. to the compile line). As is, it would be looking in /usr/include (or /usr/local/include) for the openssl directory.
 

Atheus

Diamond Member
Jun 7, 2005
7,313
2
0
Originally posted by: Cerebus451
Originally posted by: FoBoT
wrong forum

True dat.

But to answer the question, the compiler will not look in the current directory for include files by default (have to add a -I. to the compile line). As is, it would be looking in /usr/include (or /usr/local/include) for the openssl directory.

Ha! I'm an idiot. Thanks.

Too much web programming.