Date: Sat, 17 Jan 2015 05:05:48 +1100 From: Dewayne Geraghty <dewayne.geraghty@heuristicsystems.com.au> To: "freebsd-ports@freebsd.org" <freebsd-ports@FreeBSD.org> Subject: Installing openssl without gcc or binutils dependents Message-ID: <54B952FC.4020807@heuristicsystems.com.au>
next in thread | raw e-mail | index | archive | help
I would appreciate advise on the best approach to install openssl that has been built with gcc48 without needing to install gcc and binutils into the target machine? Background Attempting to run sshd or openssl resulted in signal 4, illegal instruction. The target systems are i386 boxes running the VIA C3 chipset using 10.1 Stable and packages built from svnlite update of ports from 2014-12-30. The suspect file is libcrypto.so.8. All systems are built using clang and custom compiler directives, in this case, -march=c3-2 -mtune=c3-2 and other attempts of building used CPUTYPE=c3-2 which generated the same signal 4 when run on the target platform; march=pentium3 had same result. The build occurs within an i386 jail on an amd64 FreeBSD 10.1 Stable, base system. Solution Inserted into /usr/ports/security/openssl/Makefile USE_GCC= yes resulted in a successful installation and running of sshd and curl which was the objective. However the openssl now has a dependency on gcc48 and binutils, which wont fit into the embedded image of 64MB (and isn't needed) I would prefer to use pkg tools to install applications rather than the crude workaround of tar -xpPf /kits/openssl-1.0.1_16.txz /usr/local/bin /usr/local/lib I suspect something in /usr/ports/Mk would need a flag ?? Advise appreciated... Kind regards, Dewayne. PS Fortunate aside, geom_eli only requires openssl header files, otherwise the base system would also require gcc48 for these target machines
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54B952FC.4020807>