as summary, openvpn fail to build here if I do enable the static use flag, need to say that my LDFLAGS are set as follow: "-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common -Wl,--build-id" #emerge -pqv =net-misc/openvpn-2.1.0-r1 [ebuild R ] net-misc/openvpn-2.1.0-r1 USE="examples iproute2 ipv6 passwordsave ssl static* threads -eurephia -minimal -pam -pkcs11 (-selinux)" #emerge --info =net-misc/openvpn-2.1.0-r1 dobbia space02 # emerge --info =net-misc/openvpn-2.1.0-r1 Portage 2.2_rc67 (default/linux/amd64/10.0/no-multilib, gcc-4.4.4, glibc-2.11.2-r0, 2.6.34.1-vs2.3.0.36.30.4.pre8 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.34.1-vs2.3.0.36.30.4.pre8-x86_64-Intel-R-_Core-TM-_i7_CPU_930_@_2.80GHz-with-gentoo-2.0.1 Timestamp of tree: Sat, 24 Jul 2010 01:15:01 +0000 app-shells/bash: 4.0_p38 dev-lang/python: 2.6.5-r2, 3.1.2-r3 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.1-r1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.65 sys-devel/automake: 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.4-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=core2 -msse4 -mcx16 -msahf -O2 -pipe -msse4.1 -msse4.2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=core2 -msse4 -mcx16 -msahf -O2 -pipe -msse4.1 -msse4.2" DISTDIR="/g/distfiles" FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common -Wl,--build-id" LINGUAS="it" MAKEOPTS="-j16" PKGDIR="/g/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/g/tmp" PORTDIR="/g/portage/" PORTDIR_OVERLAY="/g/ovl" SYNC="rsync://sources.pnpitalia.it/gentoo-portage" USE="acl amd64 berkdb bitmap-fonts bzip2 caps cli cracklib crypt cups cxx dri gdbm gpm hpn iconv ipv6 isdnlog midi mmx modules mudflap ncurses nls nptl nptlonly openmp pcre perl ppds pppd python readline reflection session spl sse sse2 ssl sysfs tcpd truetype-fonts type1-fonts unicode userlocales xorg zlib" ALSA_PCM_PLUGINS="null" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="ncurses text" LINGUAS="it" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="dummy fbdev vesa vga radeon radeonhd" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= net-misc/openvpn-2.1.0-r1 was built with the following: USE="examples iproute2 ipv6 passwordsave ssl threads -eurephia -minimal -pam -pkcs11 (-selinux) -static"
Created attachment 240049 [details] build log build log from MAKEOPTS=-j1 emerge -1av openvpn
Created attachment 240051 [details] environment
Still fail if LDFLAGS are unset in make.conf
Upstream says their build system is very much in flux at the moment, and that things will change for 2.3. In which case I don't think we should try too hard to support it for now. I'll try to look at bug 385375, which might be of help for you.