<?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>37219</bug_id>
          
          <creation_ts>2004-01-04 12:26 0000</creation_ts>
          <short_desc>dev-dotnet/pnet-0.6.2 ebuild failed compiling hb_gc.c</short_desc>
          <delta_ts>2004-01-25 08:43:38 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>unspecified</version>
          <rep_platform>x86</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>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>howard_b_golden@yahoo.com</reporter>
          <assigned_to>dotnet@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>howard_b_golden@yahoo.com</who>
            <bug_when>2004-01-04 12:26:56 0000</bug_when>
            <thetext>Attempting to emerge dev-dotnet/pnet-0.6.2, the ebuild fails while compiling hb_gc.c, with the following messages:

In file included from thr_defs.h:35,
                 from hb_gc.c:25:
pt_defs.h:89: error: syntax error before &quot;_ILRWLock&quot;


Reproducible: Always
Steps to Reproduce:
1. emerge pnet # using ~86
Actual Results:  
gcc -DHAVE_CONFIG_H -I. -I. -I../include    -I../libgc/include -I../include    
                -DCSCC_LIB_PREFIX=\&quot;/usr/lib\&quot;                
-DCSCC_BIN_PREFIX=\&quot;/usr/bin\&quot;                 
-DCSCC_DATA_PREFIX=\&quot;/usr/share\&quot;     -DCSCC_HOST_TRIPLET=\&quot;i686-pc-linux-gnu\&quot;
-mcpu=athlon-xp -O2 -pipe -Wall -c hb_gc.c
In file included from thr_defs.h:35,
                 from hb_gc.c:25:
pt_defs.h:89: error: syntax error before &quot;_ILRWLock&quot;
pt_defs.h:89: warning: type defaults to `int&apos; in declaration of `_ILRWLock&apos;
pt_defs.h:89: warning: data definition has no type or storage class
make[1]: *** [hb_gc.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/pnet-0.6.2/work/pnet-0.6.2/support&apos;
make: *** [all-recursive] Error 1

!!! ERROR: dev-dotnet/pnet-0.6.2 failed.
!!! Function src_compile, Line 20, Exitcode 2
!!! (no error message)


Expected Results:  
Should have compiled successfully.


Portage 2.0.49-r20 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0,
2.6.0-gentoo)
=================================================================
System uname: 2.6.0-gentoo i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-mcpu=athlon-xp -O2 -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/etc /opt/tomcat/conf /usr/X11R6/lib/X11/xkb
/usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind
/var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/env.d&quot;
CXXFLAGS=&quot;-mcpu=athlon-xp -O2 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache sandbox usersandbox&quot;
GENTOO_MIRRORS=&quot;ftp://mirror.iawnet.sandia.gov/pub/gentoo/
http://gentoo.seren.com/gentoo ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/&quot;
MAKEOPTS=&quot;-j1&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;3dnow X Xaw3d acl acpi acpi4linux alsa amd antlr apache2 apm arts
artswrappersuid avi berkdb bonobo cdr crypt cups directfb dnd doc dv dvd dvdr
encode esd ethereal evo fbcon fbdev foomaticdb foreign-package foreign-sysvinit
freetds gb gd gd-external gdbm gif ginac gnome gnomedb gpm gstreamer gtk gtk2
gtkhtml guile imap imlib innodb ipv6 java jikes jpeg junit kde kerberos ldap
libg++ libgda libwww mad maildir mbox mdb mikmod mmx motif mozilla moznoirc
moznomail mpeg mysql ncurses nls nptl oci8 odbc ofx oggvorbis opengl oss pam pda
pdflib perl pg-hier pic plotutils png postgres ppds python qt quicktime radeon
readline ruby ruby18 samba sasl sdk sdl slang slp snmp spell sse ssl svga tcltk
tcpd tetex tiff truetype type1 usb wmf wxwindows x86 xml xml2 xmms xv zeo zlib&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scandium@gentoo.org</who>
            <bug_when>2004-01-04 15:26:43 0000</bug_when>
            <thetext>This is a threading related problem.
pnet disables pthreads by default except on configurations that are known to work.

I just had some other guys (using various glibc snapshots from December, including the one you are using) testing pnet and it works for them, except for the one configuration where glibc was compiled with +nptl.


I will look into this tomorrow, I don&apos;t expect it to be too hard to fix.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scandium@gentoo.org</who>
            <bug_when>2004-01-05 16:41:28 0000</bug_when>
            <thetext>ok, could you please try the attached ebuild and place the .diff in your dev-dotnet/pnet/files directory ?

The diff just removes the lines that cause the error (which don&apos;t seem to work out), but they aren&apos;t necessarily needed.

I tried a test case that uses System.Threading in general (can be found here: http://wiki.dotgnu.org/PortableNet/Threads) and something that makes use of System.Threading.Monitor (the code in question) and both worked properly.

I don&apos;t want to commit this (yet), at least until I verified that removing those lines doesn&apos;t break anything new.

But again, from what it currently looks like, you should be perfectly happy with this work-around.

If you have any code that makes use of threading and you could post your results here that would be perfect, of course.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scandium@gentoo.org</who>
            <bug_when>2004-01-05 16:42:13 0000</bug_when>
            <thetext>Created an attachment (id=23211)
pnet ebuild which uses the pt_defs.h patch
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scandium@gentoo.org</who>
            <bug_when>2004-01-05 16:42:35 0000</bug_when>
            <thetext>Created an attachment (id=23212)
pt_defs.h diff
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scandium@gentoo.org</who>
            <bug_when>2004-01-05 16:54:00 0000</bug_when>
            <thetext>Created an attachment (id=23213)
pnet ebuild which uses the pt_defs.h patch

noticed a little diff-related quirk in the old diff, use this one :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>howard_b_golden@yahoo.com</who>
            <bug_when>2004-01-05 17:38:43 0000</bug_when>
            <thetext>Rainer, your modified ebuild and patch work for me. Thanks for your prompt response!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scandium@gentoo.org</who>
            <bug_when>2004-01-24 16:23:13 0000</bug_when>
            <thetext>if there are no objections I will update the ebuild in the tree tomorrow to apply that diff if nptl is in USE (since it only breaks if glibc was built with +nptl, so I don&apos;t like to apply the patch on all systems on all platforms etc. even if it shouldn&apos;t have any downsides).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>scandium@gentoo.org</who>
            <bug_when>2004-01-25 08:43:38 0000</bug_when>
            <thetext>committed.

If no problems arise with this patch I expect to get all the 0.6.2 stuff into stable anytime soon.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>23211</attachid>
            <date>2004-01-05 16:42 0000</date>
            <desc>pnet ebuild which uses the pt_defs.h patch</desc>
            <filename>pnet-0.6.2-r1.ebuild</filename>
            <type>text/plain</type>
            <data encoding="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ERJUn0vZGV2
LWRvdG5ldC9tb25vL2ZpbGVzL2RvdG5ldC5jb25mIGRvdG5ldAp9Cgpwa2dfcG9zdGluc3QoKSB7
CgllY2hvCgllaW5mbyAiSWYgeW91IHdhbnQgdG8gYXZvaWQgdHlwaW5nICc8cnVudGltZT4gcHJv
Z3JhbS5leGUnIgoJZWluZm8gInlvdSBjYW4gY29uZmlndXJlIHlvdXIgcnVudGltZSBpbiAvZXRj
L2NvbmYuZC9kb3RuZXQiCgllaW5mbyAiVXNlIC9ldGMvaW5pdC5kL2RvdG5ldCB0byByZWdpc3Rl
ciB5b3VyIHJ1bnRpbWUiCgllY2hvCn0K
</data>        

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>23212</attachid>
            <date>2004-01-05 16:42 0000</date>
            <desc>pt_defs.h diff</desc>
            <filename>pt_defs.h.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHN1cHBvcnQvcHRfZGVmcy5oLm9yaWcJMjAwMi0wNi0yNyAwNjo0OToyNi4wMDAwMDAwMDAg
KzAyMDAKKysrIHN1cHBvcnQvcHRfZGVmcy5oCTIwMDQtMDEtMDYgMDE6MzI6MDUuMjI0MzAzMDcy
ICswMTAwCkBAIC02OSwxMiArNjksNiBAQAogI2RlZmluZSBQVEhSRUFEX1NJR19DQU5DRUwJKF9f
U0lHUlRNSU4rMSkKICNlbmRpZgogCi0vKgotICogRGV0ZXJtaW5lIGlmIHdlIGhhdmUgcmVhZC13
cml0ZSBsb2NrIHN1cHBvcnQgaW4gcHRocmVhZHMuCi0gKi8KLSNpZmRlZiBQVEhSRUFEX1JXTE9D
S19JTklUSUFMSVpFUgotCSNkZWZpbmUJSUxfSEFWRV9SV0xPQ0tTCi0jZW5kaWYKIAogLyoKICAq
IFR5cGVzIHRoYXQgYXJlIG5lZWRlZCBlbHNld2hlcmUuCg==
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>23213</attachid>
            <date>2004-01-05 16:54 0000</date>
            <desc>pt_defs.h diff</desc>
            <filename>pt_defs.h.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHN1cHBvcnQvcHRfZGVmcy5oCTIwMDItMDYtMjcgMDY6NDk6MjYuMDAwMDAwMDAwICswMjAw
CisrKyBzdXBwb3J0L3B0X2RlZnMuaAkyMDA0LTAxLTA2IDAxOjMyOjA1LjIyNDMwMzA3MiArMDEw
MApAQCAtNjksMTIgKzY5LDYgQEAKICNkZWZpbmUgUFRIUkVBRF9TSUdfQ0FOQ0VMCShfX1NJR1JU
TUlOKzEpCiAjZW5kaWYKIAotLyoKLSAqIERldGVybWluZSBpZiB3ZSBoYXZlIHJlYWQtd3JpdGUg
bG9jayBzdXBwb3J0IGluIHB0aHJlYWRzLgotICovCi0jaWZkZWYgUFRIUkVBRF9SV0xPQ0tfSU5J
VElBTElaRVIKLQkjZGVmaW5lCUlMX0hBVkVfUldMT0NLUwotI2VuZGlmCiAKIC8qCiAgKiBUeXBl
cyB0aGF0IGFyZSBuZWVkZWQgZWxzZXdoZXJlLgo=
</data>        

          </attachment>
    </bug>

</bugzilla>