function definition isn't a prototype
From a March 31 CVS update, there are 2714 of the above warnings in a make World when compiling under FreeBSD 5.2 on an Alpha. With some guidance from the committers, I'd like to take on the task of eliminating the vast majority of these. I'll provide context diffs and submit them to the bug tracker as time permits, but I'd like to know whe- ther you feel that the declarations in question should be wrapped in some- thing like #ifdef __STDC__ / #endif or not first. (Or if you'd rather I didn't bother, I'll just shut up and go away :-). Thanks. Terry R. Friedrichsen [EMAIL PROTECTED] ___ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel
included more than once
In a make World on FreeBSD/alpha (version 5.2), the latest CVS-updated sources generate 766 warnings about header files being included more than once. In the instances I've looked at, this is quite on purpose. Would it be appropriate to suggest that makedepend be run with this warning turned off? Terry R. Friedrichsen [EMAIL PROTECTED] ___ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel
g_render.c needs a paren
Building on FreeBSD/Alpha version 5.2 with gcc 3.3.3: In building the world from a Wednesday morning CVS update, g_render.c in xc/programs/Xserver/GL/glx failed to compile. The root problem was a missing right paren, fixed by the patch included below. Terry R. Friedrichsen [EMAIL PROTECTED] cut here- *** g_render.c.dist Wed Jan 28 11:11:50 2004 --- g_render.c Wed Feb 4 09:50:41 2004 *** *** 83,89 */ # define GLX_DO_ALIGN_MAGIC(count, type) \ do { if ( (sizeof(type) == 8) ((unsigned long)(pc) 7)) { \ ! __GLX_MEM_COPY(pc-4, pc, (count * sizeof( type ) ); \ pc -= 4; \ } } while( 0 ) #else --- 83,89 */ # define GLX_DO_ALIGN_MAGIC(count, type) \ do { if ( (sizeof(type) == 8) ((unsigned long)(pc) 7)) { \ ! __GLX_MEM_COPY(pc-4, pc, (count * sizeof( type ) )); \ pc -= 4; \ } } while( 0 ) #else ___ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel
Release Candidate #2 probs
Just FYI, I tried to build RC 2 from a Monday-night CVS checkout on an Alpha FreeBSD 5.2-RELEASE machine. The build fails, and there are lots of awful-looking warnings like: warning: function declaration isn't a prototype warning: no previous prototype for 'function-name' warning: overflow in implicit constant conversion warning: string length `2544' is greater than the length `509' ISO C89 compilers are required to support warning: statement with no effect The final failure (a failure to link libGL.so) is attached below. I don't know how much interest you folks have in FreeBSD/Alpha (for which the 4.3.0 server doesn't work, AFAICT). I can try to work on some of these problems and do nightly builds if there's really some interest. One comment I have is that, in site.def, it is unclear whether HasGcc2 should be uncommented if one is running GCC 3.3 ... Terry R. Friedrichsen [EMAIL PROTECTED] -cut here + cc -o ./libGL.so.1.2~ -shared -rpath /usr/X11R6/lib -Wl,-Bsymbolic -Wl,-soname,libGL.so.1 ../../../lib/GL/glx/clientattrib.o ../../../lib/GL/glx/compsize.o ../../../lib/GL/glx/dispatch.o ../../../lib/GL/glx/eval.o ../../../lib/GL/glx/g_render.o ../../../lib/GL/glx/g_single.o ../../../lib/GL/glx/g_vendpriv.o ../../../lib/GL/glx/glapi.o ../../../lib/GL/glx/glcontextmodes.o ../../../lib/GL/glx/glthread.o ../../../lib/GL/glx/glxcmds.o ../../../lib/GL/glx/glxext.o ../../../lib/GL/glx/glxextensions.o ../../../lib/GL/glx/indirect_init.o ../../../lib/GL/glx/pixel.o ../../../lib/GL/glx/pixelstore.o ../../../lib/GL/glx/render2.o ../../../lib/GL/glx/renderpix.o ../../../lib/GL/glx/single2.o ../../../lib/GL/glx/singlepix.o ../../../lib/GL/glx/vertarr.o ../../../lib/GL/glx/xfont.o ../../../lib/GL/dri/XF86dri.o ../../../lib/GL/dri/dri_glx.o -lc_r -L../../../exports/lib -lXext -lX11 -L../../../exports/lib -lXxf86vm ../../../lib/GL/glx/clientattrib.o: In function `__indirect_glPushClientAttrib': ../../../lib/GL/glx/clientattrib.o(.text+0x3a8): undefined reference to `malloc' ../../../lib/GL/glx/clientattrib.o(.text+0x3ac): undefined reference to `malloc' ../../../lib/GL/glx/clientattrib.o(.text+0x464): undefined reference to `memcpy' ../../../lib/GL/glx/clientattrib.o(.text+0x468): undefined reference to `memcpy' ../../../lib/GL/glx/clientattrib.o: In function `__indirect_glPopClientAttrib': ../../../lib/GL/glx/clientattrib.o(.text+0x514): undefined reference to `__assert' ../../../lib/GL/glx/clientattrib.o(.text+0x518): undefined reference to `__assert' ../../../lib/GL/glx/clientattrib.o(.text+0x5d0): undefined reference to `memcpy' ../../../lib/GL/glx/clientattrib.o(.text+0x5d4): undefined reference to `memcpy' *** Error code 1 -and here ___ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel