xf86-video-via and error: conflicting types for 'uint32_t' and pthread

Thomas Hellström thomas at tungstengraphics.com
Tue Feb 21 20:37:53 PST 2006


Jeremy C. Reed wrote:

>Building driver/xf86-video-via resulted in several issues on DragonFly. 
>
>Any suggestions on how to fix any of these problems below properly?
>
>Should I report to upstream Unichrome instead? Or the dri.sf.net project?
>
>1)
>
>In file included from /home/reed/pkg/include/drm/via_drm.h:35,
>                 from ../../src/via_xvmc.h:29,
>                 from viaXvMCPriv.h:34,
>                 from viaLowLevel.c:34:
>../../src/via_drmclient.h:30: error: conflicting types for 'uint32_t'
>/usr/include/stdint.h:41: error: previous declaration of 'uint32_t' was 
>here
>
>As a workaround, I commented out this:
>
>/* typedef CARD32 uint32_t; */
>
>because already defined on DragonFly in /usr/include/stdint.
>
>
>2) But I still had:
>
>In file included from viaLowLevel.c:34:
>viaXvMCPriv.h:80: error: syntax error before "pthread_mutex_t"
>viaXvMCPriv.h:145: error: syntax error before "pthread_mutex_t"
>viaXvMCPriv.h:160: error: syntax error before "pthread_mutex_t"
>
>As I workaround in driver/xf86-video-via/src/xvmc/viaXvMCPriv.h I did:
>
>+#ifdef __DragonFly__
>+#include <pthread.h>
>+#endif
>
>3)
>
>In file included from via_priv.h:5,
>                 from via_driver.h:56,
>                 from via_accel.c:41:
>/home/reed/pkg/include/drm/via_drm.h:118: error: syntax error before 
>"uint32_t"
>/home/reed/pkg/include/drm/via_drm.h:123: error: syntax error before 
>"uint32_t"
>/home/reed/pkg/include/drm/via_drm.h:128: error: syntax error before 
>"uint32_t"
>/home/reed/pkg/include/drm/via_drm.h:152: error: syntax error before 
>"uint32_t"
>/home/reed/pkg/include/drm/via_drm.h:216: error: syntax error before 
>"uint32_t"
>/home/reed/pkg/include/drm/via_drm.h:239: error: syntax error before 
>"uint32_t"
>/home/reed/pkg/include/drm/via_drm.h:249: error: syntax error before 
>"uint32_t"
>/home/reed/pkg/include/drm/via_drm.h:254: error: syntax error before 
>"uint32_t"
>/home/reed/pkg/include/drm/via_drm.h:261: error: syntax error before 
>"uint32_t"
>*** Error code 1
>
>
>I attempted making this include <sys/types.h> first but then got other 
>errors:
>
>4)
>
>In file included from /home/reed/pkg/include/drm/via_drm.h:117,
>                 from via_priv.h:5,
>                 from via_driver.h:56,
>                 from via_bandwidth.c:29:
>/usr/include/sys/types.h:91: error: conflicting types for 'xf86mode_t'
>/home/reed/xorg/include/xorg/xf86_libc.h:88: error: previous declaration 
>of 'xf86mode_t' was here
>/usr/include/sys/types.h:116: error: conflicting types for 'xf86dev_t'
>/home/reed/xorg/include/xorg/xf86_libc.h:87: error: previous declaration 
>of 'xf86dev_t' was here
>/usr/include/sys/types.h:151: error: conflicting types for 'xf86ssize_t'
>/home/reed/xorg/include/xorg/xf86_libc.h:86: error: previous declaration 
>of 'xf86ssize_t' was here
>
>...
>  
>
I've checked in fixes for this in latest CVS. Could you try out and if 
there still are problems, could you file a bug?

/Thomas



>
>
> Jeremy C. Reed
>
> 	  	 	 open source, Unix, *BSD, Linux training
>	  	 	 http://www.pugetsoundtechnology.com/
>_______________________________________________
>xorg mailing list
>xorg at lists.freedesktop.org
>http://lists.freedesktop.org/mailman/listinfo/xorg
>  
>





More information about the xorg mailing list