Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 280458

Summary: net-misc/openvpn-2.1_rc19 fails to emerge
Product: Gentoo/Alt Reporter: Gabriel Sztorc <lispozord>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED FIXED    
Severity: normal CC: hongqn
Priority: High    
Version: unspecified   
Hardware: x86   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
patch to the ebuild to use the included darwin patch

Description Gabriel Sztorc 2009-08-05 14:16:13 UTC
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";
Comment 1 Gabriel Sztorc 2009-08-05 14:18:55 UTC
Created attachment 200258 [details]
build.log
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-08-07 21:45:47 UTC
Bah, this is a OSX issue. But, it must be in the Makefile/build system because I don't see anything in the ebuild.
Comment 3 Qiangning Hong 2009-12-16 14:16:14 UTC
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.
Comment 4 Fabian Groffen gentoo-dev 2010-07-10 18:32:56 UTC
it was just as simple as adding back the epatch, sorry this had to take so long folks!