[MacPorts] #70299: grass fails to build: error: 'GL_FRAMEBUFFER' undeclared (first use in this function); did you mean 'GL_DRAW_BUFFER'?

MacPorts noreply at macports.org
Wed Jun 26 15:25:35 UTC 2024


#70299: grass fails to build: error: 'GL_FRAMEBUFFER' undeclared (first use in this
function); did you mean 'GL_DRAW_BUFFER'?
--------------------------+----------------------
 Reporter:  barracuda156  |      Owner:  nilason
     Type:  defect        |     Status:  assigned
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.9.3
 Keywords:                |       Port:  grass
--------------------------+----------------------
 {{{
 :info:build render.c: In function 'Nviz_make_current_render_window':
 :info:build render.c:372:5: warning: implicit declaration of function
 'glGenFramebuffers'; did you mean 'glGenFramebuffersEXT'? [-Wimplicit-
 function-declaration]
 :info:build   372 |     glGenFramebuffers(1, &framebuf);
 :info:build       |     ^~~~~~~~~~~~~~~~~
 :info:build       |     glGenFramebuffersEXT
 :info:build render.c:373:5: warning: implicit declaration of function
 'glBindFramebuffer'; did you mean 'glBindFramebufferEXT'? [-Wimplicit-
 function-declaration]
 :info:build   373 |     glBindFramebuffer(GL_FRAMEBUFFER, framebuf);
 :info:build       |     ^~~~~~~~~~~~~~~~~
 :info:build       |     glBindFramebufferEXT
 :info:build render.c:373:23: error: 'GL_FRAMEBUFFER' undeclared (first use
 in this function); did you mean 'GL_DRAW_BUFFER'?
 :info:build   373 |     glBindFramebuffer(GL_FRAMEBUFFER, framebuf);
 :info:build       |                       ^~~~~~~~~~~~~~
 :info:build       |                       GL_DRAW_BUFFER
 :info:build render.c:373:23: note: each undeclared identifier is reported
 only once for each function it appears in
 :info:build render.c:375:5: warning: implicit declaration of function
 'glGenRenderbuffers'; did you mean 'glGenRenderbuffersEXT'? [-Wimplicit-
 function-declaration]
 :info:build   375 |     glGenRenderbuffers(1, &renderbuf);
 :info:build       |     ^~~~~~~~~~~~~~~~~~
 :info:build       |     glGenRenderbuffersEXT
 :info:build render.c:376:5: warning: implicit declaration of function
 'glBindRenderbuffer'; did you mean 'glBindRenderbufferEXT'? [-Wimplicit-
 function-declaration]
 :info:build   376 |     glBindRenderbuffer(GL_RENDERBUFFER, renderbuf);
 :info:build       |     ^~~~~~~~~~~~~~~~~~
 :info:build       |     glBindRenderbufferEXT
 :info:build render.c:376:24: error: 'GL_RENDERBUFFER' undeclared (first
 use in this function); did you mean 'GL_READ_BUFFER'?
 :info:build   376 |     glBindRenderbuffer(GL_RENDERBUFFER, renderbuf);
 :info:build       |                        ^~~~~~~~~~~~~~~
 :info:build       |                        GL_READ_BUFFER
 :info:build render.c:377:5: warning: implicit declaration of function
 'glRenderbufferStorage'; did you mean 'glRenderbufferStorageEXT'?
 [-Wimplicit-function-declaration]
 :info:build   377 |     glRenderbufferStorage(GL_RENDERBUFFER, GL_RGBA8,
 rwin->width, rwin->height);
 :info:build       |     ^~~~~~~~~~~~~~~~~~~~~
 :info:build       |     glRenderbufferStorageEXT
 :info:build render.c:378:5: warning: implicit declaration of function
 'glFramebufferRenderbuffer'; did you mean 'glFramebufferRenderbufferEXT'?
 [-Wimplicit-function-declaration]
 :info:build   378 |     glFramebufferRenderbuffer(GL_FRAMEBUFFER,
 GL_COLOR_ATTACHMENT0,
 :info:build       |     ^~~~~~~~~~~~~~~~~~~~~~~~~
 :info:build       |     glFramebufferRenderbufferEXT
 :info:build render.c:378:47: error: 'GL_COLOR_ATTACHMENT0' undeclared
 (first use in this function); did you mean 'GL_COLOR_ATTACHMENT0_EXT'?
 :info:build   378 |     glFramebufferRenderbuffer(GL_FRAMEBUFFER,
 GL_COLOR_ATTACHMENT0,
 :info:build       |
 ^~~~~~~~~~~~~~~~~~~~
 :info:build       |
 GL_COLOR_ATTACHMENT0_EXT
 :info:build render.c:385:47: error: 'GL_DEPTH_ATTACHMENT' undeclared
 (first use in this function); did you mean 'GL_DEPTH_ATTACHMENT_EXT'?
 :info:build   385 |     glFramebufferRenderbuffer(GL_FRAMEBUFFER,
 GL_DEPTH_ATTACHMENT,
 :info:build       |
 ^~~~~~~~~~~~~~~~~~~
 :info:build       |
 GL_DEPTH_ATTACHMENT_EXT
 :info:build render.c:388:14: warning: implicit declaration of function
 'glCheckFramebufferStatus'; did you mean 'glCheckFramebufferStatusEXT'?
 [-Wimplicit-function-declaration]
 :info:build   388 |     status = glCheckFramebufferStatus(GL_FRAMEBUFFER);
 :info:build       |              ^~~~~~~~~~~~~~~~~~~~~~~~
 :info:build       |              glCheckFramebufferStatusEXT
 :info:build render.c:389:19: error: 'GL_FRAMEBUFFER_COMPLETE' undeclared
 (first use in this function); did you mean 'GL_FRAMEBUFFER_COMPLETE_EXT'?
 :info:build   389 |     if (status != GL_FRAMEBUFFER_COMPLETE) {
 :info:build       |                   ^~~~~~~~~~~~~~~~~~~~~~~
 :info:build       |                   GL_FRAMEBUFFER_COMPLETE_EXT
 :info:build make[3]: *** [OBJ.powerpc-apple-darwin10.0.0d2/render.o] Error
 1
 }}}

 Not sure if specific to powerpc, the port looks broken across the board:
 https://ports.macports.org/port/grass/details

 OpenGL has limited support on older systems; possible, `mesa` can be used
 there instead.

-- 
Ticket URL: <https://trac.macports.org/ticket/70299>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list