[Openswan Users] CentOS 5.2 RPMs

Weedy weedy2887 at gmail.com
Wed Dec 10 17:54:59 EST 2008


Paul Wouters wrote:
> On Wed, 10 Dec 2008, Weedy wrote:
>
>> I have been able to build 2.6.18 using both the fedora spec and the spec
>> from 2.6.14-1.el5.
>> When I tried to build the Klips module with the fedora spec I got stuck.
>> Has anyone built working RPMs of openswan lately?
>
> What's the build error? Try 2.6.20rc1 (from /testing), it fixes a logic
> error in ipsec_kversion.h that might affect centos builds.
>
> Paul
It explodes nicely

cc -DHAVE_OCF=1 
-I/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/ports/linux/include 
-I/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/ports/linux/include 
-I/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/ports/linux/include 
-I/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/ports/linux/include 
-I/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/../include
-I. -I/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/linux/net/ipsec
-I/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/linux/include
-I/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1
-I/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/include   -DDEBUG -g
-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686
-mtune=generic -fasynchronous-unwind-tables -fPIE -pie -Wall
-Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wbad-function-cast 
-DNAT_TRAVERSAL -DKLIPS   -c -o cryptodev.o
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:73:28:
error: openssl/crypto.h: No such file or directory
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:74:28:
error: openssl/buffer.h: No such file or directory
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:75:25:
error: openssl/bio.h: No such file or directory
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:76:25:
error: openssl/err.h: No such file or directory
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:77:28:
error: openssl/pkcs12.h: No such file or directory
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:78:25:
error: openssl/pem.h: No such file or directory
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:94:
warning: type defaults to 'int' in declaration of 'BIGNUM'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:94:
error: expected ';', ',' or ')' before '*' token
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:127:
error: expected declaration specifiers or '...' before 'BIGNUM'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:
In function 'crparam2bn':
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:143:
warning: implicit declaration of function 'BN_bin2bn'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:143:
error: 'a' undeclared (first use in this function)
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:143:
error: (Each undeclared identifier is reported only once
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:143:
error: for each function it appears in.)
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:
At top level:
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:164:
error: expected declaration specifiers or '...' before 'BIGNUM'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:
In function 'mp2bn':
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:166:
error: 'a' undeclared (first use in this function)
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:
At top level:
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:180:
warning: type defaults to 'int' in declaration of 'BIGNUM'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:180:
error: expected ';', ',' or ')' before '*' token
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:244:
error: expected declaration specifiers or '...' before 'BIGNUM'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:244:
error: expected declaration specifiers or '...' before 'BIGNUM'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:
In function 'cryptodev_asym':
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:248:
error: 'r' undeclared (first use in this function)
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:253:
error: 's' undeclared (first use in this function)
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:261:
error: too many arguments to function 'crparam2bn'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:263:
error: too many arguments to function 'crparam2bn'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:
In function 'cryptodev_rsa_mod_exp_crt':
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:280:
error: 'BIGNUM' undeclared (first use in this function)
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:280:
error: expected ';' before 'D'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:281:
error: 'BN_CTX' undeclared (first use in this function)
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:281:
error: 'ctx' undeclared (first use in this function)
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:286:
warning: implicit declaration of function 'BN_CTX_new'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:288:
error: 'D' undeclared (first use in this function)
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:288:
error: too many arguments to function 'mp2bn'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:289:
error: 'S' undeclared (first use in this function)
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:289:
error: too many arguments to function 'mp2bn'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:290:
error: 'P' undeclared (first use in this function)
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:290:
error: too many arguments to function 'mp2bn'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:291:
error: 'DP' undeclared (first use in this function)
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:291:
error: too many arguments to function 'mp2bn'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:292:
error: 'Q' undeclared (first use in this function)
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:292:
error: too many arguments to function 'mp2bn'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:293:
error: 'DQ' undeclared (first use in this function)
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:293:
error: too many arguments to function 'mp2bn'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:294:
error: 'QI' undeclared (first use in this function)
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:294:
error: too many arguments to function 'mp2bn'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:297:
warning: implicit declaration of function 'bn2crparam'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:311:
warning: implicit declaration of function 'BN_num_bytes'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:311:
error: too many arguments to function 'cryptodev_asym'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:316:
warning: implicit declaration of function 'bn2mp'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:320:
warning: implicit declaration of function 'BN_CTX_free'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:
In function 'cryptodev_mod_exp':
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:331:
error: 'BIGNUM' undeclared (first use in this function)
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:331:
error: expected ';' before 'r0'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:332:
error: 'BN_CTX' undeclared (first use in this function)
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:332:
error: 'ctx' undeclared (first use in this function)
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:338:
error: 'a' undeclared (first use in this function)
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:338:
error: too many arguments to function 'mp2bn'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:339:
error: 'p' undeclared (first use in this function)
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:339:
error: too many arguments to function 'mp2bn'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:340:
error: 'm' undeclared (first use in this function)
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:340:
error: too many arguments to function 'mp2bn'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:341:
error: 'r0' undeclared (first use in this function)
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:341:
error: too many arguments to function 'mp2bn'
/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/lib/libcrypto/liboswcrypto/cryptodev.c:353:
error: too many arguments to function 'cryptodev_asym'
make[4]: *** [cryptodev.o] Error 1
make[4]: Leaving directory
`/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/OBJ.linux.i386/lib/libcrypto/liboswcrypto'
make[3]: *** [programs] Error 1
make[3]: Leaving directory
`/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/OBJ.linux.i386/lib/libcrypto'
make[2]: *** [programs] Error 1
make[2]: Leaving directory
`/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/OBJ.linux.i386/lib'
make[1]: *** [programs] Error 1
make[1]: Leaving directory
`/home/rahmed/rpmbuild/BUILD/openswan-2.6.20rc1/OBJ.linux.i386'
make: *** [programs] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.58319 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.58319 (%build)



More information about the Users mailing list