Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280458 - net-misc/openvpn-2.1_rc19 fails to emerge
Summary: net-misc/openvpn-2.1_rc19 fails to emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 OS X
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-05 14:16 UTC by Gabriel Sztorc
Modified: 2010-07-10 18:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,26.04 KB, text/plain)
2009-08-05 14:18 UTC, Gabriel Sztorc
Details
patch to the ebuild to use the included darwin patch (openvpn-2.1_rc21.ebuild-darwin.patch,489 bytes, patch)
2009-12-16 14:16 UTC, Qiangning Hong
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!