Issue during compile/make of IPSec-tools-0.6.6 on centos4/rhel4

Using the following
http://sourceforge.net/projects/ipsec-tools/files/ipsec-tools/0.6.6/ipsec-tools-0.6.6.tar.bz2/download

Need assistance to successfully install ipsec-tools 6.6. or higher on this platform

[root@localhost ip6.6build]# make
make  all-recursive
make[1]: Entering directory `/home/ip6.6build'
Making all in src
make[2]: Entering directory `/home/ip6.6build/src'
Making all in include-glibc
make[3]: Entering directory `/home/ip6.6build/src/include-glibc'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/ip6.6build/src/include-glibc'
Making all in libipsec
make[3]: Entering directory `/home/ip6.6build/src/libipsec'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/ip6.6build/src/libipsec'
Making all in setkey
make[3]: Entering directory `/home/ip6.6build/src/setkey'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/ip6.6build/src/setkey'
Making all in racoon
make[3]: Entering directory `/home/ip6.6build/src/racoon'
gcc -DHAVE_CONFIG_H -I. -I/home/ipsec-tools-0.6.6/src/racoon -I../.. -I/home/ipsec-tools-0.6.6/src/racoon/../libipsec   -D_GNU_SOURCE -include /home/ipsec-tools-0.6.6/src/include-glibc/glibc-bugs.h -I/home/ipsec-tools-0.6.6/src/include-glibc -I./src/include-glibc  -I.//home/ipsec-tools-0.6.6/src/racoon/missing -D_GNU_SOURCE -include /home/ipsec-tools-0.6.6/src/include-glibc/glibc-bugs.h -I/home/ipsec-tools-0.6.6/src/include-glibc -I../../src/include-glibc -DSYSCONFDIR=\"/usr/local/etc\" -DADMINPORTDIR=\"/usr/local/var/racoon\" -g -O2  -Wall -Werror -Wno-unused -DEAYDEBUG -o crypto_openssl_test.o -c /home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:84:30: crypto/sha2/sha2.h: No such file or directory
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c: In function `eay_hmacsha2_512_init':
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:1702: warning: implicit declaration of function `EVP_sha2_512'
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:1702: warning: passing arg 2 of `eay_hmac_init' makes pointer from integer without a cast
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c: In function `eay_hmacsha2_512_final':
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:1720: error: `SHA512_DIGEST_LENGTH' undeclared (first use in this function)
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:1720: error: (Each undeclared identifier is reported only once
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:1720: error: for each function it appears in.)
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c: In function `eay_hmacsha2_384_init':
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:1759: warning: implicit declaration of function `EVP_sha2_384'
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:1759: warning: passing arg 2 of `eay_hmac_init' makes pointer from integer without a cast
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c: In function `eay_hmacsha2_384_final':
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:1777: error: `SHA384_DIGEST_LENGTH' undeclared (first use in this function)
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c: In function `eay_hmacsha2_256_init':
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:1816: warning: implicit declaration of function `EVP_sha2_256'
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:1816: warning: passing arg 2 of `eay_hmac_init' makes pointer from integer without a cast
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c: In function `eay_hmacsha2_256_final':
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:1834: error: `SHA256_DIGEST_LENGTH' undeclared (first use in this function)
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c: In function `eay_sha2_512_init':
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:1974: error: `SHA512_CTX' undeclared (first use in this function)
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:1974: error: `c' undeclared (first use in this function)
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:1976: warning: implicit declaration of function `SHA512_Init'
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c: In function `eay_sha2_512_update':
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:1986: warning: implicit declaration of function `SHA512_Update'
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:1986: error: `SHA512_CTX' undeclared (first use in this function)
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:1986: error: syntax error before ')' token
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c: In function `eay_sha2_512_final':
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:1997: error: `SHA512_DIGEST_LENGTH' undeclared (first use in this function)
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2000: warning: implicit declaration of function `SHA512_Final'
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2000: error: `SHA512_CTX' undeclared (first use in this function)
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2000: error: syntax error before ')' token
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c: In function `eay_sha2_512_hashlen':
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2023: error: `SHA512_DIGEST_LENGTH' undeclared (first use in this function)
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c: In function `eay_sha2_384_init':
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2034: error: `SHA384_CTX' undeclared (first use in this function)
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2034: error: `c' undeclared (first use in this function)
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2036: warning: implicit declaration of function `SHA384_Init'
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c: In function `eay_sha2_384_update':
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2046: warning: implicit declaration of function `SHA384_Update'
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2046: error: `SHA384_CTX' undeclared (first use in this function)
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2046: error: syntax error before ')' token
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c: In function `eay_sha2_384_final':
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2057: error: `SHA384_DIGEST_LENGTH' undeclared (first use in this function)
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2060: warning: implicit declaration of function `SHA384_Final'
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2060: error: `SHA384_CTX' undeclared (first use in this function)
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2060: error: syntax error before ')' token
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c: In function `eay_sha2_384_hashlen':
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2083: error: `SHA384_DIGEST_LENGTH' undeclared (first use in this function)
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c: In function `eay_sha2_256_init':
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2094: error: `SHA256_CTX' undeclared (first use in this function)
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2094: error: `c' undeclared (first use in this function)
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2096: warning: implicit declaration of function `SHA256_Init'
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c: In function `eay_sha2_256_update':
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2106: warning: implicit declaration of function `SHA256_Update'
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2106: error: `SHA256_CTX' undeclared (first use in this function)
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2106: error: syntax error before ')' token
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c: In function `eay_sha2_256_final':
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2117: error: `SHA256_DIGEST_LENGTH' undeclared (first use in this function)
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2120: warning: implicit declaration of function `SHA256_Final'
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2120: error: `SHA256_CTX' undeclared (first use in this function)
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2120: error: syntax error before ')' token
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c: In function `eay_sha2_256_hashlen':
/home/ipsec-tools-0.6.6/src/racoon/crypto_openssl.c:2143: error: `SHA256_DIGEST_LENGTH' undeclared (first use in this function)
make[3]: *** [crypto_openssl_test.o] Error 1
make[3]: Leaving directory `/home/ip6.6build/src/racoon'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ip6.6build/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ip6.6build'
make: *** [all] Error 2
LVL 9
blakogreAsked:
Who is Participating?
 
blakogreAuthor Commented:
I ran configure out of a build directory.
If you run it out of the un-tarred directory -- and made a few hacks on the files -- works fine.

Had to: edit ip.h and remove #include <asm/byteorder.h>
replacing  with #define __LITTLE_ENDIAN_BITFIELD

Then edit types.h to comment out lines 158/159.

Then compile/works....
0
 
svgmucCommented:
You either have to make sure that SHA2 is part of your libraries and it comes with the respective sha2.h header, or you can disable SHA2 support in IPSEC tools with an argument to ./configure, probably --disable-SHA2.
0
 
blakogreAuthor Commented:
I'm no linux guru: how can I make sure it's part of the libraries, etc?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
svgmucCommented:
I have just checked the website, their current version is 0.7.2 - I would recommend downloading this one and starting over.
0
 
blakogreAuthor Commented:
I have the exact same issue with that version, as well as .7.3, as well as the .8 alphas.

However, an IPSec document from MS i'm working off of, indicates the level they used was .6.6, so I thought I'd give that a shot.  Regardless of the version, though, I'm encountering the same issues/errors.

If it's an openssl issue, which needs to be resolved first, I just need those steps/info.
0
 
svgmucCommented:
I have no unix machine handy right now, can't check it myself. Will do so later if nobody responded.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.