<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>34977</bug_id>
          
          <creation_ts>2018-06-01 18:49:42 +0300</creation_ts>
          <short_desc>implicit declaration of function, incompatible pointer type</short_desc>
          <delta_ts>2018-06-06 17:16:14 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>xorg-drv-nouveau</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Valery Inozemtsev">shrek</assigned_to>
          <cc>bircoph</cc>
    
    <cc>shrek</cc>
    
    <cc>vseleznv</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>171506</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2018-06-01 18:49:42 +0300</bug_when>
    <thetext>xorg-drv-nouveau-2:1.0.15-alt1

Это может приводить к серьёзным ошибкам при работе; лучше бы поаккуратнее всё поинклюдить:

$ egrep -4 -e &apos;implicit declaration of function|incompatible pointer type&apos; /beehive/logs/Sisyphus-x86_64/latest/success/xorg-drv-nouveau-2\:1.0.15-alt1
  CC       nouveau_wfb.lo
  CC       nv_accel_common.lo
  CC       nv_driver.lo
nv_driver.c: In function &apos;NVScreenInit&apos;:
nv_driver.c:1443:9: warning: implicit declaration of function &apos;wfbScreenInit&apos;; did you mean &apos;fbScreenInit&apos;? [-Wimplicit-function-declaration]
   ret = wfbScreenInit(pScreen, FBStart, pScrn-&gt;virtualX,
         ^~~~~~~~~~~~~
         fbScreenInit
  CC       nv_shadow.lo
--
/usr/include/xorg/xf86Crtc.h:1068:37: note: declared here
 static _X_INLINE _X_DEPRECATED void xf86_reload_cursors(ScreenPtr screen) {}
                                     ^~~~~~~~~~~~~~~~~~~
drmmode_display.c: In function &apos;drmmode_set_scanout_pixmap&apos;:
drmmode_display.c:697:28: warning: passing argument 1 of &apos;PixmapStopDirtyTracking&apos; from incompatible pointer type [-Wincompatible-pointer-types]
    PixmapStopDirtyTracking(crtc-&gt;randr_crtc-&gt;scanout_pixmap, screenpix);
                            ^~~~
In file included from /usr/include/xorg/gc.h:54:0,
                 from /usr/include/xorg/dix.h:51,
--
                 from drmmode_display.c:36:
/usr/include/xorg/pixmap.h:130:1: note: expected &apos;DrawablePtr {aka struct _Drawable *}&apos; but argument is of type &apos;PixmapPtr {aka struct _Pixmap *}&apos;
 PixmapStopDirtyTracking(DrawablePtr src, PixmapPtr slave_dst);
 ^~~~~~~~~~~~~~~~~~~~~~~
drmmode_display.c:744:27: warning: passing argument 1 of &apos;PixmapStartDirtyTracking&apos; from incompatible pointer type [-Wincompatible-pointer-types]
  PixmapStartDirtyTracking(ppix, screenpix, 0, 0, this_x, 0, RR_Rotate_0);
                           ^~~~
In file included from /usr/include/xorg/gc.h:54:0,
                 from /usr/include/xorg/dix.h:51,

Я бы вообще запретил с таким warnings собирать, а то потом ошибки трудноуловимые.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>171507</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2018-06-01 20:22:38 +0300</bug_when>
    <thetext>The first error can be corrected by an

#include &quot;fb.h&quot;

As for the incompatible pointer type errors, these are not really errors, because PointerPtr points to a structure whose beginning is the same structure as DrawablePtr points to. So, it works correctly, but we might want to silence te warning by a type conversion before the pointer at these two places.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>