?
Solved

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

Posted on 2009-12-16
6
Medium Priority
?
648 Views
Last Modified: 2012-05-08
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
0
Comment
Question by:blakogre
  • 3
  • 3
6 Comments
 
LVL 14

Expert Comment

by:svgmuc
ID: 26064502
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
 
LVL 9

Author Comment

by:blakogre
ID: 26064558
I'm no linux guru: how can I make sure it's part of the libraries, etc?
0
 
LVL 14

Expert Comment

by:svgmuc
ID: 26064664
I have just checked the website, their current version is 0.7.2 - I would recommend downloading this one and starting over.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 9

Author Comment

by:blakogre
ID: 26064694
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
 
LVL 14

Expert Comment

by:svgmuc
ID: 26064937
I have no unix machine handy right now, can't check it myself. Will do so later if nobody responded.
0
 
LVL 9

Accepted Solution

by:
blakogre earned 0 total points
ID: 26073671
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month15 days, left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question