Subject: pkg/37511: Facing problems in compilation of racoon in ipsec tools-0.5.2
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <ravic@dynalogindia.com>
List: pkgsrc-bugs
Date: 12/10/2007 09:40:01
>Number:         37511
>Category:       pkg
>Synopsis:       Facing problems in compilation of racoon in ipsec tools-0.5.2
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 10 09:40:00 +0000 2007
>Originator:     Ravi Chobey
>Release:        
>Organization:
Dynalog India Ltd
>Environment:
Linux localhost.localdomain 2.6.21-1.3194.fc7 #1 SMP Wed May 23 22:35:01 EDT 2007 i686 i686 i386 GNU/Linux

>Description:
Hi,

I am trying to compile racoon,but facing a lot of problems in crypto_openssl.c file.Please support me to sort this problem out.
I have downloaded some 4 to 5 patches.But i am not able to sort this problem.


Making install in racoon
make[2]: Entering directory `/root/Desktop/ipsec-tools-0.5.2/src/racoon'
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I./../libipsec   -include ./src/include-glibc/glibc-bugs.h -I./src/include-glibc -I./src/include-glibc  -I./../../src/racoon/missing -include ../../src/include-glibc/glibc-bugs.h -I../../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 ./crypto_openssl.c
In file included from ./crypto_openssl.c:79:
./../../src/racoon/missing/crypto/sha2/sha2.h:103: error: conflicting types for ‘SHA256_CTX’
/usr/include/openssl/sha.h:134: error: previous declaration of ‘SHA256_CTX’ was here
./../../src/racoon/missing/crypto/sha2/sha2.h:108: error: conflicting types for ‘SHA512_CTX’
/usr/include/openssl/sha.h:180: error: previous declaration of ‘SHA512_CTX’ was here
./../../src/racoon/missing/crypto/sha2/sha2.h:117: error: conflicting types for ‘SHA256_Init’
/usr/include/openssl/sha.h:141: error: previous declaration of ‘SHA256_Init’ was here
./../../src/racoon/missing/crypto/sha2/sha2.h:118: error: conflicting types for ‘SHA256_Update’
/usr/include/openssl/sha.h:142: error: previous declaration of ‘SHA256_Update’ was here
./../../src/racoon/missing/crypto/sha2/sha2.h:119: error: conflicting types for ‘SHA256_Final’
/usr/include/openssl/sha.h:143: error: previous declaration of ‘SHA256_Final’ was here
./../../src/racoon/missing/crypto/sha2/sha2.h:123: error: conflicting types for ‘SHA384_Init’
/usr/include/openssl/sha.h:184: error: previous declaration of ‘SHA384_Init’ was here
./../../src/racoon/missing/crypto/sha2/sha2.h:124: error: conflicting types for ‘SHA384_Update’
/usr/include/openssl/sha.h:185: error: previous declaration of ‘SHA384_Update’ was here
./../../src/racoon/missing/crypto/sha2/sha2.h:125: error: conflicting types for ‘SHA384_Final’
/usr/include/openssl/sha.h:186: error: previous declaration of ‘SHA384_Final’ was here
./../../src/racoon/missing/crypto/sha2/sha2.h:129: error: conflicting types for ‘SHA512_Init’
/usr/include/openssl/sha.h:188: error: previous declaration of ‘SHA512_Init’ was here
./../../src/racoon/missing/crypto/sha2/sha2.h:130: error: conflicting types for ‘SHA512_Update’
/usr/include/openssl/sha.h:189: error: previous declaration of ‘SHA512_Update’ was here
./../../src/racoon/missing/crypto/sha2/sha2.h:131: error: conflicting types for ‘SHA512_Final’
/usr/include/openssl/sha.h:190: error: previous declaration of ‘SHA512_Final’ was here
cc1: warnings being treated as errors
./crypto_openssl.c: In function ‘eay_check_x509sign’:
./crypto_openssl.c:882: warning: passing argument 2 of ‘d2i_X509’ from incompatible pointer type
./crypto_openssl.c: In function ‘eay_get_x509sign’:
./crypto_openssl.c:1031: warning: passing argument 3 of ‘d2i_PrivateKey’ from incompatible pointer type
make[2]: *** [crypto_openssl_test.o] Error 1
make[2]: Leaving directory `/root/Desktop/ipsec-tools-0.5.2/src/racoon'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/root/Desktop/ipsec-tools-0.5.2/src'
make: *** [install-recursive] Error 1

Regards,
Ravi


>How-To-Repeat:

>Fix: