Am Freitag, den 25.11.2005, 10:02 -0700 schrieb Brian Paul: > Jeremy C. Reed wrote: > > I don't know if this is related to original mesa or not. (I haven't > > tested the MesaLib 6.4 by itself yet.) > > > > I received the following failure when building latest X.org from CVS. > > This is on NetBSD/i386 2.0.2 with GCC 3.3.3. It has the same error seven > > times when attempting to build different "mesa" parts for the Xserver. > > > > making all in programs/Xserver/GL/mesa/main... > > rm -f dispatch.o > > gcc -O2 -fno-strict-aliasing -ansi -Dasm=__asm -Wall -Wpointer-arith > > -Wstrict-prototypes -Wmissing-prototypes > > -Wmissing-declarations -Wredundant-decls -Wnested-externs > > -Wundef -fPIC -I../../../../../extras/Mesa/src/mesa > > -I../../../../../extras/Mesa/src/mesa/main > > -I../../../../../extras/Mesa/src/mesa/shader > > -I../../../../../extras/Mesa/src/mesa/glapi > > -I../../../../../extras/Mesa/include > > -I../../../../../programs/Xserver/include > > -I../../../../../exports/include/X11 > > -I../../../../../programs/Xserver/GL/include > > -I../../../../../programs/Xserver/GL/glx -I../../../../../lib/GL/include > > -I../../../../../programs/Xserver/hw/xfree86 > > -I../../../../../exports/include -I../../../../.. > > -I../../../../../exports/include -DCSRG_BASED -DSHAPE -DXINPUT -DXKB > > -DLBX -DXAPPGROUP -DXCSECURITY -DTOGCUP -DXF86BIGFONT > > -DDPMSExtension -DXPRINT -DPIXPRIV -DPANORAMIX -DRENDER -DRANDR > > -DXFIXES -DDAMAGE -DCOMPOSITE -DXEVIE -DGCCUSESGAS -DAVOID_GLYPHBLT > > -DPIXPRIV -DSINGLEDEPTH -DXFreeXDGA > > -DXvExtension -DXFree86LOADER -DDLOPEN_HACK > > -DXFree86Server -DXF86VIDMODE > > -DXvMCExtension -DSMART_SCHEDULE -DBUILDDEBUG > > -DXResExtension -DX_BYTE_ORDER=X_LITTLE_ENDIAN > > -DXORG_VERSION_CURRENT="(((6) * 10000000) + ((8) * 100000) + ((99) * > > 1000) + 902)" -DNDEBUG -DFUNCPROTO=15 -DNARROWPROTO -DIN_MODULE > > -DXFree86Module -DGLXEXT -DGLX_USE_MESA -c dispatch.c > > 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 > > > > Stop. > > make: stopped in /usr/src/xorg/xc/programs/Xserver/GL/mesa/main > > > > > > Any ideas? I didn't have the problem with builds of X.org from a few > > months ago. > > > > If this is not a mesa problem, sorry for the off-topic posting. > > > > Any suggestions would be appreciated. > > The update of Mesa from 6.2 to 6.4 in X.org a while back is probably > the difference. > > I suspect the #include of "inttypes.h" is the culprit. Though, I have > no idea how the XF86fpos_t type factors into this. Does stdio.h > really define XF86fpos_t??? I'd be curious to see your stdio.h file.
./programs/Xserver/hw/xfree86/os-support/xf86_libc.h:#define fpos_t XF86fpos_t :) Felix > > Anyway, Mesa includes inttypes.h to get the uintptr_t type. uintptr_t > is defined to be an integer type large enough to hold a pointer. > Looks like Karl Schultz added this back in May to get things to work > on Win64. > > The simplest solution might be to use something like this in glheader.h: > > #ifdef BSD > typedef unsigned long int uintptr_t; > #else > #incldude <inttypes.h> > #endif > > -Brian > > -- | Felix Kühling <[EMAIL PROTECTED]> http://fxk.de.vu | | PGP Fingerprint: 6A3C 9566 5B30 DDED 73C3 B152 151C 5CC1 D888 E595 | ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Mesa3d-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
