+ gcc .so.0.9.6 -shared -o libcrypto.so.0.9.6 -Wl,-soname=libcrypto.so.0.9.6 -Wl ,-Bsymbolic -Wl,--whole-archive libcrypto.a -Wl,--no-whole-archive -L. -lc gcc: .so.0.9.6: No such file or directory make[2]: *** [do_gnu-shared] Error 1 make[2]: Leaving directory `/var/tmp/portage/openssl-0.9.6d/work/openssl-0.9.6d' make[1]: *** [libcrypto] Error 2 make[1]: Leaving directory `/var/tmp/portage/openssl-0.9.6d/work/openssl-0.9.6d' make: *** [sub_all] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 3, Exitcode 2 !!! (no error message) !!! emerge aborting on /usr/portage/dev-libs/openssl/openssl-0.9.6d.ebuild .
what version of gcc?
ah, gcc-3.1 here according to the e-mail
Ok the submitter didn't put any detail in here, so here is some... The error you get is: + gcc .so.0.9.6 -shared -o libcrypto.so.0.9.6 -Wl,-soname=libcrypto.so.0.9.6 -Wl,-Bsymbolic -Wl,--whole-archive libcrypto.a -Wl,--no-whole-archive -L. -lc gcc: .so.0.9.6: No such file or directory make[2]: *** [do_gnu-shared] Error 1 make[2]: Leaving directory `/var/tmp/portage/openssl-0.9.6d/work/openssl-0.9.6d' make[1]: *** [libcrypto] Error 2 make[1]: Leaving directory `/var/tmp/portage/openssl-0.9.6d/work/openssl-0.9.6d' make: *** [sub_all] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 3, Exitcode 2 !!! (no error message) My work-around is: go to /var/tmp/portage/openssl-0.9.6d/work/openssl-0.9.6d/ enter: gcc -shared -o libcrypto.so.0.9.6 -Wl,-soname=libcrypto.so.0.9.6 -Wl,-Bsymbolic -Wl,--whole-archive libcrypto.a -Wl,--no-whole-archive -L. -lc -ldl Then, edit the Makefile, go to line 262 which should be "do_gnu-shared:", remove the next few lines fo that your file looks like this: do_gnu-shared: DETECT_GNU_LD=${CC} -v 2>&1 | grep '^gcc' >/dev/null 2>&1 && \ collect2=`gcc -print-prog-name=collect2 2>&1` && \ [ -n "$$collect2" ] && \ my_ld=`$$collect2 --help 2>&1 | grep Usage: | sed 's/^Usage: *\([^ ][^ ]*\).*/\1/'` && \ [ -n "$$my_ld" ] && \ $$my_ld -v 2>&1 | grep 'GNU ld' >/dev/null 2>&1 then run make and make install.... Worked for me. You will have to inject the build, with emerge -i dev-libs/openssl-0.9.6d
Also, mine was with gcc 2.95.3, doing a plain-jane no tweaks install.
Huh? Didn't put any detail? I put just as much as you did. Oh, well. I created a cleaner fix by adding openssl-0.9.6d-r1.ebuild to the cvstree.