Trick to compile older packages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux