Date: Wed, 18 Jan 2006 12:45:00 +0300 (MSK) From: Igor Pokrovsky <ip@doom.homeunix.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/91944: Update port: graphics/glew fix compiler errors when using glew with libglut 6.4.1 Message-ID: <200601180945.k0I9j0YH006438@doom.homeunix.org> Resent-Message-ID: <200601180950.k0I9o4Jl086789@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 91944 >Category: ports >Synopsis: Update port: graphics/glew fix compiler errors when using glew with libglut 6.4.1 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Jan 18 09:50:03 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Igor Pokrovsky >Release: FreeBSD 4.11-STABLE i386 >Organization: >Environment: System: FreeBSD doom.homeunix.org 4.11-STABLE FreeBSD 4.11-STABLE #0: Thu Dec 15 07:51:52 MSK 2005 root@doom.homeunix.org:/usr/obj/usr/src/sys/KERNEL-p3 i386 >Description: Fix undefined symbol errors when including glut.h just after glew.h in applications which depends on both of them. Bumped PORTREVISION. Added files: files/patch-include_GL_glew.h >How-To-Repeat: Try compiling the following test program #include <GL/glew.h> #include <GL/glut.h> int main() {} >Fix: --- glew.diff begins here --- diff -ruN /usr/ports/graphics/glew/Makefile glew/Makefile --- /usr/ports/graphics/glew/Makefile Mon Sep 5 21:52:41 2005 +++ glew/Makefile Wed Jan 18 12:35:37 2006 @@ -7,6 +7,7 @@ PORTNAME= glew PORTVERSION= 1.3.3 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff -ruN /usr/ports/graphics/glew/files/patch-include_GL_glew.h glew/files/patch-include_GL_glew.h --- /usr/ports/graphics/glew/files/patch-include_GL_glew.h Thu Jan 1 03:00:00 1970 +++ glew/files/patch-include_GL_glew.h Wed Jan 18 12:29:37 2006 @@ -0,0 +1,13 @@ +--- include/GL/glew.h.orig ++++ include/GL/glew.h +@@ -9647,7 +9647,9 @@ + #ifdef GLEW_APIENTRY_DEFINED + #undef GLEW_APIENTRY_DEFINED + #undef APIENTRY +-#undef GLAPIENTRY ++/* Do not undef GLAPIENTRY here. This is a quick hack to avoid ++ undefined symbols when including glut.h just after glew.h */ ++/* #undef GLAPIENTRY */ + #endif + + #ifdef GLEW_CALLBACK_DEFINED --- glew.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601180945.k0I9j0YH006438>