On Tue, Feb 03, 2004 at 11:06:20AM -0700, Terry R. Friedrichsen wrote:
>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

These should be mostly harmless.  The task of ANSI-fying the source code
and minimising build warnings is a long and on-going one.

>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.

It is of interest.  All platforms are :-)

On FreeBSD/i386 5.1 I get warnings building libGL.so, but they are not
fatal.  I haven't tried on 5.2 yet.

I think the patch below should fix this.  It eliminates the warnings for
my 5.1 build.

BTW, this is an issue for libGL but not most other libraries because
libGL is built with the -Bsymbolic option.

>One comment I have is that, in site.def, it is unclear whether HasGcc2
>should be uncommented if one is running GCC 3.3 ...

The gcc version should get auto-detected, and HasGcc2 gets set if HasGcc3
is set:

/*
 * GNU Compiler stuff
 */
#ifndef HasGcc3
# define HasGcc3 NO
#endif
#ifndef HasGcc2
# define HasGcc2 HasGcc3
#endif
#ifndef HasGcc
# define HasGcc HasGcc2
#endif

You can confirm the gcc version auto-detection by running
'make -f xmakefile VerifyOS' from the xc directory.

David
-- 
David Dawes
developer/release engineer                      The XFree86 Project
www.XFree86.org/~dawes
Index: config/cf/FreeBSD.cf
===================================================================
RCS file: /home/x-cvs/xc/config/cf/FreeBSD.cf,v
retrieving revision 3.147
diff -u -r3.147 FreeBSD.cf
--- config/cf/FreeBSD.cf        28 Jan 2004 01:46:21 -0000      3.147
+++ config/cf/FreeBSD.cf        3 Feb 2004 19:19:22 -0000
@@ -126,6 +126,7 @@
 #  endif
 #  if (OSRelVersion >= 500016)
 #   define ThreadsLibraries    -lc_r
+#   define SharedGLReqs                $(LDPRELIBS) $(XLIB) -lc
 #  else
 #   define ThreadsLibraries    -pthread
 #  endif
Index: lib/GL/GL/Imakefile
===================================================================
RCS file: /home/x-cvs/xc/lib/GL/GL/Imakefile,v
retrieving revision 1.23
diff -u -r1.23 Imakefile
--- lib/GL/GL/Imakefile 17 Nov 2003 03:10:41 -0000      1.23
+++ lib/GL/GL/Imakefile 3 Feb 2004 19:22:06 -0000
@@ -212,7 +212,7 @@
  * for no built-in drivers.
  */
 
-REQUIREDLIBS = $(BASEREQUIREDLIBS) $(OTHERREQUIREDLIBS) $(VMODEREQUIREDLIBS)
+REQUIREDLIBS = $(OTHERREQUIREDLIBS) $(VMODEREQUIREDLIBS) $(BASEREQUIREDLIBS)
 
         OBJS = $(GLXOBJS) $(DRIOBJS) $(DRVOBJS)
 #if HasSharedLibraries && !SharedLibGlxWithoutPIC

Reply via email to