Opened 14 years ago

Closed 14 years ago

#23060 closed defect (fixed)

mesa 7.6.1_0 FTB on Tiger: conflicting types in glx_empty.c

Reported by: gale@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc:
Port: mesa

Description

This happens on Tiger Intel. If you find that it does not occur on other platforms, please change "FTB" to "FTB on Tiger" in the Summary. Thanks.

/usr/bin/gcc-4.0 -I. -Iinclude -Iinclude/internal -I/opt/local/include -I/opt/local/include -Wall -ggdb3 -Os -DPTHREADS -D_REENTRANT -DGLX_USE_APPLEGL -DGLX_ALIAS_UNSUPPORTED  -I/opt/local/include -I/opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/mesa/files/include -O2 -arch i386 -c glx_empty.c
glx_empty.c:40: error: conflicting types for 'glXBeginFrameTrackingMESA'
include/GL/glx.h:409: error: previous declaration of 'glXBeginFrameTrackingMESA' was here
glx_empty.c:50: error: conflicting types for 'glXEndFrameTrackingMESA'
include/GL/glx.h:410: error: previous declaration of 'glXEndFrameTrackingMESA' was here
glx_empty.c:60: error: conflicting types for 'glXGetFrameUsageMESA'
include/GL/glx.h:408: error: previous declaration of 'glXGetFrameUsageMESA' was here
glx_empty.c:72: error: conflicting types for 'glXQueryFrameTrackingMESA'
include/GL/glx.h:411: error: previous declaration of 'glXQueryFrameTrackingMESA' was here
make: *** [glx_empty.o] Error 1

Error: Unable to upgrade port: 1

Attachments (1)

glx_empty.c.patch (1.7 KB) - added by gale@… 14 years ago.
Change return type of the four functions from GLint to int in glx_empty.c

Download all attachments as: .zip

Change History (5)

comment:1 Changed 14 years ago by gale@…

In glx.h these four functions return an int, but in glx_empty.c they return a GLint.

Note, however, that GL/gl.h contains:

typedef int GLint; /* 4-byte signed */

comment:2 Changed 14 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to jeremyhu@…

comment:3 Changed 14 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Summary: mesa 7.6.1_0 FTB: conflicting types in glx_empty.cmesa 7.6.1_0 FTB on Tiger: conflicting types in glx_empty.c

Changed 14 years ago by gale@…

Attachment: glx_empty.c.patch added

Change return type of the four functions from GLint to int in glx_empty.c

comment:4 Changed 14 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.