Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#19105 closed defect (fixed)

mesa fails to build during upgrade from 7.2 to 7.4 on tiger

Reported by: dbevans (David B. Evans) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: dri2proto Cc: jdswinbank (John Swinbank), garribald@…, vincheval@…, jean-philippe.humbert@…
Port: mesa

Description

OS X 10.4.11, XCode 2.5 Mesa 7.4 fails to build during upgrade as follows:

DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_macports_trunk_dports_x11_mesa/work/Mesa-7.4" && make default INSTALL_DIR=/opt/local'
Making sources for darwin
gcc -c -I. -I../../../include -I../../../include/GL/internal -I../../../src/mesa -I../../../src/mesa/glapi    -ggdb3 -Os -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing -fno-common -I/opt/local/include -I/opt/local/include  -fPIC   -D_DARWIN_C_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DPTHREADS -DGLX_ALIAS_UNSUPPORTED -DGLX_INDIRECT_RENDERING -DXF86VIDMODE -D_REENTRANT -UIN_DRI_DRIVER -DDEFAULT_DRIVER_DIR=\"/opt/local/lib/dri\" dri2.c -o dri2.o
In file included from /opt/local/include/X11/Xlib.h:64,
                 from /opt/local/include/X11/Xlibint.h:43,
                 from dri2.c:35:
/opt/local/include/X11/Xosdefs.h:145:1: warning: "_DARWIN_C_SOURCE" redefined
<command line>:1:1: warning: this is the location of the previous definition
In file included from dri2.c:40:
dri2.h:37:39: error: X11/extensions/dri2tokens.h: No such file or directory
dri2.c: In function 'DRI2Connect':
dri2.c:117: error: 'struct <anonymous>' has no member named 'window'
dri2.c:118: error: 'struct <anonymous>' has no member named 'driverType'
dri2.c:118: error: 'DRI2DriverDRI' undeclared (first use in this function)
dri2.c:118: error: (Each undeclared identifier is reported only once
dri2.c:118: error: for each function it appears in.)
dri2.c:125: error: 'xDRI2ConnectReply' has no member named 'deviceNameLength'
dri2.c:135: error: 'xDRI2ConnectReply' has no member named 'deviceNameLength'
dri2.c:143: error: 'xDRI2ConnectReply' has no member named 'deviceNameLength'
dri2.c:146: error: 'xDRI2ConnectReply' has no member named 'deviceNameLength'
dri2.c:151: error: 'xDRI2ConnectReply' has no member named 'deviceNameLength'
dri2.c:152: error: 'xDRI2ConnectReply' has no member named 'deviceNameLength'
dri2.c: In function 'DRI2Authenticate':
dri2.c:163: error: 'xDRI2AuthenticateReq' undeclared (first use in this function)
dri2.c:163: error: 'req' undeclared (first use in this function)
dri2.c:164: error: 'xDRI2AuthenticateReply' undeclared (first use in this function)
dri2.c:164: error: parse error before 'rep'
dri2.c:169: error: 'sz_xDRI2AuthenticateReq' undeclared (first use in this function)
dri2.c:169: error: parse error before ')' token
dri2.c:169: error: 'X_DRI2Authenticate' undeclared (first use in this function)
dri2.c:175: error: 'rep' undeclared (first use in this function)
dri2.c: In function 'DRI2GetBuffers':
dri2.c:227: error: 'xDRI2GetBuffersReply' undeclared (first use in this function)
dri2.c:227: error: parse error before 'rep'
dri2.c:228: error: 'xDRI2GetBuffersReq' undeclared (first use in this function)
dri2.c:228: error: 'req' undeclared (first use in this function)
dri2.c:230: error: 'xDRI2Buffer' undeclared (first use in this function)
dri2.c:230: error: parse error before 'repBuffer'
dri2.c:237: error: 'sz_xDRI2GetBuffersReq' undeclared (first use in this function)
dri2.c:237: error: parse error before ')' token
dri2.c:237: error: 'X_DRI2GetBuffers' undeclared (first use in this function)
dri2.c:246: error: 'rep' undeclared (first use in this function)
dri2.c:258: error: 'repBuffer' undeclared (first use in this function)
dri2.c: In function 'DRI2CopyRegion':
dri2.c:283: error: 'xDRI2CopyRegionReq' undeclared (first use in this function)
dri2.c:283: error: 'req' undeclared (first use in this function)
dri2.c:284: error: 'xDRI2CopyRegionReply' undeclared (first use in this function)
dri2.c:284: error: parse error before 'rep'
dri2.c:289: error: 'sz_xDRI2CopyRegionReq' undeclared (first use in this function)
dri2.c:289: error: parse error before ')' token
dri2.c:289: error: 'X_DRI2CopyRegion' undeclared (first use in this function)
dri2.c:297: error: 'rep' undeclared (first use in this function)
make[2]: *** [dri2.o] Error 1
make[1]: *** [subdirs] Error 1
make: *** [default] Error 1

Failing file is Mesa-7.4/src/glx/x11/dri2.c

Change History (11)

comment:1 Changed 16 years ago by jdswinbank (John Swinbank)

Exactly the same error on 10.5.6/Xcode 3.1.2.

comment:2 Changed 16 years ago by vincheval@…

Same error on 10.5.6/Xcode 3.1.2.

I post the complete debug mode if it can help (the end is not here but it's a copy of the log posted)

DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/mesa DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/mesa DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: universal variant already exists, so not adding the default one DEBUG: Requested variant darwin is not provided by port mesa. DEBUG: Requested variant i386 is not provided by port mesa. DEBUG: Requested variant macosx is not provided by port mesa. DEBUG: Executing variant hw_render provides hw_render DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/xorg-libXi DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/xorg-libXi DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: adding the default universal variant DEBUG: Requested variant darwin is not provided by port xorg-libXi. DEBUG: Requested variant i386 is not provided by port xorg-libXi. DEBUG: Requested variant macosx is not provided by port xorg-libXi. DEBUG: Searching for dependency: xorg-libXi DEBUG: Found Dependency: receipt exists for xorg-libXi DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/xorg-libXmu DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/xorg-libXmu DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: adding the default universal variant DEBUG: Requested variant darwin is not provided by port xorg-libXmu. DEBUG: Requested variant i386 is not provided by port xorg-libXmu. DEBUG: Requested variant macosx is not provided by port xorg-libXmu. DEBUG: Searching for dependency: xorg-libXmu DEBUG: Found Dependency: receipt exists for xorg-libXmu DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/xorg-glproto DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/xorg-glproto DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: 'universal_variant no' specified, so not adding the default universal variant DEBUG: Requested variant darwin is not provided by port xorg-glproto. DEBUG: Requested variant i386 is not provided by port xorg-glproto. DEBUG: Requested variant macosx is not provided by port xorg-glproto. DEBUG: Searching for dependency: xorg-glproto DEBUG: Found Dependency: receipt exists for xorg-glproto DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/makedepend DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/makedepend DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: adding the default universal variant DEBUG: Requested variant darwin is not provided by port makedepend. DEBUG: Requested variant i386 is not provided by port makedepend. DEBUG: Requested variant macosx is not provided by port makedepend. DEBUG: Searching for dependency: makedepend DEBUG: Didn't find receipt, going to depspec regex for: makedepend DEBUG: Found Dependency: path: /usr/X11/bin filename: makedepend regex: makedepend$ DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/glut DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/glut DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: not using configure, so not adding the default universal variant DEBUG: Requested variant darwin is not provided by port glut. DEBUG: Requested variant i386 is not provided by port glut. DEBUG: Requested variant macosx is not provided by port glut. DEBUG: Searching for dependency: glut DEBUG: Found Dependency: receipt exists for glut DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/tcl DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/tcl DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: adding the default universal variant DEBUG: Requested variant darwin is not provided by port tcl. DEBUG: Requested variant i386 is not provided by port tcl. DEBUG: Requested variant macosx is not provided by port tcl. DEBUG: Searching for dependency: tcl DEBUG: Found Dependency: receipt exists for tcl DEBUG: Executing org.macports.main (mesa) DEBUG: Skipping completed org.macports.fetch (mesa) DEBUG: Skipping completed org.macports.checksum (mesa) DEBUG: setting option extract.cmd to /usr/bin/bzip2 DEBUG: Skipping completed org.macports.extract (mesa) DEBUG: Skipping completed org.macports.patch (mesa) DEBUG: Skipping completed org.macports.configure (mesa) ---> Building mesa DEBUG: Executing proc-pre-org.macports.build-build-0 DEBUG: Executing org.macports.build (mesa) DEBUG: port allows a parallel build DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'

comment:3 Changed 16 years ago by vincheval@…

oups sorry for the format...

comment:4 Changed 16 years ago by jdswinbank (John Swinbank)

Cc: swinbank@… added

Cc Me!

comment:5 Changed 16 years ago by garribald@…

Cc: garribald@… added

Cc Me!

comment:6 Changed 16 years ago by vincheval@…

Cc: vincheval@… added

Cc Me!

comment:7 Changed 16 years ago by dbevans (David B. Evans)

Looks like xorg-dri2proto needs to be updated to latest.

See http://bugs.freedesktop.org/show_bug.cgi?id=17381 #19108.

comment:8 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)

comment:9 Changed 16 years ago by jean-philippe.humbert@…

Cc: jean-philippe.humbert@… added

Cc Me!

comment:10 Changed 16 years ago by dbevans (David B. Evans)

Keywords: dri2proto added
Resolution: fixed
Status: newclosed

Confirming that the reported problem is fixed by the changes to ports mesa and xorg-dri2proto committed in r49000, r49001.

To get these changes and upgrade mesa

sudo port selfupdate
sudo port clean mesa
sudo port upgrade mesa

comment:11 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.