Bug 242310 - fix build of graphics/glew-wayland on GCC-based systems
Summary: fix build of graphics/glew-wayland on GCC-based systems
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jan Beich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-30 02:34 UTC by Mark Linimon
Modified: 2019-11-30 09:15 UTC (History)
1 user (show)

See Also:
jbeich: maintainer-feedback+


Attachments
patch to graphics/glew/Makefile (394 bytes, patch)
2019-11-30 02:34 UTC, Mark Linimon
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Linimon freebsd_committer freebsd_triage 2019-11-30 02:34:21 UTC
Created attachment 209541 [details]
patch to graphics/glew/Makefile

New port graphics/glew-wayland fails on powerpc64/GCC:

  include/GL/eglew.h:115: error: redefinition of typedef 'EGLint'

This change to the masterport seems to fix it.  (I have no idea why the build of the masterport itself is not affected.)
Comment 1 commit-hook freebsd_committer freebsd_triage 2019-11-30 09:06:54 UTC
A commit references this bug:

Author: jbeich
Date: Sat Nov 30 09:06:22 UTC 2019
New revision: 518713
URL: https://svnweb.freebsd.org/changeset/ports/518713

Log:
  graphics/glew-wayland: unbreak on GCC architectures

  In file included from src/glew.c:43:
  include/GL/eglew.h:115: error: redefinition of typedef 'EGLint'
  /usr/local/include/EGL/eglplatform.h:158: error: previous declaration of 'EGLint' was here

  $ gcc42 -xc -c -
  typedef int foo;
  typedef int foo;
  ^D
  <stdin>:2: error: redefinition of typedef 'foo'
  <stdin>:1: error: previous declaration of 'foo' was here

  PR:		242310
  Reported by:	pkubaj

Changes:
  head/graphics/glew-wayland/Makefile
Comment 2 Jan Beich freebsd_committer freebsd_triage 2019-11-30 09:15:33 UTC
Sorry, I've mixed you with Piotr.

(In reply to Mark Linimon from comment #0)
> I have no idea why the build of the masterport itself is not affected.

glew-wayland uses EGL (instead of GLX) headers but builds the same files as master port.