GNOME Bugzilla – Bug 529692
[goom] fails to build on Windows with mingw32
Last modified: 2008-07-03 19:31:47 UTC
While trying to build gst-plugins-good-0.10.8 I get the following error: c:/dev/build-release/gst-plugins-good-0.10.8/gst/goom/filters.c:217: undefined reference to `random' c:/dev/build-release/gst-plugins-good-0.10.8/gst/goom/filters.c:218: undefined reference to `random' .libs/libgstgoom_la-goom_core.o: In function `init_buffers': c:/dev/build-release/gst-plugins-good-0.10.8/gst/goom/goom_core.c:41: undefined reference to `bzero' c:/dev/build-release/gst-plugins-good-0.10.8/gst/goom/goom_core.c:43: undefined reference to `bzero' c:/dev/build-release/gst-plugins-good-0.10.8/gst/goom/goom_core.c:45: undefined reference to `bzero'
Created attachment 109814 [details] [review] Proposed patch to fix the compilation This is my proposed patch to fix this issue. It works fine in my Windows XP and Vista boxes.
Please just change the bzero to memset in the code, or remove the bzero and change the mallocs to callocs.
(well, I guess whoever will commit it in the end can do that too, once -good is open for commits again).
Created attachment 109815 [details] [review] Proposed patch to fix the compilation 2 Updated patch
Committed, thanks! 2008-04-25 Tim-Philipp Müller <tim at centricular dot net> Patch by: Jesús Corrius <jesus at softcatala org> * gst/goom/filters.c: (zoomVector): * gst/goom/goom_core.c: (init_buffers): Fix build with mingw32: use rand() instead of random() and replace bzero() with memset(). Fixes #529692.
*** Bug 541384 has been marked as a duplicate of this bug. ***