Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jun 2001 09:40:32 -0500 (CDT)
From:      Stephen Montgomery-Smith <stephen@cauchy.math.missouri.edu>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/28228: Cannot make Mesa 3.4.2 port with XFree86 4.1.0_4
Message-ID:  <200106171440.f5HEeWW81199@cauchy.math.missouri.edu>

next in thread | raw e-mail | index | archive | help

>Number:         28228
>Category:       ports
>Synopsis:       Cannot make Mesa 3.4.2 port with XFree86 4.1.0_4
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 17 07:50:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Stephen Montgomery-Smith
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
University of Missouri
>Environment:
FreeBSD laptop.montlan 4.3-STABLE FreeBSD 4.3-STABLE #0: Tue Jun 12 09:45:50 CDT 2001     stephen@laptop.montlan:/usr/src-copy/sys/compile/LAPTOP  i386

XFree86-4.1.0_4
Mesa-3.4.2
ports current as of June 17 2001

>Description:

I know that Mesa comes built into XFree86-4.1.0, but that does not
include glut, and I need glut because of some programs that I am
writing.

When I try to make the Mesa-3.4.2 port I get:

===>  Building for Mesa-3.4.2_1
cd . && /usr/cvs/ports/graphics/Mesa3/work/Mesa-3.4.2/missing autoheader
WARNING: `autoheader' is missing on your system.  You should only need it if
         you modified `acconfig.h' or `configure.in'.  You might want
         to install the `Autoconf' and `GNU m4' packages.  Grab them
         from any GNU archive site.
gmake  all-recursive
gmake[1]: Entering directory `/usr/cvs/ports/graphics/Mesa3/work/Mesa-3.4.2'
Making all in src-glu
gmake[2]: Entering directory `/usr/cvs/ports/graphics/Mesa3/work/Mesa-3.4.2/src-glu'
/bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -I/usr/cvs/ports/graphics/Mesa3/work/Mesa-3.4.2/include -DGLCALLBACKPCAST=\*    -O -pipe -march=pentiumpro -DCOMPAT_LINUX_THREADS -DVM_STACK  -c glu.c
cc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/X11R6/include -I/usr/cvs/ports/graphics/Mesa3/work/Mesa-3.4.2/include "-DGLCALLBACKPCAST=*" -O -pipe -march=pentiumpro -DCOMPAT_LINUX_THREADS -DVM_STACK -c glu.c  -fPIC -DPIC -o glu.lo
glu.c:159: conflicting types for `gluPickMatrix'
/usr/X11R6/include/GL/glu.h:300: previous declaration of `gluPickMatrix'
glu.c: In function `gluErrorString':
glu.c:281: `GLU_INCOMPATIBLE_GL_VERSION' undeclared (first use in this function)
glu.c:281: (Each undeclared identifier is reported only once
glu.c:281: for each function it appears in.)
glu.c: At top level:
glu.c:370: conflicting types for `gluCheckExtension'
/usr/X11R6/include/GL/glu.h:271: previous declaration of `gluCheckExtension'
gmake[2]: *** [glu.lo] Error 1
gmake[2]: Leaving directory `/usr/cvs/ports/graphics/Mesa3/work/Mesa-3.4.2/src-glu'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/cvs/ports/graphics/Mesa3/work/Mesa-3.4.2'
gmake: *** [all-recursive-am] Error 2
*** Error code 2
....

>How-To-Repeat:

First deinstall XFree86 and Mesa.  Make sure you have 
XFREE86_VERSION=4
in /etc/make.conf
cd /usr/ports/x11/XFree86-4
make install
cd /usr/ports/graphics/Mesa3
make

>Fix:

OK, this is weird, but this is a work-around.

cd /usr/ports/graphics/Mesa3
make
cd work/Mesa-3.4.2/src-glu
make
cd ../../..
make

What is different is that the lines that don't work above are now as below.
The difference seems to be that a -I/usr/X11R6/include becomes -I../include
I am guessing that there is an incompatibility between the GL/glu.h that
comes with XFree86-4.1.0 and Mesa-3.4.2.

/bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -I../include    -O -pipe -march=pentiumpro -DCOMPAT_LINUX_THREADS -DVM_STACK  -Wall -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fstrict-aliasing -malign-loops=2 -malign-jumps=2 -malign-functions=2 -D_REENTRANT -DPTHREADS -c glu.c
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -O -pipe -march=pentiumpro -DCOMPAT_LINUX_THREADS -DVM_STACK -Wall -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fstrict-aliasing -malign-loops=2 -malign-jumps=2 -malign-functions=2 -D_REENTRANT -DPTHREADS -c glu.c  -fPIC -DPIC -o glu.lo

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106171440.f5HEeWW81199>