<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>245181</bug_id>
          
          <creation_ts>2008-11-01 19:27 0000</creation_ts>
          <short_desc>net-misc/openvpn-2.1_rc13 fails to build with glibc-2.8</short_desc>
          <delta_ts>2008-11-02 18:14:36 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>2008.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>225459</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>graham@gmurray.org.uk</reporter>
          <assigned_to>cedk@gentoo.org</assigned_to>
          <cc>flameeyes@gentoo.org</cc>
    
    <cc>genzilla@boris64.net</cc>
    
    <cc>holger.hoffstaette@googlemail.com</cc>
    
    <cc>sandro.bonazzola@gmail.com</cc>
    
    <cc>willard.dawson@sungard.com</cc>

      

      
          <long_desc isprivate="0">
            <who>graham@gmurray.org.uk</who>
            <bug_when>2008-11-01 19:27:42 0000</bug_when>
            <thetext>if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.   -I. -I/usr/kerberos/include    -O2 -march=native -mtune=native -pipe -ggdb -D_REENTRANT -pthread -MT ssl.o -MD -MP -MF &quot;.deps/ssl.Tpo&quot; -c -o ssl.o ssl.c; \
        then mv -f &quot;.deps/ssl.Tpo&quot; &quot;.deps/ssl.Po&quot;; else rm -f &quot;.deps/ssl.Tpo&quot;; exit 1; fi
socket.c: In function ‘unix_socket_get_peer_uid_gid’:
socket.c:2737: error: storage size of ‘peercred’ isn’t known
make[2]: *** [socket.o] Error 1

emerge --info
Portage 2.2_rc12 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo-r2-ext4-2 i686)
=================================================================                                                   
System uname: Linux-2.6.27-gentoo-r2-ext4-2-i686-Intel-R-_Core-TM-2_CPU_6700_@_2.66GHz-with-glibc2.0                
Timestamp of tree: Sat, 01 Nov 2008 18:15:02 +0000                                                                  
app-shells/bash:     3.2_p39                                                                                        
dev-java/java-config: 1.3.7, 2.1.6-r1                                                                               
dev-lang/python:     2.4.4-r15, 2.5.2-r8                                                                            
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=native -mtune=native -pipe -ggdb&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind /var/lib/hsqldb&quot;
CONFIG_PROTECT_MASK=&quot;/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d&quot;
CXXFLAGS=&quot;-O2 -march=native -mtune=native -pipe -ggdb&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
EMERGE_DEFAULT_OPTS=&quot;--with-bdeps y&quot;
FEATURES=&quot;buildsyspkg distlocks installsources parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch&quot;
GENTOO_MIRRORS=&quot;http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.blueyonder.co.uk http://gentoo.tiscali.nl/ http://gentoo.mirror.solnet.ch http://pandemonium.tiscali.de/pub/gentoo/&quot;
LANG=&quot;en_GB.UTF-8&quot;
LC_ALL=&quot;en_GB.UTF-8&quot;
LDFLAGS=&quot;-Wl,-O1&quot;
LINGUAS=&quot;en_GB en fr_FR fr&quot;
MAKEOPTS=&quot;-j3&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/portage/local/layman/sunrise /usr/portage/local/layman/perl-experimental /usr/local/portage&quot;
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot;
USE=&quot;X a52 aac aalib acl acpi aim alsa apache2 arts audiofile avi bash-completion berkdb bluetooth bonobo branding browserplugin bzip2 bzlib cairo caps cddb cdparanoia cdr cjk clicracklib crypt cups curl cvs cxx dbus directfb doc dri dts dvd dvdr dvdread eds emacs emboss encode esd ethereal evo examples exif expat fam fbcon ffmpeg fftw flac fontconfig foomaticdb fortran ftp gcj gd gdbm gif glut gmp gnome gnome-keyring gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal htmlhandbook iconv icq idn ieee1394 imagemagick imlib ipv6 isdnlog jabber jack java javascript jbig jce jpeg jpeg2k junit kde kdehiddenvisibility kerberos ladspa latex lcms ldap leim libgda libnotify libsamplerate libwww lirc lm_sensors logrotate lua m17n-lib mad matroska mbox midi mikmod milter mime mmap mmx mng modplug mono mozilla mp3 mpeg mpi mplayer msn mudflap musepack ncurses nls nptl nptlonly nsplugin odbc offensive ogg oggvorbis openal opengl openmp oscar oss pam pcntl pcre pdf perl png postgres ppds pppd profile pulseaudio python qt3 qt3support qt4 quicktime readline recode reflection ruby sasl sdl session sharedmem sndfile snmp sockets sox speex spell spl sqlite sqlite3 sse sse2 ssl startup-notification subversion svg sysfs sysvipc tcl tcltk tcpd theora threads tiff tk truetype uicktime unicode usb v4l v4l2 vim-syntax vorbis wavpack win32codecs wmf wxwindows x264 x86 xattr xcb xface xine xml xml2 xorg xulrunner xv xvid yahoo zlib&quot; ALSA_CARDS=&quot;hda-intel&quot; ALSA_PCM_PLUGINS=&quot;adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol&quot; APACHE2_MODULES=&quot;actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias&quot; APACHE2_MPMS=&quot;worker&quot; CAMERAS=&quot;canon ptp2&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;keyboard mouse evdev&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;en_GB en fr_FR fr&quot; LIRC_DEVICES=&quot;asusdh&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;radeon vesa fbdev vga v4l&quot;
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mail123456@mail.bg</who>
            <bug_when>2008-11-01 20:24:07 0000</bug_when>
            <thetext>I can confirm this</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>genzilla@boris64.net</who>
            <bug_when>2008-11-01 20:54:42 0000</bug_when>
            <thetext>Exactly the same here on nearly every ~amd64 pc (3 in a row).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>holger.hoffstaette@googlemail.com</who>
            <bug_when>2008-11-01 21:10:50 0000</bug_when>
            <thetext>Generic bug w/ glibc 2.8. Submitter, please add to #225459
Fix is to define _GNU_SOURCE, e.g. like in:
http://bugs.gentoo.org/attachment.cgi?id=156073 or others.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>holger.hoffstaette@googlemail.com</who>
            <bug_when>2008-11-02 00:54:14 0000</bug_when>
            <thetext>Created an attachment (id=170483)
Patch for ebuild: include peercred patch

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>holger.hoffstaette@googlemail.com</who>
            <bug_when>2008-11-02 00:54:44 0000</bug_when>
            <thetext>Created an attachment (id=170485)
Patch to fix peercred

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>holger.hoffstaette@googlemail.com</who>
            <bug_when>2008-11-02 00:56:20 0000</bug_when>
            <thetext>Could someone please test these patches and give feedback? It builds and should work but I can&apos;t test a live VPN right now.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>genzilla@boris64.net</who>
            <bug_when>2008-11-02 05:38:52 0000</bug_when>
            <thetext>Well, it _seems_ to build and work fine here (if that&apos;s enough feedback).
If there were some test beyond my normal vpn stuff, please tell me ;)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>Martin.Jansa@mk.cvut.cz</who>
            <bug_when>2008-11-02 10:54:44 0000</bug_when>
            <thetext>(In reply to comment #7)
&gt; Well, it _seems_ to build and work fine here (if that&apos;s enough feedback).
&gt; If there were some test beyond my normal vpn stuff, please tell me ;)

Same here, rebuild, restart and all works as usually.
Thanks for patch.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2008-11-02 14:22:09 0000</bug_when>
            <thetext>*** Bug 245279 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>willard.dawson@sungard.com</who>
            <bug_when>2008-11-02 14:52:51 0000</bug_when>
            <thetext>Ditto on - patched ebuild compiles, and typical openvpn session works as expected.

Thanks!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>marduk@python.net</who>
            <bug_when>2008-11-02 16:18:02 0000</bug_when>
            <thetext>Patched confirmed ~x86.  It applies, builds and runs as expected.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>cedk@gentoo.org</who>
            <bug_when>2008-11-02 18:14:36 0000</bug_when>
            <thetext>Fix in cvs
Thanks</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>170483</attachid>
            <date>2008-11-02 00:54 0000</date>
            <desc>Patch for ebuild: include peercred patch</desc>
            <filename>openvpn-2.1_rc13.ebuild.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIG9wZW52cG4tMi4xX3JjMTMuZWJ1aWxkfgkyMDA4LTExLTAxIDE2OjU3OjI2LjAwMDAwMDAw
MCArMDEwMAorKysgb3BlbnZwbi0yLjFfcmMxMy5lYnVpbGQJMjAwOC0xMS0wMiAwMTo0NDo0OS4w
MDAwMDAwMDAgKzAxMDAKQEAgLTQyLDYgKzQyLDcgQEAKIAkJbXljb25mPSIkKHVzZV9lbmFibGUg
cGtjczExKSIKIAlmaQogCisJZXBhdGNoICIke0ZJTEVTRElSfS8ke1B9LXBlZXJjcmVkLnBhdGNo
IgogCWVjb25mICR7bXljb25mfSBcCiAJCSQodXNlX2VuYWJsZSBwYXNzd29yZHNhdmUgcGFzc3dv
cmQtc2F2ZSkgXAogCQkkKHVzZV9lbmFibGUgc3NsKSBcCg==
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>170485</attachid>
            <date>2008-11-02 00:54 0000</date>
            <desc>Patch to fix peercred</desc>
            <filename>openvpn-2.1_rc13-peercred.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHNvY2tldC5jfgkyMDA4LTExLTAyIDAxOjM5OjAwLjQwNjAwOTk5OSArMDEwMAorKysgc29j
a2V0LmMJMjAwOC0xMS0wMiAwMTozOTowMC40MDYwMDk5OTkgKzAxMDAKQEAgLTIyLDYgKzIyLDcg
QEAKICAqICA1OSBUZW1wbGUgUGxhY2UsIFN1aXRlIDMzMCwgQm9zdG9uLCBNQSAgMDIxMTEtMTMw
NyAgVVNBCiAgKi8KIAorI2RlZmluZSBfR05VX1NPVVJDRQogI2luY2x1ZGUgInN5c2hlYWQuaCIK
IAogI2luY2x1ZGUgInNvY2tldC5oIgo=
</data>        

          </attachment>
    </bug>

</bugzilla>