On Sun, Apr 07, 2013 at 11:57:26PM +0800, Hailei Hu wrote:

> hi,everyone!
>   I am trying to compile a x64 version of openssl 1.0.1e on Ubuntu 12.10
> x64. I use the following command:
> 
> ./Configure linux-generic64

Try a more sensible target:

        $ ./Configure LIST | grep '^linux.*64'
        linux-generic64
        linux-ia64
        linux-ia64-ecc
        linux-ia64-icc
        linux-ppc64
        linux-x86_64
        linux64-s390x
        linux64-sparcv9

The "linux-generic64" target appears to be an incomplete template for
actual 64-bit CPUs:

*** linux-generic64
$cc           = gcc
$cflags       = -DTERMIO -O3 -Wall
$thread_cflag = -D_REENTRANT
$lflags       = -ldl
$bn_ops       = SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL BF_PTR
$perlasm_scheme = void
$dso_scheme   = dlfcn
$shared_target= linux-shared
$shared_cflag = -fPIC
$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)

vs. say:

*** linux-x86_64
$cc           = gcc
$cflags       = -m64 -DL_ENDIAN -DTERMIO -O3 -Wall
$thread_cflag = -D_REENTRANT
$lflags       = -ldl
$bn_ops       = SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL
$cpuid_obj    = x86_64cpuid.o
$bn_obj       = x86_64-gcc.o x86_64-mont.o x86_64-mont5.o x86_64-gf2m.o 
modexp512-x86_64.o
$aes_obj      = aes-x86_64.o vpaes-x86_64.o bsaes-x86_64.o aesni-x86_64.o 
aesni-sha1-x86_64.o
$md5_obj      = md5-x86_64.o
$sha1_obj     = sha1-x86_64.o sha256-x86_64.o sha512-x86_64.o
$rc4_obj      = rc4-x86_64.o rc4-md5-x86_64.o
$wp_obj       = wp-x86_64.o
$cmll_obj     = cmll-x86_64.o cmll_misc.o
$modes_obj    = ghash-x86_64.o
$perlasm_scheme = elf
$dso_scheme   = dlfcn
$shared_target= linux-shared
$shared_cflag = -fPIC
$shared_ldflag = -m64
$shared_extension = .so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
$multilib     = 64

-- 
        Viktor.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to