<?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>135909</bug_id>
          
          <creation_ts>2006-06-07 06:08 0000</creation_ts>
          <short_desc>pwlib-1.8.7 does not compile with gcc-4.1</short_desc>
          <delta_ts>2006-07-04 17:53:33 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>GCC Porting</component>
          <version>unspecified</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>117482</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>rain@matfyz.cz</reporter>
          <assigned_to>stkn@gentoo.org</assigned_to>
          <cc>dirtyepic@gentoo.org</cc>
    
    <cc>fcoiffie@free.fr</cc>
    
    <cc>gnome@gentoo.org</cc>
    
    <cc>shados@wipline.ru</cc>

      

      
          <long_desc isprivate="0">
            <who>rain@matfyz.cz</who>
            <bug_when>2006-06-07 06:08:59 0000</bug_when>
            <thetext>There already is a patch for gcc-4.1, however, it is not complete, possibly because its author didn&apos;t compile against v4l2 USE flag?

The following patch should fix the remaining one extra qualification error.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rain@matfyz.cz</who>
            <bug_when>2006-06-07 06:10:36 0000</bug_when>
            <thetext>Created an attachment (id=88599)
Fix for remaining extra qualification for gcc-4.1*

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rockoo@gmail.com</who>
            <bug_when>2006-06-11 10:16:46 0000</bug_when>
            <thetext>overhere on x86 pwlib-1.10.x w/ v4l/v4l2 works fine w/ gcc-4.1.1/glibc-2.4</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fcoiffie@free.fr</who>
            <bug_when>2006-06-14 03:06:42 0000</bug_when>
            <thetext>pwlib-1.10.0 compiles on x86 witg gcc-4.1.1 but openh323 needs a version &lt;= 1.8.7</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rain@matfyz.cz</who>
            <bug_when>2006-06-15 11:32:51 0000</bug_when>
            <thetext>In that case, more details from me are here:

I have gcc-4.1.1, glibc-2.4-r3, not that i think this really matters, system is x86, profile 2006.0.

I just synced, and tried emerging =pwlib-1.8.7, result:
g++ -mtune=pentium4 -march=pentium4 -mmmx -msse -msse2 -msse3 -pipe -fomit-frame-pointer -floop-optimize -foptimize-register-move -foptimize-sibling-calls -fprefetch-loop-arrays -ffast-math -O3 -D_REENTRANT  -Wall  -fPIC -DUSE_ESD=1 -I/tmp/portage/pwlib-1.8.7/work/pwlib-1.8.7/include \
vidinput_names.cxx \
-I. -shared vidinput_v4l2.cxx -o ../pwlib/device/videoinput/v4l2_pwplugin.so
vidinput_v4l2.cxx:77: error: extra qualification &apos;V4L2Names::&apos; on member &apos;BuildUserFriendly&apos;
make[2]: *** [../pwlib/device/videoinput/v4l2_pwplugin.so] Error 1
make[2]: Leaving directory `/tmp/portage/pwlib-1.8.7/work/pwlib-1.8.7/plugins/vidinput_v4l2&apos;
make[1]: *** [opt] Error 2
make[1]: Leaving directory `/tmp/portage/pwlib-1.8.7/work/pwlib-1.8.7/plugins&apos;
make: *** [opt] Error 2

This is exactly what the patch fixes. I also unpacked a clean source from distfiles (pwlib-1.8.7.tar.gz, MD5: ba4fddd6cb8d4420cc18f308ccf48e00), and checked it manually that the line (plugins/vidinput_v4l2/vidinput_v4l2.cxx:77) is there, and with extra qualification, so it&apos;s not a dependency issue either.

The problem is obviously in v4l2 plugin as stated before, which is being enabled in this place in the ebuild:
    econf \
        --enable-plugins \
        $(use_enable v4l2) \
        $(use_enable sdl) \
        $(use_enable oss) \
        ${myconf} || die &quot;configure failed&quot;

I don&apos;t see how this could not enable the failing plugin with v4l2 use enabled, but maybe it does in some cases?

Configure line looks like this for me:
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-plugins --enable-v4l2 --enable-sdl --enable-oss --enable-ipv6 --enable-v4l --enable-avc --enable-dc --enable-alsa --build=i686-pc-linux-gnu

Looking at the source, i have no idea why this should work for some and not work for others. It&apos;s simply an extra qualification, which _should_ fail with gcc-4.1. 

The original patch for gcc-4.1 (pwlib/files/pwlib-1.8.7-gcc41.patch, md5: 223dafbac9787545227998ed2979a44f) does nothing about that, and the other patches seem unrelated to this at all.

So, right now i have no idea what&apos;s wrong with either my or your system, but it still fails on mine. ;)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dirtyepic@gentoo.org</who>
            <bug_when>2006-07-02 22:53:45 0000</bug_when>
            <thetext>(In reply to comment #4)

&gt; So, right now i have no idea what&apos;s wrong with either my or your system, but it
&gt; still fails on mine. ;)

they&apos;re building 1.10.1 which builds fine with gcc-4.1, while you&apos;re building 1.8.7 which doesn&apos;t.  unfortunately, as mentioned, openh323 requires 1.8.7.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nerdboy@gentoo.org</who>
            <bug_when>2006-07-04 17:53:33 0000</bug_when>
            <thetext>This bit me today; it&apos;s partly the gnomemeeting-&gt;ekiga thing, and some depends that need updating, but it&apos;s still a needed patch for now.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>88599</attachid>
            <date>2006-06-07 06:10 0000</date>
            <desc>Fix for remaining extra qualification for gcc-4.1*</desc>
            <filename>pwlib-gcc-4.1-v4l2.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHBsdWdpbnMvdmlkaW5wdXRfdjRsMi92aWRpbnB1dF92NGwyLmN4eC5vbGQJMjAwNi0wNi0w
NiAyMTozNDozMS4wMDAwMDAwMDAgKzAyMDAKKysrIHBsdWdpbnMvdmlkaW5wdXRfdjRsMi92aWRp
bnB1dF92NGwyLmN4eAkyMDA2LTA2LTA2IDIxOjM1OjE3LjAwMDAwMDAwMCArMDIwMApAQCAtNzQs
NyArNzQsNyBAQAogICAKIHByb3RlY3RlZDoKICAgCi0gIHZpcnR1YWwgUFN0cmluZyBWNEwyTmFt
ZXM6OkJ1aWxkVXNlckZyaWVuZGx5KFBTdHJpbmcgZGV2bmFtZSk7CisgIHZpcnR1YWwgUFN0cmlu
ZyBCdWlsZFVzZXJGcmllbmRseShQU3RyaW5nIGRldm5hbWUpOwogCiAgIGVudW0gS2VybmVsVmVy
c2lvbkVudW0gewogICAgIEsyXzQsIAo=
</data>        

          </attachment>
    </bug>

</bugzilla>