<?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>151391</bug_id>
          
          <creation_ts>2006-10-14 15:00 0000</creation_ts>
          <short_desc>kde-base/kdenetwork-3.5.5 fails with sys-kernel/linux-headers-2.6.18</short_desc>
          <delta_ts>2006-12-29 12:29:42 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>KDE</component>
          <version>2006.1</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>159304</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>portage@bigmichi1.dyndns.org</reporter>
          <assigned_to>kde@gentoo.org</assigned_to>
          <cc>leio@gentoo.org</cc>
    
    <cc>masterdriverz@gentoo.org</cc>
    
    <cc>omgponies3@gmail.com</cc>
    
    <cc>sdr@mail.bg</cc>
    
    <cc>tekknokaetzi@web.de</cc>
    
    <cc>toolchain@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>portage@bigmichi1.dyndns.org</who>
            <bug_when>2006-10-14 15:00:05 0000</bug_when>
            <thetext>/bin/sh ../../../libtool --silent --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../kopete/protocols/gadu/libgadu  -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -DKDE_NO_COMPAT -DQT_NO_COMPAT -DQT_NO_CAST_ASCII -DQT_NO_ASCII_CAST -I../../../kopete/libkopete -I../../../kopete/libkopete -I../../../kopete/libkopete/avdevice -I../../../kopete/libkopete/ui -I../../../kopete/libkopete/ui -I../../../kopete/libkopete/private -I../../../kopete/libkopete/ui -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -DQT_THREAD_SUPPORT  -D_REENTRANT -D_FILE_OFFSET_BITS=64  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=pentium3 -pipe -fomit-frame-pointer -fforce-addr -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -fvisibility=hidden -fvisibility-inlines-hidden -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o libkvideoio_la.all_cpp.lo libkvideoio_la.all_cpp.cpp
/usr/include/linux/videodev2.h:622: error: &apos;__s64&apos; does not name a type
kxv.cpp:118: warning: unused parameter &apos;d&apos;
kxv.cpp:208: warning: unused parameter &apos;win&apos;
kxv.cpp:208: warning: unused parameter &apos;data&apos;
kxv.cpp:208: warning: unused parameter &apos;w&apos;
kxv.cpp:208: warning: unused parameter &apos;h&apos;
kxv.cpp:208: warning: unused parameter &apos;x&apos;
kxv.cpp:208: warning: unused parameter &apos;y&apos;
kxv.cpp:208: warning: unused parameter &apos;sw&apos;
kxv.cpp:208: warning: unused parameter &apos;sh&apos;
kxv.cpp:208: warning: unused parameter &apos;dw&apos;
kxv.cpp:208: warning: unused parameter &apos;dh&apos;
kxv.cpp:265: warning: unused parameter &apos;w&apos;
kxv.cpp:265: warning: unused parameter &apos;dw&apos;
kxv.cpp:265: warning: unused parameter &apos;dh&apos;
kxv.cpp:466: warning: unused parameter &apos;w&apos;
kxv.cpp:525: warning: unused parameter &apos;attribute&apos;
kxv.cpp:525: warning: unused parameter &apos;val&apos;
kxv.cpp:542: warning: unused parameter &apos;attribute&apos;
kxv.cpp:542: warning: unused parameter &apos;val&apos;
kxv.cpp:575: warning: unused parameter &apos;encoding&apos;
kxv.cpp:594: warning: unused parameter &apos;e&apos;
kxv.cpp:639: warning: unused parameter &apos;w&apos;
kxv.cpp:639: warning: unused parameter &apos;h&apos;
kxv.cpp:639: warning: unused parameter &apos;shm&apos;
videodevice.cpp: In member function &apos;int Kopete::AV::VideoDevice::selectInput(int)&apos;:
videodevice.cpp:752: warning: comparison between signed and unsigned integer expressions
videodevice.cpp: In member function &apos;int Kopete::AV::VideoDevice::setInputParameters()&apos;:
videodevice.cpp:798: warning: comparison between signed and unsigned integer expressions
videodevice.cpp: In member function &apos;float Kopete::AV::VideoDevice::getBrightness()&apos;:
videodevice.cpp:1294: warning: comparison between signed and unsigned integer expressions
videodevice.cpp: In member function &apos;float Kopete::AV::VideoDevice::setBrightness(float)&apos;:
videodevice.cpp:1317: warning: converting to &apos;__u16&apos; from &apos;float&apos;
videodevice.cpp: In member function &apos;float Kopete::AV::VideoDevice::getContrast()&apos;:
videodevice.cpp:1332: warning: comparison between signed and unsigned integer expressions
videodevice.cpp: In member function &apos;float Kopete::AV::VideoDevice::setContrast(float)&apos;:
videodevice.cpp:1355: warning: converting to &apos;__u16&apos; from &apos;float&apos;
videodevice.cpp: In member function &apos;float Kopete::AV::VideoDevice::getSaturation()&apos;:
videodevice.cpp:1370: warning: comparison between signed and unsigned integer expressions
videodevice.cpp: In member function &apos;float Kopete::AV::VideoDevice::setSaturation(float)&apos;:
videodevice.cpp:1393: warning: converting to &apos;__u16&apos; from &apos;float&apos;
videodevice.cpp: In member function &apos;float Kopete::AV::VideoDevice::getWhiteness()&apos;:
videodevice.cpp:1408: warning: comparison between signed and unsigned integer expressions
videodevice.cpp: In member function &apos;float Kopete::AV::VideoDevice::setWhiteness(float)&apos;:
videodevice.cpp:1431: warning: converting to &apos;__u16&apos; from &apos;float&apos;
videodevice.cpp: In member function &apos;float Kopete::AV::VideoDevice::getHue()&apos;:
videodevice.cpp:1446: warning: comparison between signed and unsigned integer expressions
videodevice.cpp: In member function &apos;float Kopete::AV::VideoDevice::setHue(float)&apos;:
videodevice.cpp:1469: warning: converting to &apos;__u16&apos; from &apos;float&apos;
videodevice.cpp: In member function &apos;bool Kopete::AV::VideoDevice::getAutoBrightnessContrast()&apos;:
videodevice.cpp:1485: warning: comparison between signed and unsigned integer expressions
videodevice.cpp: In member function &apos;bool Kopete::AV::VideoDevice::setAutoBrightnessContrast(bool)&apos;:
videodevice.cpp:1494: warning: comparison between signed and unsigned integer expressions
videodevice.cpp: In member function &apos;bool Kopete::AV::VideoDevice::getAutoColorCorrection()&apos;:
videodevice.cpp:1506: warning: comparison between signed and unsigned integer expressions
videodevice.cpp: In member function &apos;bool Kopete::AV::VideoDevice::setAutoColorCorrection(bool)&apos;:
videodevice.cpp:1515: warning: comparison between signed and unsigned integer expressions
videodevice.cpp: In member function &apos;bool Kopete::AV::VideoDevice::getImageAsMirror()&apos;:
videodevice.cpp:1526: warning: comparison between signed and unsigned integer expressions
videodevice.cpp: In member function &apos;bool Kopete::AV::VideoDevice::setImageAsMirror(bool)&apos;:
videodevice.cpp:1535: warning: comparison between signed and unsigned integer expressions
videodevicepool.cpp: In member function &apos;int Kopete::AV::VideoDevicePool::getImage(QImage*)&apos;:
videodevicepool.cpp:471: warning: enumeration value &apos;PIXELFORMAT_YUYV&apos; not handled in switch
videodevicepool.cpp:471: warning: enumeration value &apos;PIXELFORMAT_UYVY&apos; not handled in switch
videodevicepool.cpp:471: warning: enumeration value &apos;PIXELFORMAT_YUV420P&apos; not handled in switch
videodevicepool.cpp:471: warning: enumeration value &apos;PIXELFORMAT_YUV422P&apos; not handled in switch
videodevicepool.cpp: In member function &apos;void Kopete::AV::VideoDevicePool::loadConfig()&apos;:
videodevicepool.cpp:816: warning: unused variable &apos;disablemmap&apos;
/bin/sh ../../../libtool --silent --tag=CXX --mode=link i686-pc-linux-gnu-g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=pentium3 -pipe -fomit-frame-pointer -fforce-addr -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -fvisibility=hidden -fvisibility-inlines-hidden -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION   -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -o libkvideoio.la  -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -L/usr/kde/3.5/lib -L/usr/qt/3/lib -L/usr/lib    -version-info 1:0:0 libkvideoio_la.all_cpp.lo  -lqt-mt  -lz -lpng -lz -lm -lXext -lX11  -lSM -lICE -lpthread -lkdecore -lGLU -lGL -lX11
make[4]: *** [libkopete_videodevice_la.all_cpp.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
libtool: link: warning: `-version-info/-version-number&apos; is ignored for convenience libraries
make[4]: Leaving directory `/var/tmp/portage/kde-base/kdenetwork-3.5.5/work/kdenetwork-3.5.5/kopete/libkopete/avdevice&apos;
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/kde-base/kdenetwork-3.5.5/work/kdenetwork-3.5.5/kopete/libkopete&apos;
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kde-base/kdenetwork-3.5.5/work/kdenetwork-3.5.5/kopete&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kde-base/kdenetwork-3.5.5/work/kdenetwork-3.5.5&apos;
make: *** [all] Error 2

!!! ERROR: kde-base/kdenetwork-3.5.5 failed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mattepiu@gentoo.org</who>
            <bug_when>2006-10-15 04:20:55 0000</bug_when>
            <thetext>&apos;__s64&apos; does not name a type

.... shouldn&apos;t the kernel headers define its own type?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2006-10-15 04:37:38 0000</bug_when>
            <thetext>The problem is with those headers, that are currently -* so it&apos;s not supported by KDE team for sure. Kernel team can you look?
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>phreak@gentoo.org</who>
            <bug_when>2006-10-15 04:47:36 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; The problem is with those headers, that are currently -* so it&apos;s not supported
&gt; by KDE team for sure. Kernel team can you look?

kernel team also isn&apos;t supporting those headers .. (there is a reason _why_ they are marked with -*).
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-10-15 04:48:43 0000</bug_when>
            <thetext>*** Bug 151454 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dsd@gentoo.org</who>
            <bug_when>2006-10-15 12:12:58 0000</bug_when>
            <thetext>toolchain: feel free just to close this if linux-headers-2.6.18 is known broken</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2006-10-15 17:37:27 0000</bug_when>
            <thetext>i would say this is a KDE problem

__s64 requires non-strict ansi ... you&apos;re obviously building with -ansi so this isnt going to work

previous headers we broke this behavior by always defining s64, but with 2.6.18 we&apos;re going for much less changes</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mattepiu@gentoo.org</who>
            <bug_when>2006-10-16 06:53:34 0000</bug_when>
            <thetext>Sorry but I don&apos;t understand, please explain me, I do:

#equery b /usr/include/linux/videodev2.h
[ Searching for file(s) /usr/include/linux/videodev2.h in *... ]
sys-kernel/linux-headers-2.6.17-r1 (/usr/include/linux/videodev2.h)

the __s64 error is reported to be in that file, which belongs to linux
headers, are you meaning that kde team has for this time the right to modify
the linux-headers (toolchain herd) , that the error is reported to be in
that file because gcc got drunk but is in reality in a kde package or what?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2006-10-16 12:36:59 0000</bug_when>
            <thetext>i&apos;m telling you that s64 is not supported when compiling with -ansi</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2006-10-16 14:52:00 0000</bug_when>
            <thetext>*** Bug 151639 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mattepiu@gentoo.org</who>
            <bug_when>2006-10-17 05:14:53 0000</bug_when>
            <thetext>Ok, but the issue is:

/usr/include/linux/videodev2.h:622: error: &apos;__s64&apos; does not name a type

and /usr/include/linux/videodev2.h is a linux-headers file.....
Don&apos;t this means that there&apos;s some &quot;orphaned&quot; non-ansi code in the videodev2.h
file (the s64 definition was removed from linux-headers but not all its
invocations)? If the s64 type was invoked in the kdenetwork package, 
shouldn&apos;t gcc report this error in a kdenetwork package file????</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>masterdriverz@gentoo.org</who>
            <bug_when>2006-10-17 05:17:57 0000</bug_when>
            <thetext>__s64 is defined in linux/types.h in line 98:

#if defined(__GNUC__) &amp;&amp; !defined(__STRICT_ANSI__)
typedef         __u64           uint64_t;
typedef         __u64           u_int64_t;
typedef         __s64           int64_t;
#endif

A similar error was reported here ( http://permalink.gmane.org/gmane.linux.lfs.beyond.support/35397 ) though its for joystick.h</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mattepiu@gentoo.org</who>
            <bug_when>2006-10-17 05:19:29 0000</bug_when>
            <thetext>Oh, maybe I got it, linux headers ARE non-ansi code, and that is fine for
linux headers, while it&apos;s not when compiling this package as strict ansi.
Right?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mattepiu@gentoo.org</who>
            <bug_when>2006-10-17 05:42:41 0000</bug_when>
            <thetext>Created an attachment (id=99873)
kdenetwork-3.5.5-linux-headers-2.6.18.patch

I just susbstituted asm/types inlude with linux/types making sure that all
the linux headers include are where STRICT_ANSI is not defined.

Should work but please test (cause I can&apos;t)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>portage@bigmichi1.dyndns.org</who>
            <bug_when>2006-10-17 10:00:10 0000</bug_when>
            <thetext>with the patch, kopete will compile</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2006-10-17 11:24:09 0000</bug_when>
            <thetext>&gt; Oh, maybe I got it, linux headers ARE non-ansi code, and that is fine for
&gt; linux headers, while it&apos;s not when compiling this package as strict ansi.

which is why this is KDE&apos;s problem

it relies on code from the kernel that is non-ansi, yet it knowingly tries to use it anyways

your proposed patch looks &quot;ok&quot; to me</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2006-11-01 13:04:44 0000</bug_when>
            <thetext>*** Bug 153741 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2006-12-29 11:34:12 0000</bug_when>
            <thetext>Committed.
</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>99873</attachid>
            <date>2006-10-17 05:42 0000</date>
            <desc>kdenetwork-3.5.5-linux-headers-2.6.18.patch</desc>
            <filename>kdenetwork-3.5.5-linux-headers-2.6.18.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGtvcGV0ZS9saWJrb3BldGUvYXZkZXZpY2UvdmlkZW9kZXZpY2UuaC5vcmlnCTIwMDYtMTAt
MTcgMTQ6MzQ6MTMuMDAwMDAwMDAwICswMjAwCisrKyBrb3BldGUvbGlia29wZXRlL2F2ZGV2aWNl
L3ZpZGVvZGV2aWNlLmgJMjAwNi0xMC0xNyAxNDozNzowMC4wMDAwMDAwMDAgKzAyMDAKQEAgLTM1
LDggKzM1LDggQEAKIAogI2lmIGRlZmluZWQoX19saW51eF9fKSAmJiBkZWZpbmVkKEVOQUJMRV9B
VikKIAotI2luY2x1ZGUgPGFzbS90eXBlcy5oPgogI3VuZGVmIF9fU1RSSUNUX0FOU0lfXworI2lu
Y2x1ZGUgPGxpbnV4L3R5cGVzLmg+CiAjaWZuZGVmIF9fdTY0IC8vcmVxdWlyZWQgYnkgdmlkZW9k
ZXYuaAogI2RlZmluZSBfX3U2NCB1bnNpZ25lZCBsb25nIGxvbmcKICNlbmRpZiAvLyBfX3U2NAot
LS0ga29wZXRlL2xpYmtvcGV0ZS9hdmRldmljZS92aWRlb2lucHV0Lmgub3JpZwkyMDA2LTEwLTE3
IDE0OjM4OjQzLjAwMDAwMDAwMCArMDIwMAorKysga29wZXRlL2xpYmtvcGV0ZS9hdmRldmljZS92
aWRlb2lucHV0LmgJMjAwNi0xMC0xNyAxNDozOTo1MC4wMDAwMDAwMDAgKzAyMDAKQEAgLTIxLDgg
KzIxLDggQEAKICNkZWZpbmUgS09QRVRFX0FWVklERU9JTlBVVF9ICiAKICNpZmRlZiBfX2xpbnV4
X18KLSNpbmNsdWRlIDxhc20vdHlwZXMuaD4KICN1bmRlZiBfX1NUUklDVF9BTlNJX18KKyNpbmNs
dWRlIDxsaW51eC90eXBlcy5oPgogI2VuZGlmIC8vIF9fbGludXhfXwogI2lmbmRlZiBfX3U2NCAv
L3JlcXVpcmVkIGJ5IHZpZGVvZGV2LmgKICNkZWZpbmUgX191NjQgdW5zaWduZWQgbG9uZyBsb25n
Cg==
</data>        

          </attachment>
    </bug>

</bugzilla>