ports/114587: patch audio/openal: fix build depending ports on 7-current
Max Brazhnikov
makc at issp.ac.ru
Sat Jul 14 16:10:01 UTC 2007
>Number: 114587
>Category: ports
>Synopsis: patch audio/openal: fix build depending ports on 7-current
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Jul 14 16:10:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Max Brazhnikov
>Release: FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
FreeBSD luna.dio.ru 6.2-STABLE FreeBSD 6.2-STABLE #0: Sat Jul 7 13:05:41 MSD 2007 root at luna.dio.ru:/usr/obj/usr/src/sys/LUNA i386
>Description:
Several ports (I've checked games/chromium, games/trigger, devel/simgear, may be more ports are affected) depending on openal failed to build on current with errors:
/usr/local/include/AL/alc.h:190: error: '<anonymous>' has incomplete type
/usr/local/include/AL/alc.h:190: error: invalid use of 'ALCvoid'
/usr/local/include/AL/alc.h:251: error: '<anonymous>' has incomplete type
/usr/local/include/AL/alc.h:251: error: invalid use of 'ALCvoid'
The similar problem in Debian (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=379862) was solved by patching openal
>How-To-Repeat:
>Fix:
apply patch attached
Patch attached with submission follows:
diff -ruN --exclude=CVS /usr/ports/audio/openal/files/patch-common__include__AL__alc.h /home/makc/porting/ports/audio/openal/files/patch-common__include__AL__alc.h
--- /usr/ports/audio/openal/files/patch-common__include__AL__alc.h Thu Jan 1 03:00:00 1970
+++ /home/makc/porting/ports/audio/openal/files/patch-common__include__AL__alc.h Sat Jul 14 19:33:57 2007
@@ -0,0 +1,20 @@
+--- ./common/include/AL/alc.h.orig Sat Feb 11 12:36:55 2006
++++ ./common/include/AL/alc.h Sat Jul 14 19:33:48 2007
+@@ -187,7 +187,7 @@
+
+ ALC_API void ALC_APIENTRY alcDestroyContext( ALCcontext *context );
+
+-ALC_API ALCcontext * ALC_APIENTRY alcGetCurrentContext( ALCvoid );
++ALC_API ALCcontext * ALC_APIENTRY alcGetCurrentContext( void );
+
+ ALC_API ALCdevice* ALC_APIENTRY alcGetContextsDevice( ALCcontext *context );
+
+@@ -248,7 +248,7 @@
+ typedef void (ALC_APIENTRY *LPALCPROCESSCONTEXT)( ALCcontext *context );
+ typedef void (ALC_APIENTRY *LPALCSUSPENDCONTEXT)( ALCcontext *context );
+ typedef void (ALC_APIENTRY *LPALCDESTROYCONTEXT)( ALCcontext *context );
+-typedef ALCcontext * (ALC_APIENTRY *LPALCGETCURRENTCONTEXT)( ALCvoid );
++typedef ALCcontext * (ALC_APIENTRY *LPALCGETCURRENTCONTEXT)( void );
+ typedef ALCdevice * (ALC_APIENTRY *LPALCGETCONTEXTSDEVICE)( ALCcontext *context );
+ typedef ALCdevice * (ALC_APIENTRY *LPALCOPENDEVICE)( const ALCchar *devicename );
+ typedef ALCboolean (ALC_APIENTRY *LPALCCLOSEDEVICE)( ALCdevice *device );
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list