i cleaned up the 0.9.7g ebuild and added support for cross-compiling, but it needs to be tested if you're happy with 0.9.7g, then just change '-ppc64' to '~ppc64'
Created attachment 59467 [details] openssl-0.9.7g-output.txt I get this, when I try to compile it.
well, either the ppc64 team is going to have to fix this or someone has to give me an account on a ppc64 box ... ive asked before but no one has granted me access
This patch gets it along a little further
Created attachment 59514 [details, diff] openssl-ppc64-no-blinux-ppc64.patch this sed's out that silly -blinux-ppc64 gorp since "-b" is only needed for cross compile and we're compiling native. Secondly -b should be one of the first params anyway - long story short, not needed - now we get a new error
make[2]: Leaving directory `/var/tmp/portage/openssl-0.9.7g/work/openssl- 0.9.7g/crypto/ui' making all in crypto/krb5... make[2]: Entering directory `/var/tmp/portage/openssl-0.9.7g/work/openssl- 0.9.7g/crypto/krb5' powerpc64-unknown-linux-gnu-gcc -I.. -I../.. -I../../include -fPIC - DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 - DB_ENDIAN -DTERMIO -Wall -c -o krb5_asn.o krb5_asn.c powerpc64-unknown-linux-gnu-ar r ../../libcrypto.a krb5_asn.o powerpc64-unknown-linux-gnu-ranlib ../../libcrypto.a || echo Never mind. make[2]: Leaving directory `/var/tmp/portage/openssl-0.9.7g/work/openssl- 0.9.7g/crypto/krb5' make[2]: Entering directory `/var/tmp/portage/openssl-0.9.7g/work/openssl- 0.9.7g' make[3]: Entering directory `/var/tmp/portage/openssl-0.9.7g/work/openssl- 0.9.7g' libs='-L. '; for i in crypto; do \ if [ "crypto" = "ssl" -a -n "" ]; then \ libs=" $libs"; \ fi; \ ( set -x; powerpc64-unknown-linux-gnu-gcc -bpowerpc64-linux \ -shared -o lib$i.so.0.9.7 \ -Wl,-soname=lib$i.so.0.9.7 \ -Wl,-Bsymbolic \ -Wl,--whole-archive lib$i.a \ -Wl,--no-whole-archive $libs -ldl -lc ) || exit 1; \ libs="-l$i $libs"; \ done + rm -f libcrypto.so.0 + rm -f libcrypto.so.0 + powerpc64-unknown-linux-gnu-gcc -bpowerpc64-linux -shared -o libcrypto.so.0.9.7 -Wl,-soname=libcrypto.so.0.9.7 -Wl,-Bsymbolic -Wl,--whole- archive libcrypto.a -Wl,--no-whole-archive -L. -ldl -lc + ln -s libcrypto.so.0.9.7 libcrypto.so.0 + rm -f libcrypto.so powerpc64-unknown-linux-gnu-gcc: couldn't run `/usr/powerpc64-unknown-linux- gnu/gcc-bin/3.4.3/powerpc64-linux-gcc-3.4.3': No such file or directory + rm -f libcrypto.so + rm -f libcrypto.so.0.9.7 make[3]: *** [do_gnu-shared] Error 1 make[3]: *** Waiting for unfinished jobs.... + ln -s libcrypto.so.0 libcrypto.so make[3]: Leaving directory `/var/tmp/portage/openssl-0.9.7g/work/openssl- 0.9.7g' make[2]: *** [libcrypto.so.0.9.7] Error 2 make[2]: Leaving directory `/var/tmp/portage/openssl-0.9.7g/work/openssl- 0.9.7g' make[1]: *** [shared] Error 2 make[1]: Leaving directory `/var/tmp/portage/openssl-0.9.7g/work/openssl- 0.9.7g/crypto' make: *** [sub_all] Error 1 !!! ERROR: dev-libs/openssl-0.9.7g failed. !!! Function src_compile, Line 107, Exitcode 2 !!! make all failed !!! If you need support, post the topmost build error, NOT this status message.
ok, Markus gave me a login to his ppc64 box the additional error was basically the same ... the configure script was forcing the -b flag into the shared library flags patched Configure and everything worked nicely so i've added ~ppc64 to 0.9.7g