Compilation fails with: "ld: unknown option: -soname" Seems like this flag is invalid on OS X. Error message in context: * Building down-root plugin make -j3 CC=i686-apple-darwin9-gcc TARGET_DIR=/Users/gsz/Gentoo/usr/lib/openvpn i686-apple-darwin9-gcc -march=nocona -O2 -pipe -fomit-frame-pointer -Wall -fPIC -c -I../.. down-root.c down-root.c: In function 'daemonize': down-root.c:156: warning: 'daemon' is deprecated (declared at /usr/include/stdlib.h:283) i686-apple-darwin9-gcc -march=nocona -O2 -pipe -fomit-frame-pointer -Wall -fPIC -shared -Wl,-soname,openvpn-down-root.so -o openvpn-down-root.so down-root.o -lc ld: unknown option: -soname collect2: ld returned 1 exit status make: *** [down-root.so] Error 1 * ERROR: net-misc/openvpn-2.1_rc19 failed: * make failed * * Call stack: * ebuild.sh: 64: <call call-ebuildshell 'src_compile'> * environment: 276: <call src_compile> * environment:2360: emake CC=$(tc-getCC) TARGET_DIR="${EPREFIX}"/usr/$(get_libdir)/${PN} || die "make failed";
Created attachment 200258 [details] build.log
Bah, this is a OSX issue. But, it must be in the Makefile/build system because I don't see anything in the ebuild.
Created attachment 213202 [details, diff] patch to the ebuild to use the included darwin patch There is already a darwin patch in ${FILESDIR}, but it is not used in any .ebuild file. This ebuild patch uses it. The compilation and installation passed after apply this patch.
it was just as simple as adding back the epatch, sorry this had to take so long folks!