ports/114903: [Maintainer Update] devel/ruby-rudl fix for invalid lvalue error with gcc4

Erik Greenwald erik at smluc.org
Wed Jul 25 16:20:02 UTC 2007


>Number:         114903
>Category:       ports
>Synopsis:       [Maintainer Update]  devel/ruby-rudl  fix for invalid lvalue error with gcc4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 25 16:20:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Erik Greenwald
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD vidar.br0kenland.org 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sat Jan 13 11:46:43 EST 2007 root at vidar.br0kenland.org:/usr/obj/usr/src/sys/VIDAR i386

>Description:

fixes the lvalue error when using gcc4

>How-To-Repeat:
>Fix:

--- devel_ruby-rudl.patch begins here ---
Index: devel/ruby-rudl/files/patch-flxplay.c
===================================================================
RCS file: devel/ruby-rudl/files/patch-flxplay.c
diff -N devel/ruby-rudl/files/patch-flxplay.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ devel/ruby-rudl/files/patch-flxplay.c	25 Jul 2007 15:44:25 -0000
@@ -0,0 +1,13 @@
+--- flxplay.c.orig	Wed Jul 25 11:40:05 2007
++++ flxplay.c	Wed Jul 25 11:40:27 2007
+@@ -42,8 +42,8 @@
+   int lastFrameTicks;
+ } FLC;
+ 
+-#define ReadU16(tmp1, tmp2) (Uint16)*(tmp1) = ((Uint8)*(tmp2+1)<<8)+(Uint8)*(tmp2);
+-#define ReadU32(tmp1, tmp2) (Uint32)*(tmp1) = (((((((Uint8)*(tmp2+3)<<8)+((Uint8)*(tmp2+2)))<<8)+((Uint8)*(tmp2+1)))<<8)+(Uint8)*(tmp2));
++#define ReadU16(tmp1, tmp2) *(Uint16 *)(tmp1) = ((Uint8)*(tmp2+1)<<8)+(Uint8)*(tmp2);
++#define ReadU32(tmp1, tmp2) *(Uint32 *)(tmp1) = (((((((Uint8)*(tmp2+3)<<8)+((Uint8)*(tmp2+2)))<<8)+((Uint8)*(tmp2+1)))<<8)+(Uint8)*(tmp2));
+ 
+ 
+ 
--- devel_ruby-rudl.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list