I am trying to add a package (I know its older - but it should work) gst-rtsp-server-0.10.8 to CentOS 7. The gstreamer 0.10 packages are included in C7 and they compile just fine.
When I extract and try to compile gst-rtsp-server 0.10.8 the ./configure goes fine. but the make results in errors:
make make all-recursive make[1]: Entering directory `/home/silentm/LayeredSolutions/webkit-0.10/gst-rtsp-server-0.10.8.2' Making all in gst make[2]: Entering directory `/home/silentm/LayeredSolutions/webkit-0.10/gst-rtsp-server-0.10.8.2/gst' Making all in rtsp-server make[3]: Entering directory `/home/silentm/LayeredSolutions/webkit-0.10/gst-rtsp-server-0.10.8.2/gst/rtsp-server' CC libgstrtspserver_0.10_la-rtsp-media.lo rtsp-media.c: In function 'gst_rtsp_media_class_init': rtsp-media.c:143:3: error: 'g_thread_create' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:104): Use 'g_thread_new' instead [-Werror=deprecated-declarations] klass->thread = g_thread_create ((GThreadFunc) do_loop, klass, TRUE, &error); ^ rtsp-media.c: In function 'gst_rtsp_media_init': rtsp-media.c:160:3: error: 'g_mutex_new' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:277) [-Werror=deprecated-declarations] media->lock = g_mutex_new (); ^ rtsp-media.c:161:3: error: 'g_cond_new' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:281) [-Werror=deprecated-declarations] media->cond = g_cond_new (); ^ rtsp-media.c: In function 'gst_rtsp_media_finalize': rtsp-media.c:242:3: error: 'g_mutex_free' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:279) [-Werror=deprecated-declarations] g_mutex_free (media->lock); ^ rtsp-media.c:243:3: error: 'g_cond_free' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:283) [-Werror=deprecated-declarations] g_cond_free (media->cond); ^ rtsp-media.c: In function 'gst_rtsp_media_get_status': rtsp-media.c:1504:5: error: 'g_cond_timed_wait' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:285) [-Werror=deprecated-declarations] if (!g_cond_timed_wait (media->cond, media->lock, &timeout)) { ^
How to I get this package to compile just like the gst-plugins (bad, good, base) 0.10 for C7?
I was trying to look at the spec file for the other packages - but I dont see the trick.
Any pointers?
Jerry
On Tue, Feb 07, 2017 at 11:11:43AM -0500, Jerry Geis wrote:
When I extract and try to compile gst-rtsp-server 0.10.8 the ./configure goes fine. but the make results in errors:
[...]
CC libgstrtspserver_0.10_la-rtsp-media.lo rtsp-media.c: In function 'gst_rtsp_media_class_init': rtsp-media.c:143:3: error: 'g_thread_create' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:104): Use 'g_thread_new' instead [-Werror=deprecated-declarations] klass->thread = g_thread_create ((GThreadFunc) do_loop, klass, TRUE, &error);
So, the root of this problem is building old code against a new glib2, without updating the code. But it _looks_ like this should just be a warning, and has been promoted to an error. Are you building with -Werror?