Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32192 - gst-plugins-0.6.4 dies during compilation
Summary: gst-plugins-0.6.4 dies during compilation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-28 07:56 UTC by Mark Chappell
Modified: 2003-10-29 02:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch (patch,418 bytes, patch)
2003-10-29 00:48 UTC, Mark Chappell
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Chappell 2003-10-28 07:56:33 UTC
When I try to emerge gst-plugins v 0.6.4 (with emerge --update --deep world) It
dies complaining about sytax errors and undefined variables.  I believe that
this is partially because I am still using gcc 2.95.3, however portage insists
that anything >2.95.3 is still unstable.

gcc <3 doesn't like variables to be defined other than at the start of
functions, the following patch defines the variable at the start of the function

--- gst-plugins-0.6.4/gst/level/filter.func       2003-10-28 15:25:31.000000000
+0000
+++ gst-plugins-0.6.4/gst/level/filter.func    2003-10-28 15:16:44.000000000 +0000
@@ -8,2 +8,3 @@
   register int j;
+  gdouble normalizer;
   double squaresum = 0.0;      /* square sum of the integer samples */
@@ -14,3 +15,3 @@
 
-  gdouble normalizer = (double) (1 << resolution);
+  normalizer = (double) (1 << resolution);

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 David Love 2003-10-28 13:05:43 UTC
I had the same problem here (gcc 2.95.3).  Your patch fixed it.  Thanks.
Comment 2 foser (RETIRED) gentoo-dev 2003-10-28 15:21:24 UTC
can you attach patches please ?
Comment 3 Mark Chappell 2003-10-29 00:48:46 UTC
Created attachment 19922 [details, diff]
patch

Apologies,  patch should now be an attachment
Comment 4 foser (RETIRED) gentoo-dev 2003-10-29 02:43:39 UTC
no problem, was just a hint

just added the patch to gst-plugins-0.6.4 

thanks for the report & fix