compile openssl 1.0.1e failed on Ubuntu 12.10 x64

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

compile openssl 1.0.1e failed on Ubuntu 12.10 x64

Hailei Hu
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
make

but finally receive the following errors:

../libcrypto.a(eng_rsax.o): In function `e_rsax_bn_mod_exp':
eng_rsax.c:(.text+0x132f): undefined reference to `mod_exp_512'
../libcrypto.a(eng_rsax.o): In function `e_rsax_rsa_mod_exp':
eng_rsax.c:(.text+0x1c08): undefined reference to `mod_exp_512'
eng_rsax.c:(.text+0x22a8): undefined reference to `mod_exp_512'
../libcrypto.a(e_rc4_hmac_md5.o): In function `rc4_hmac_md5_cipher':
e_rc4_hmac_md5.c:(.text+0x44e): undefined reference to `rc4_md5_enc'
e_rc4_hmac_md5.c:(.text+0x4f1): undefined reference to `rc4_md5_enc'
collect2: error: ld returned 1 exit status
make[2]: *** [link_app.] Error 1
make[2]: Leaving directory `/opt/openssl-1.0.1e/apps'
make[1]: *** [openssl] Error 2
make[1]: Leaving directory `/opt/openssl-1.0.1e/apps'
make: *** [build_apps] Error 1

I googled the web, but did not find any solution. How could I get it work?
Thanks for any help!
Reply | Threaded
Open this post in threaded view
|

Re: compile openssl 1.0.1e failed on Ubuntu 12.10 x64

Viktor Dukhovni
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                    [hidden email]
Automated List Manager                           [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: compile openssl 1.0.1e failed on Ubuntu 12.10 x64

Hailei Hu
Thank you, Viktor. I compile it successfully using target  linux-x86_64.
Thanks again.


On Mon, Apr 8, 2013 at 12:34 AM, Viktor Dukhovni <[hidden email]> wrote:
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                    [hidden email]
Automated List Manager                           [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: compile openssl 1.0.1e failed on Ubuntu 12.10 x64

Krzysztof Konopko


2013/4/8 Hailei Hu <[hidden email]>
Thank you, Viktor. I compile it successfully using target  linux-x86_64.
Thanks again.


On Mon, Apr 8, 2013 at 12:34 AM, Viktor Dukhovni <[hidden email]> wrote:
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                    [hidden email]
Automated List Manager                           [hidden email]