Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#19448 closed defect (worksforme)

mesa 7.4 wont build -- gl problem

Reported by: frstan@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: mesa GL Cc: andrea.damore@…, anddam (Andrea D'Amore)
Port: mesa

Description (last modified by blb@…)

cant build mesa 7.4 under leopard:

DEBUG: Executing proc-post-org.macports.extract-extract-0
DEBUG: Executing org.macports.patch (mesa)
--->  Applying patches to mesa
--->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/mesa/files/mesa-7.2-drm_headers.patch
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_mesa/work/Mesa-7.4" && patch -p1'
patching file src/glx/x11/drm.h
patching file src/glx/x11/xf86drm.h
--->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/mesa/files/mesa-7.4-x11dir.patch
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_mesa/work/Mesa-7.4" && patch -p1'
patching file configs/darwin
--->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/mesa/files/mesa-7.4-byte_order.patch
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_mesa/work/Mesa-7.4" && patch -p1'
patching file src/mesa/main/glheader.h
--->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/mesa/files/mesa-7.4-indirect.patch
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_mesa/work/Mesa-7.4" && patch -p1'
patching file src/glx/x11/indirect.c
DEBUG: Executing proc-post-org.macports.patch-patch-0
--->  Configuring mesa
DEBUG: Using compiler 'Mac OS X gcc 4.0'
DEBUG: Executing 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'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_mesa/work/Mesa-7.4" && make default INSTALL_DIR=/opt/local'
Making sources for darwin
touch depend
makedepend -fdepend -I. -I../../../include -I../../../include/GL/internal -I../../../src/mesa -I../../../src/mesa/glapi    glcontextmodes.c clientattrib.c compsize.c eval.c glxcmds.c glxcurrent.c glxext.c glxextensions.c indirect.c indirect_init.c indirect_size.c indirect_window_pos.c indirect_texture_compression.c indirect_transpose_matrix.c indirect_vertex_array.c indirect_vertex_program.c pixel.c pixelstore.c render2.c renderpix.c single2.c singlepix.c vertarr.c xfont.c glx_pbuffer.c glx_query.c drisw_glx.c dri_common.c dri_glx.c XF86dri.c glxhash.c dri2_glx.c dri2.c \
		../../../src/mesa/main/dispatch.c ../../../src/mesa/glapi/glapi.c ../../../src/mesa/glapi/glapi_getproc.c ../../../src/mesa/glapi/glthread.c  
makedepend: warning:  glcontextmodes.c, line 42: cannot find include file "GL/glxint.h"
	not in GL/glxint.h
	not in GL/glxint.h
	not in ./GL/glxint.h
	not in ../../../include/GL/glxint.h
	not in ../../../include/GL/internal/GL/glxint.h
	not in ../../../src/mesa/GL/glxint.h
	not in ../../../src/mesa/glapi/GL/glxint.h
	not in /usr/include/GL/glxint.h
makedepend: warning:  clientattrib.c (reading glxclient.h, line 53): cannot find include file "GL/glxint.h"
	not in GL/glxint.h
	not in GL/glxint.h
	not in ./GL/glxint.h
	not in ../../../include/GL/glxint.h
	not in ../../../include/GL/internal/GL/glxint.h
	not in ../../../src/mesa/GL/glxint.h
	not in ../../../src/mesa/glapi/GL/glxint.h
	not in /usr/include/GL/glxint.h
makedepend: warning:  clientattrib.c (reading glxclient.h, line 54): cannot find include file "GL/glxproto.h"
	not in GL/glxproto.h
	not in GL/glxproto.h
	not in ./GL/glxproto.h
	not in ../../../include/GL/glxproto.h
	not in ../../../include/GL/internal/GL/glxproto.h
	not in ../../../src/mesa/GL/glxproto.h
	not in ../../../src/mesa/glapi/GL/glxproto.h
	not in /usr/include/GL/glxproto.h
makedepend: warning:  indirect.c, line 36: cannot find include file "GL/glxproto.h"
	not in ./GL/glxproto.h
	not in ../../../include/GL/glxproto.h
	not in ../../../include/GL/internal/GL/glxproto.h
	not in ../../../src/mesa/GL/glxproto.h
	not in ../../../src/mesa/glapi/GL/glxproto.h
	not in /usr/include/GL/glxproto.h
makedepend: warning:  indirect_vertex_array.c, line 32: cannot find include file "GL/glxproto.h"
	not in ./GL/glxproto.h
	not in ../../../include/GL/glxproto.h
	not in ../../../include/GL/internal/GL/glxproto.h
	not in ../../../src/mesa/GL/glxproto.h
	not in ../../../src/mesa/glapi/GL/glxproto.h
	not in /usr/include/GL/glxproto.h
makedepend: warning:  indirect_vertex_array.c (reading indirect_vertex_array_priv.h, line 39): cannot find include file "GL/glxproto.h"
	not in ./GL/glxproto.h
	not in ../../../include/GL/glxproto.h
	not in ../../../include/GL/internal/GL/glxproto.h
	not in ../../../src/mesa/GL/glxproto.h
	not in ../../../src/mesa/glapi/GL/glxproto.h
	not in /usr/include/GL/glxproto.h
makedepend: warning:  indirect_vertex_program.c, line 31: cannot find include file "GL/glxproto.h"
	not in ./GL/glxproto.h
	not in ../../../include/GL/glxproto.h
	not in ../../../include/GL/internal/GL/glxproto.h
	not in ../../../src/mesa/GL/glxproto.h
	not in ../../../src/mesa/glapi/GL/glxproto.h
	not in /usr/include/GL/glxproto.h
makedepend: warning:  singlepix.c, line 37: cannot find include file "GL/glxproto.h"
	not in ./GL/glxproto.h
	not in ../../../include/GL/glxproto.h
	not in ../../../include/GL/internal/GL/glxproto.h
	not in ../../../src/mesa/GL/glxproto.h
	not in ../../../src/mesa/glapi/GL/glxproto.h
	not in /usr/include/GL/glxproto.h
makedepend: warning:  dri2.c (reading /usr/include/stdarg.h, line 4): cannot find include file "stdarg.h"
makedepend: warning:  dri2.c (reading ./drm.h), line 172: # warning "__SIZE_TYPE__ not defined.  Assuming sizeof(size_t) == sizeof(unsigned long)!"
makedepend: warning:  ../../../src/mesa/main/dispatch.c (reading /usr/include/float.h, line 8): cannot find include file "float.h"
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\" glcontextmodes.c -o glcontextmodes.o
In file included from /opt/local/include/X11/Xlib.h:64,
                 from ../../../include/GL/glx.h:38,
                 from glcontextmodes.c:41:
/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
glcontextmodes.c:42:23: error: GL/glxint.h: No such file or directory
In file included from glcontextmodes.c:67:
glcontextmodes.h:39: warning: type defaults to 'int' in declaration of '__GLXvisualConfig'
glcontextmodes.h:39: error: syntax error before '*' token
glcontextmodes.c:132: warning: type defaults to 'int' in declaration of '__GLXvisualConfig'
glcontextmodes.c:132: error: syntax error before '*' token
glcontextmodes.c:133: warning: no previous prototype for '_gl_copy_visual_to_context_mode'
glcontextmodes.c: In function '_gl_copy_visual_to_context_mode':
glcontextmodes.c:134: error: 'mode' undeclared (first use in this function)
glcontextmodes.c:134: error: (Each undeclared identifier is reported only once
glcontextmodes.c:134: error: for each function it appears in.)
glcontextmodes.c:139: error: 'config' undeclared (first use in this function)
make[2]: *** [glcontextmodes.o] Error 1
make[1]: *** [subdirs] Error 1
make: *** [default] Error 1
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_mesa/work/Mesa-7.4" && make default INSTALL_DIR=/opt/local " returned error 2
Command output: 	not in ./GL/glxproto.h
	not in ../../../include/GL/glxproto.h
	not in ../../../include/GL/internal/GL/glxproto.h
	not in ../../../src/mesa/GL/glxproto.h
	not in ../../../src/mesa/glapi/GL/glxproto.h
	not in /usr/include/GL/glxproto.h
makedepend: warning:  dri2.c (reading /usr/include/stdarg.h, line 4): cannot find include file "stdarg.h"
makedepend: warning:  dri2.c (reading ./drm.h), line 172: # warning "__SIZE_TYPE__ not defined.  Assuming sizeof(size_t) == sizeof(unsigned long)!"
makedepend: warning:  ../../../src/mesa/main/dispatch.c (reading /usr/include/float.h, line 8): cannot find include file "float.h"
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\" glcontextmodes.c -o glcontextmodes.o
In file included from /opt/local/include/X11/Xlib.h:64,
                 from ../../../include/GL/glx.h:38,
                 from glcontextmodes.c:41:
/opt/local/include/X11/Xosdefs.h:145:1: warning: "_DARWIN_C_SOURCE" redefined
glcontextmodes.c:132: warning: type defaults to 'int' in declaration of '__GLXvisualConfig'
glcontextmodes.c:132: error: syntax error before '*' token
glcontextmodes.c:133: warning: no previous prototype for '_gl_copy_visual_to_context_mode'
glcontextmodes.c: In function '_gl_copy_visual_to_context_mode':
glcontextmodes.c:134: error: 'mode' undeclared (first use in this function)
glcontextmodes.c:134: error: (Each undeclared identifier is reported only once
glcontextmodes.c:134: error: for each function it appears in.)
glcontextmodes.c:139: error: 'config' undeclared (first use in this function)
make[2]: *** [glcontextmodes.o] Error 1
make[1]: *** [subdirs] Error 1
make: *** [default] Error 1

Warning: the following items did not execute (for mesa): org.macports.destroot org.macports.build
DEBUG: invalid command name "::ui_init"
    while executing
"::ui_init $priority $prefix $channels $message"
    ("uplevel" body line 2)
    invoked from within
"uplevel 1 $body"
Error: Unable to upgrade port: 1

Attachments (1)

glcontextmodes.o.cpp (153 bytes) - added by frstan@… 15 years ago.
cpp output for Jeremy

Download all attachments as: .zip

Change History (15)

comment:1 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Can you please repost that in between brackets, so it's not messed up by WikiFormatting

like this

comment:2 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

glcontextmodes.c:132: error: syntax error before '*' token glcontextmodes.c:133: warning: no previous prototype for '_gl_copy_visual_to_context_mode' glcontextmodes.c: In function '_gl_copy_visual_to_context_mode': glcontextmodes.c:134: error: 'mode' undeclared (first use in this function) glcontextmodes.c:134: error: (Each undeclared identifier is reported only once glcontextmodes.c:134: error: for each function it appears in.) glcontextmodes.c:139: error: 'config' undeclared (first use in this function) make[2]: * [glcontextmodes.o] Error 1 make[1]: * [subdirs] Error 1 make: * [default] Error 1

What is your cpp doing for those lines? Can you please provide the cpp output (change -c to -E in the gcc command and attach the output)

comment:3 Changed 15 years ago by blb@…

Description: modified (diff)

comment:4 in reply to:  description Changed 15 years ago by frstan@…

DEBUG: Searching for dependency: xorg-libXfixes
DEBUG: Found Dependency: receipt exists for xorg-libXfixes
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 with_gnome is not provided by port makedepend.
DEBUG: Requested variant i386 is not provided by port makedepend.
DEBUG: Requested variant hw_render is not provided by port makedepend.
DEBUG: Requested variant macosx is not provided by port makedepend.
DEBUG: Searching for dependency: makedepend
DEBUG: Found Dependency: receipt exists for 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 with_gnome is not provided by port glut.
DEBUG: Requested variant i386 is not provided by port glut.
DEBUG: Requested variant hw_render 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 with_gnome is not provided by port tcl.
DEBUG: Requested variant i386 is not provided by port tcl.
DEBUG: Requested variant hw_render 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)
--->  Fetching mesa
DEBUG: Executing org.macports.fetch (mesa)
--->  Verifying checksum(s) for mesa
DEBUG: Executing org.macports.checksum (mesa)
--->  Checksumming MesaLib-7.4.tar.bz2
DEBUG: Correct (md5) checksum for MesaLib-7.4.tar.bz2
DEBUG: Correct (sha1) checksum for MesaLib-7.4.tar.bz2
DEBUG: Correct (rmd160) checksum for MesaLib-7.4.tar.bz2
--->  Checksumming MesaGLUT-7.4.tar.bz2
DEBUG: Correct (md5) checksum for MesaGLUT-7.4.tar.bz2
DEBUG: Correct (sha1) checksum for MesaGLUT-7.4.tar.bz2
DEBUG: Correct (rmd160) checksum for MesaGLUT-7.4.tar.bz2
--->  Checksumming AppleSGLX-57.tar.bz2
DEBUG: Correct (md5) checksum for AppleSGLX-57.tar.bz2
DEBUG: Correct (sha1) checksum for AppleSGLX-57.tar.bz2
DEBUG: Correct (rmd160) checksum for AppleSGLX-57.tar.bz2
DEBUG: setting option extract.cmd to /opt/local/bin/bzip2
--->  Extracting mesa
DEBUG: Executing org.macports.extract (mesa)
--->  Extracting MesaLib-7.4.tar.bz2
DEBUG: setting option extract.args to /opt/local/var/macports/distfiles/mesa/MesaLib-7.4.tar.bz2
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_mesa/work" && /opt/local/bin/bzip2 -dc /opt/local/var/macports/distfiles/mesa/MesaLib-7.4.tar.bz2 | /usr/bin/gnutar --no-same-owner -xf -'
--->  Extracting MesaGLUT-7.4.tar.bz2
DEBUG: setting option extract.args to /opt/local/var/macports/distfiles/mesa/MesaGLUT-7.4.tar.bz2
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_mesa/work" && /opt/local/bin/bzip2 -dc /opt/local/var/macports/distfiles/mesa/MesaGLUT-7.4.tar.bz2 | /usr/bin/gnutar --no-same-owner -xf -'
--->  Extracting AppleSGLX-57.tar.bz2
DEBUG: setting option extract.args to /opt/local/var/macports/distfiles/mesa/AppleSGLX-57.tar.bz2
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_mesa/work" && /opt/local/bin/bzip2 -dc /opt/local/var/macports/distfiles/mesa/AppleSGLX-57.tar.bz2 | /usr/bin/gnutar --no-same-owner -xf -'
DEBUG: Executing proc-post-org.macports.extract-extract-0
DEBUG: Executing org.macports.patch (mesa)
--->  Applying patches to mesa
--->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/mesa/files/mesa-7.2-drm_headers.patch
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_mesa/work/Mesa-7.4" && patch -p1'
patching file src/glx/x11/drm.h
patching file src/glx/x11/xf86drm.h
--->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/mesa/files/mesa-7.4-x11dir.patch
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_mesa/work/Mesa-7.4" && patch -p1'
patching file configs/darwin
--->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/mesa/files/mesa-7.4-byte_order.patch
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_mesa/work/Mesa-7.4" && patch -p1'
patching file src/mesa/main/glheader.h
--->  Applying /opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/mesa/files/mesa-7.4-indirect.patch
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_mesa/work/Mesa-7.4" && patch -p1'
patching file src/glx/x11/indirect.c
DEBUG: Executing proc-post-org.macports.patch-patch-0
--->  Configuring mesa
DEBUG: Using compiler 'Mac OS X gcc 4.0'
DEBUG: Executing 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'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_mesa/work/Mesa-7.4" && make default INSTALL_DIR=/opt/local'
Making sources for darwin
touch depend
makedepend -fdepend -I. -I../../../include -I../../../include/GL/internal -I../../../src/mesa -I../../../src/mesa/glapi    glcontextmodes.c clientattrib.c compsize.c eval.c glxcmds.c glxcurrent.c glxext.c glxextensions.c indirect.c indirect_init.c indirect_size.c indirect_window_pos.c indirect_texture_compression.c indirect_transpose_matrix.c indirect_vertex_array.c indirect_vertex_program.c pixel.c pixelstore.c render2.c renderpix.c single2.c singlepix.c vertarr.c xfont.c glx_pbuffer.c glx_query.c drisw_glx.c dri_common.c dri_glx.c XF86dri.c glxhash.c dri2_glx.c dri2.c \
		../../../src/mesa/main/dispatch.c ../../../src/mesa/glapi/glapi.c ../../../src/mesa/glapi/glapi_getproc.c ../../../src/mesa/glapi/glthread.c  
makedepend: warning:  glcontextmodes.c, line 42: cannot find include file "GL/glxint.h"
	not in GL/glxint.h
	not in GL/glxint.h
	not in ./GL/glxint.h
	not in ../../../include/GL/glxint.h
	not in ../../../include/GL/internal/GL/glxint.h
	not in ../../../src/mesa/GL/glxint.h
	not in ../../../src/mesa/glapi/GL/glxint.h
	not in /usr/include/GL/glxint.h
makedepend: warning:  clientattrib.c (reading glxclient.h, line 53): cannot find include file "GL/glxint.h"
	not in GL/glxint.h
	not in GL/glxint.h
	not in ./GL/glxint.h
	not in ../../../include/GL/glxint.h
	not in ../../../include/GL/internal/GL/glxint.h
	not in ../../../src/mesa/GL/glxint.h
	not in ../../../src/mesa/glapi/GL/glxint.h
	not in /usr/include/GL/glxint.h
makedepend: warning:  clientattrib.c (reading glxclient.h, line 54): cannot find include file "GL/glxproto.h"
	not in GL/glxproto.h
	not in GL/glxproto.h
	not in ./GL/glxproto.h
	not in ../../../include/GL/glxproto.h
	not in ../../../include/GL/internal/GL/glxproto.h
	not in ../../../src/mesa/GL/glxproto.h
	not in ../../../src/mesa/glapi/GL/glxproto.h
	not in /usr/include/GL/glxproto.h
makedepend: warning:  indirect.c, line 36: cannot find include file "GL/glxproto.h"
	not in ./GL/glxproto.h
	not in ../../../include/GL/glxproto.h
	not in ../../../include/GL/internal/GL/glxproto.h
	not in ../../../src/mesa/GL/glxproto.h
	not in ../../../src/mesa/glapi/GL/glxproto.h
	not in /usr/include/GL/glxproto.h
makedepend: warning:  indirect_vertex_array.c, line 32: cannot find include file "GL/glxproto.h"
	not in ./GL/glxproto.h
	not in ../../../include/GL/glxproto.h
	not in ../../../include/GL/internal/GL/glxproto.h
	not in ../../../src/mesa/GL/glxproto.h
	not in ../../../src/mesa/glapi/GL/glxproto.h
	not in /usr/include/GL/glxproto.h
makedepend: warning:  indirect_vertex_array.c (reading indirect_vertex_array_priv.h, line 39): cannot find include file "GL/glxproto.h"
	not in ./GL/glxproto.h
	not in ../../../include/GL/glxproto.h
	not in ../../../include/GL/internal/GL/glxproto.h
	not in ../../../src/mesa/GL/glxproto.h
	not in ../../../src/mesa/glapi/GL/glxproto.h
	not in /usr/include/GL/glxproto.h
makedepend: warning:  indirect_vertex_program.c, line 31: cannot find include file "GL/glxproto.h"
	not in ./GL/glxproto.h
	not in ../../../include/GL/glxproto.h
	not in ../../../include/GL/internal/GL/glxproto.h
	not in ../../../src/mesa/GL/glxproto.h
	not in ../../../src/mesa/glapi/GL/glxproto.h
	not in /usr/include/GL/glxproto.h
makedepend: warning:  singlepix.c, line 37: cannot find include file "GL/glxproto.h"
	not in ./GL/glxproto.h
	not in ../../../include/GL/glxproto.h
	not in ../../../include/GL/internal/GL/glxproto.h
	not in ../../../src/mesa/GL/glxproto.h
	not in ../../../src/mesa/glapi/GL/glxproto.h
	not in /usr/include/GL/glxproto.h
makedepend: warning:  dri2.c (reading /usr/include/stdarg.h, line 4): cannot find include file "stdarg.h"
makedepend: warning:  dri2.c (reading ./drm.h), line 172: # warning "__SIZE_TYPE__ not defined.  Assuming sizeof(size_t) == sizeof(unsigned long)!"
makedepend: warning:  ../../../src/mesa/main/dispatch.c (reading /usr/include/float.h, line 8): cannot find include file "float.h"
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\" glcontextmodes.c -o glcontextmodes.o
In file included from /opt/local/include/X11/Xlib.h:64,
                 from ../../../include/GL/glx.h:38,
                 from glcontextmodes.c:41:
/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
glcontextmodes.c:42:23: error: GL/glxint.h: No such file or directory
In file included from glcontextmodes.c:67:
glcontextmodes.h:39: warning: type defaults to 'int' in declaration of '__GLXvisualConfig'
glcontextmodes.h:39: error: syntax error before '*' token
glcontextmodes.c:132: warning: type defaults to 'int' in declaration of '__GLXvisualConfig'
glcontextmodes.c:132: error: syntax error before '*' token
glcontextmodes.c:133: warning: no previous prototype for '_gl_copy_visual_to_context_mode'
glcontextmodes.c: In function '_gl_copy_visual_to_context_mode':
glcontextmodes.c:134: error: 'mode' undeclared (first use in this function)
glcontextmodes.c:134: error: (Each undeclared identifier is reported only once
glcontextmodes.c:134: error: for each function it appears in.)
glcontextmodes.c:139: error: 'config' undeclared (first use in this function)
make[2]: *** [glcontextmodes.o] Error 1
make[1]: *** [subdirs] Error 1
make: *** [default] Error 1
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_mesa/work/Mesa-7.4" && make default INSTALL_DIR=/opt/local " returned error 2
Command output: 	not in ./GL/glxproto.h
	not in ../../../include/GL/glxproto.h
	not in ../../../include/GL/internal/GL/glxproto.h
	not in ../../../src/mesa/GL/glxproto.h
	not in ../../../src/mesa/glapi/GL/glxproto.h
	not in /usr/include/GL/glxproto.h
makedepend: warning:  dri2.c (reading /usr/include/stdarg.h, line 4): cannot find include file "stdarg.h"
makedepend: warning:  dri2.c (reading ./drm.h), line 172: # warning "__SIZE_TYPE__ not defined.  Assuming sizeof(size_t) == sizeof(unsigned long)!"
makedepend: warning:  ../../../src/mesa/main/dispatch.c (reading /usr/include/float.h, line 8): cannot find include file "float.h"
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\" glcontextmodes.c -o glcontextmodes.o
In file included from /opt/local/include/X11/Xlib.h:64,
                 from ../../../include/GL/glx.h:38,
                 from glcontextmodes.c:41:
/opt/local/include/X11/Xosdefs.h:145:1: warning: "_DARWIN_C_SOURCE" redefined
glcontextmodes.c:132: warning: type defaults to 'int' in declaration of '__GLXvisualConfig'
glcontextmodes.c:132: error: syntax error before '*' token
glcontextmodes.c:133: warning: no previous prototype for '_gl_copy_visual_to_context_mode'
glcontextmodes.c: In function '_gl_copy_visual_to_context_mode':
glcontextmodes.c:134: error: 'mode' undeclared (first use in this function)
glcontextmodes.c:134: error: (Each undeclared identifier is reported only once
glcontextmodes.c:134: error: for each function it appears in.)
glcontextmodes.c:139: error: 'config' undeclared (first use in this function)
make[2]: *** [glcontextmodes.o] Error 1
make[1]: *** [subdirs] Error 1
make: *** [default] Error 1

Warning: the following items did not execute (for mesa): org.macports.destroot org.macports.build
DEBUG: invalid command name "::ui_init"
    while executing
"::ui_init $priority $prefix $channels $message"
    ("uplevel" body line 2)
    invoked from within
"uplevel 1 $body"
Error: Unable to upgrade port: 1

comment:5 in reply to:  2 Changed 15 years ago by frstan@…

Replying to jeremyhu@…:

glcontextmodes.c:132: error: syntax error before '*' token glcontextmodes.c:133: warning: no previous prototype for '_gl_copy_visual_to_context_mode' glcontextmodes.c: In function '_gl_copy_visual_to_context_mode': glcontextmodes.c:134: error: 'mode' undeclared (first use in this function) glcontextmodes.c:134: error: (Each undeclared identifier is reported only once glcontextmodes.c:134: error: for each function it appears in.) glcontextmodes.c:139: error: 'config' undeclared (first use in this function) make[2]: * [glcontextmodes.o] Error 1 make[1]: * [subdirs] Error 1 make: * [default] Error 1

What is your cpp doing for those lines? Can you please provide the cpp output (change -c to -E in the gcc command and attach the output)

Jeremy, all I see is make and makedepend commands.... I dont see gcc ever being invoked

comment:6 Changed 15 years ago by jmroot (Joshua Root)

Cc: andrea.damore@… added
Owner: changed from macports-tickets@… to jeremyhu@…

comment:7 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

The command before the failure is gcc... run this:

gcc -E -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\" glcontextmodes.c -o glcontextmodes.o.cpp

Attach glcontextmodes.o.cpp

comment:8 Changed 15 years ago by frstan@…

done.

Changed 15 years ago by frstan@…

Attachment: glcontextmodes.o.cpp added

cpp output for Jeremy

comment:9 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

I think you did that in the wrong directory.

Please cd to /opt/local/var/macports/build/_Users_jeremy_src_macports-trunk_dports_x11_mesa/work/Mesa-7.4/src/glx/x11/ first...

comment:10 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Also, please attach your /opt/local/include/GL/glxint.h

comment:11 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:12 Changed 15 years ago by frstan@…

I was having some trouble following your instructions, so I tried this instead: sudo port -dfu upgrade mesa thus forcing all the ports mesa depended on to be rebuilt. mesa 7.4 then upgraded without a hitch.

comment:13 Changed 15 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: worksforme
Status: newclosed

comment:14 Changed 15 years ago by anddam (Andrea D'Amore)

Cc: and.damore@… added

Cc Me!

Note: See TracTickets for help on using tickets.