I recently tried to compile OpenSSL 1.0.1c with EC support in both 
CentOS 5/6. I encounter the following compilation error:

./Configure \
     --prefix=%{_prefix} \
     --openssldir=%{_sysconfdir}/pki/tls ${sslflags} \
     --enginesdir=%{_libdir}/openssl/engines \
     --with-krb5-flavor=MIT \
     --with-krb5-dir=%{_prefix} \
     enable-camellia enable-cms enable-md2 enable-rfc3779 \
     enable-seed enable-tlsext no-srp \
     zlib shared ${sslarch} %{?!nofips:fips}

gcc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include  -fPIC 
-DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN 
-DHAVE_DLFCN_H -DKRB5_MIT -m64 -DL_ENDIAN -DTERMIO -Wall -O3 -g -m64 
-mtune=nocona -m128bit-long-double -mmmx -msse3 -mfpmath=sse 
-Wa,--noexecstack -DPURIFY -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT 
-DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM 
-DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM 
-DGHASH_ASM   -c -o p_lib.o p_lib.c
p_lib.c:318: error: expected declaration specifiers or '...' before 'EC_KEY'
p_lib.c: In function 'EVP_PKEY_set1_EC_KEY':
p_lib.c:320: warning: implicit declaration of function 
'EVP_PKEY_assign_EC_KEY'
p_lib.c:320: error: 'key' undeclared (first use in this function)
p_lib.c:320: error: (Each undeclared identifier is reported only once
p_lib.c:320: error: for each function it appears in.)
p_lib.c:322: warning: implicit declaration of function 'EC_KEY_up_ref'
p_lib.c: At top level:
p_lib.c:326: error: expected '=', ',', ';', 'asm' or '__attribute__' 
before '*' token

The FIPS libraries are added and the source is patched using the Fedora 
18 patches. Can you please let me know what patch I should apply? Thank 
you for your help.

Regards,

Floren Munteanu

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to