errors with building xorg (conflicting types for `XF86fpos_t' and undefined reference to `sched_yield')
Jeremy C. Reed
reed at reedmedia.net
Wed Nov 23 09:11:13 PST 2005
I forgot to mention:
NetBSD/i386 2.0.2
gcc (GCC) 3.3.3
Attempting to use Fontconfig, expat, freetype2 and png from already
installed packages collection (in /usr/pkg).
On Wed, 23 Nov 2005, Jeremy C. Reed wrote:
> Building xc from cvs I get:
>
> making all in programs/Xserver/GL/mesa/main...
> ...
> In file included from /usr/include/wchar.h:73,
> from /usr/include/inttypes.h:44,
> from glheader.h:83,
> from dispatch.c:42:
> /usr/include/stdio.h:63: error: conflicting types for `XF86fpos_t'
> ../../../../../programs/Xserver/include/xf86_libc.h:71: error: previous
> declaration of `XF86fpos_t'
> /usr/include/stdio.h:139: error: conflicting types for `XF86FILE'
> ../../../../../programs/Xserver/include/xf86_libc.h:66: error: previous
> declaration of `XF86FILE'
> /usr/include/stdio.h:225: error: conflicting types for `xf86fprintf'
> ../../../../../programs/Xserver/include/xf86_ansic.h:177: error: previous
> declaration of `xf86fprintf'
> /usr/include/stdio.h:230: error: conflicting types for `xf86fscanf'
> ../../../../../programs/Xserver/include/xf86_ansic.h:184: error: previous
> declaration of `xf86fscanf'
> /usr/include/stdio.h:248: error: conflicting types for `xf86sscanf'
> ../../../../../programs/Xserver/include/xf86_ansic.h:231: error: previous
> declaration of `xf86sscanf'
> *** Error code 1
>
> This happens multiple times.
>
> Another error I get is:
>
> installing in programs/glxgears...
> rm -f glxgears
> gcc -o glxgears -O2 -fno-strict-aliasing -ansi -Dasm=__asm -Wall
> -Wpointer-arith
> -Wstrict-prototypes -Wmissing-prototypes
> -Wmissing-declara
> tions -Wredundant-decls -Wnested-externs -Wundef -L../..
> /exports/lib glxgears.o -lGL -lXprintUtil -lXp -lXext -lX11
> -L/usr/X11R6/lib
> -lm -Wl,-rpath,/usr/X11R6/lib -Wl,-rpath,/usr/pkg/lib
> -Wl,-rpath-link,../../e
> xports/lib
> glxgears.o(.text+0x194f): In function `event_loop':
> : undefined reference to `sched_yield'
> *** Error code 1
Jeremy C. Reed
BSD News, BSD tutorials, BSD links
http://www.bsdnewsletter.com/
More information about the xorg
mailing list