Thanks Darryl. Here are the specific details of my system -

bash-3.00$ uname -a
Linux saumya.foobar.com 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:29:47 EST 2005
x86_64 x86_64 x86_64 GNU/Linux

bash-3.00$ gcc -v
Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-languages=c,c++,objc,java,f77
--enable-java-awt=gtk --host=x86_64-redhat-linux
Thread model: posix
gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)

Error on building openSSL on this machine - 
cryptlib.c:1: error: CPU you selected does not support x86-64
instruction set
make[3]: *** [cryptlib.o] Error 1
make[2]: *** [sub_all] Error 1
make[1]: *** [all] Error 2


As you can see, the GCC version I am using is older than what you have
mentioned. Could it be that this version does not support building
openSSL on 64-bit linux?

Thanks for the help,
Saumya
 

-----Original Message-----
From: Darryl Miles [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 14, 2006 5:03 PM
To: openssl-users@openssl.org
Subject: Re: Is openSSL supported on 64-bit Linux ?


I would guess anything within the last few years.


Lets take a system:

$ uname -a
Linux me.foobar.com 2.6.18 #1 SMP Sun Sep 24 21:09:55 BST 2006 x86_64
x86_64 x86_64 GNU/Linux

$ gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,java,f95,ada --enable-java-awt=gtk
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
--host=x86_64-redhat-linux
Thread model: posix
gcc version 4.0.2 20051125 (Red Hat 4.0.2-8)




And run:

$ tar -zxvf /tmp/openssl-0.9.8b.tar.gz
$ ./config
$ make
$ make test
$ echo $?
0
$


I have a native 64bit linux build:

$ ar xv libcrypto.a cryptlib.o
x - cryptlib.o
$ file cryptlib.o
cryptlib.o: ELF 64-bit LSB relocatable, AMD x86-64, version 1 (SYSV),
not stripped $ ldd ./apps/openssl
        libdl.so.2 => /lib64/libdl.so.2 (0x0000003ec9e00000)
        libc.so.6 => /lib64/libc.so.6 (0x0000003ec9900000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003ec9500000)




Maybe you can be more specific about your building problems, which 
distribution, which gcc, etc...

Darryl



Agarwal, Saumya wrote:
> Thanks for the replies. Let me clarify my question.
> 
> I get the following error when building OpenSSL 0.9.7c on 64-bit
Redhat
> Linux -
> cryptlib.c:1: error: CPU you selected does not support x86-64
> instruction set
> make[3]: *** [cryptlib.o] Error 1
> 
> Do we build OpenSSL libraries on 64-bit Linux ? If yes, could you let
me
> know the version of OpenSSL that can be built on 64-bit Linux ?
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to