Hi,

Many thanks for this info.

Thanks,
Kees

BTW. the lowest supported linux version for Suse is Suse 9, which has gcc 
3.3.3. The -m32 is already supported there.  You may consider to put gcc 3.3.3 
as minimum version? Unfortunatelly, I don't have a 64-bit box with this 
compiler to test it.

-----Original Message-----
From: Andy Polyakov via RT [mailto:[email protected]] 
Sent: Wednesday, 06 May, 2009 21:30
To: Kees Dekker
Cc: [email protected]
Subject: Re: [openssl.org #1917] build error in x86cpuid-elf.s on x64 linux

> The build of 32-bit openSSL (openssl-0.9.8k) fails on x64 systems with
> the following error (and more similar errors like these):
>  
> x86cpuid-elf.s:13: Error: suffix or operands invalid for `push'
>  
> This problem can be fixed by adding -m32 to Configure for the linux-elf
> configuration, see the diff:
>  
> diff Configure Configure.org
> 332c332
> < "linux-elf",  "gcc:-m32 -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer
> -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des}
> ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
> ---
>> "linux-elf",  "gcc:-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer
> -Wall::-D_REENTRANT::-ldl:BN_LLONG ${x86_gcc_des}
> ${x86_gcc_opts}:${x86_elf_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",

The suggested patch is not appropriate and won't be applied, because not
all gcc versions recognize -m32 as valid option. If you want to build
32-bit binaries on 64-bit system use './Configure linux-elf -m32'. A.



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

Reply via email to