[Pkg-openssl-devel] Bug#335486: openssl: FTBFS (ppc64): "gcc: '-b' must come at the start of the command line"

Andreas Jochens aj at andaco.de
Mon Oct 24 09:00:23 UTC 2005


Package: openssl
Version: 0.9.8a-2
Severity: normal
Tags: patch

When building 'openssl' on ppc64/unstable, I get the following error:

gcc -I. -I.. -I../include -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -bpowerpc64-linux -DB_ENDIAN -DTERMIO -O3 -g -Wall   -c -o cryptlib.o cryptlib.c
gcc: '-b' must come at the start of the command line
make[2]: *** [cryptlib.o] Error 1
make[2]: Leaving directory `/openssl-0.9.8a/crypto'


This problem had already been fixed in the openssl-0.9.7* package version
but it reappeared in openssl-0.9.8.

With the attached patch 'openssl' can be compiled on ppc64.

The patch replaces the problematic '-bpowerpc-linux' by '-m64' in two places
in the 'debian-ppc64' target definition in Configure. 

Additionally, the patch removes 'linux_ppc64.o' from the 'debian-ppc64'
target because it causes the compilation to fail.


Regards
Andreas Jochens

diff -urN ../tmp-orig/openssl-0.9.8a/Configure ./Configure
--- ../tmp-orig/openssl-0.9.8a/Configure	2005-10-24 09:36:59.000000000 +0200
+++ ./Configure	2005-10-24 09:37:41.000000000 +0200
@@ -337,7 +337,7 @@
 "debian-openbsd-i386",  "gcc:-DL_ENDIAN -DTERMIOS -O3 -g -m486::(unknown):::BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}:dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 "debian-openbsd-mips","gcc:-O2 -g -DL_ENDIAN::(unknown)::BN_LLONG MD2_CHAR RC4_INDEX RC4_CHAR DES_UNROLL DES_RISC2 DES_PTR BF_PTR:::::::::::::dlfcn:bsd-gcc-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 "debian-powerpc","gcc:-DB_ENDIAN -DTERMIO -O3 -g -Wall::-D_REENTRANT::-ldl:BN_LLONG DES_UNROLL DES_RISC2 DES_PTR MD2_CHAR RC4_INDEX::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
-"debian-ppc64","gcc:-bpowerpc64-linux -DB_ENDIAN -DTERMIO -O3 -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL:linux_ppc64.o:::::::::::dlfcn:linux-shared:-fPIC:-bpowerpc64-linux:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
+"debian-ppc64","gcc:-m64 -DB_ENDIAN -DTERMIO -O3 -g -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_RISC1 DES_UNROLL::::::::::::dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 "debian-s390","gcc:-DB_ENDIAN -DTERMIO -O3 -g -Wall::-D_REENTRANT::-ldl:BN_LLONG::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", 
 "debian-sh3",   "gcc:-DL_ENDIAN -DTERMIO -O3 -g -Wall::-D_REENTRANT::-ldl:BN_LLONG::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 "debian-sh4",   "gcc:-DL_ENDIAN -DTERMIO -O3 -g -Wall::-D_REENTRANT::-ldl:BN_LLONG::::::::::::dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",




More information about the Pkg-openssl-devel mailing list