After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 316162 - MinGW compilation: Undefined reference to sleep
MinGW compilation: Undefined reference to sleep
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Windows
: Normal normal
: 0.9.x
Assigned To: Andy Wingo
GStreamer Maintainers
Depends on:
Blocks: 316073
 
 
Reported: 2005-09-13 09:33 UTC by Michal Benes
Modified: 2005-09-13 13:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michal Benes 2005-09-13 09:33:21 UTC
gst/playback/test4.c calls function sleep (from unistd.h) but unistd.h in MinGW
does not define this function. 

To solve this g_usleep can be used for larger portability.
Comment 1 Tim-Philipp Müller 2005-09-13 13:53:19 UTC
Should be fixed in CVS:

2005-09-13  Tim-Philipp Müller  <tim at centricular dot net>

        * gst/audioconvert/Makefile.am:
          Audioconvert derives from GstBaseTransform and should
          link to the library with our base elements to avoid
          unresolved symbols. Makes things work with MinGW (#316160)

        * gst/playback/test4.c: (main):
          Fix MinGW build problem and use g_usleep() instead of
          sleep() (#316162)

Cheers
 -Tim