Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Feb 2002 01:18:30 -0400 (AST)
From:      ppl@bloodaxis.dyndns.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/35265: Port /usr/ports/graphics/xine is broken
Message-ID:  <20020224051830.3C28D9D2@bloodaxis.dyndns.org>

next in thread | raw e-mail | index | archive | help

>Number:         35265
>Category:       ports
>Synopsis:       Port /usr/ports/graphics/xine is broken
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 23 21:20:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     ppl
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD bloodaxis 4.4-STABLE FreeBSD 4.4-STABLE #5: Wed Dec 5 10:40:09 AST 2001 root@bloodaxis:/usr/src/sys/compile/BLOODAXIS i386


	
>Description:

	xine doesn't build, it have some missing #include and
warning. The patch attached fix this. Then it have a link error
which I can't find out how to fix. It gives an undefined reference
to `__pthread_detach'.

>How-To-Repeat:
	cd /usr/ports/graphics/xine ; make
>Fix:


diff -ru xine-ui-0.9.8-old/src/xitk/event.c xine-ui-0.9.8/src/xitk/event.c
--- xine-ui-0.9.8-old/src/xitk/event.c	Sat Feb 23 11:55:28 2002
+++ xine-ui-0.9.8/src/xitk/event.c	Sat Feb 23 12:06:13 2002
@@ -138,7 +138,6 @@
  * Disable all screensavers.
  */
 static void disable_screensavers(void) {
-  int dummy;
   
 #ifdef HAVE_DPMS
   /* 
@@ -147,6 +146,7 @@
   ssavers.xdpms.was_running = 0;
   
   if(DPMSQueryExtension(gGui->display, &dummy, &dummy)) {
+  int dummy;
     BOOL   enabled;
     
     DPMSInfo(gGui->display, &ssavers.xdpms.level, &enabled);
@@ -195,13 +195,13 @@
  * Re-enabling previously disabled screensavers.
  */
 static void reenable_screensavers(void) {
-  int dummy;
   
 #ifdef HAVE_DPMS
   /*
    * XFree DPMS
    */
   if(ssavers.xdpms.was_running) {
+    int dummy;
 
     if(DPMSQueryExtension(gGui->display, &dummy, &dummy)) {
       
diff -ru xine-ui-0.9.8-old/src/xitk/panel.c xine-ui-0.9.8/src/xitk/panel.c
--- xine-ui-0.9.8-old/src/xitk/panel.c	Sat Feb 23 11:55:28 2002
+++ xine-ui-0.9.8/src/xitk/panel.c	Sat Feb 23 12:22:11 2002
@@ -30,6 +30,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <pthread.h>
+#include <sched.h>
 
 #include <xine/xineutils.h>
 
diff -ru xine-ui-0.9.8-old/src/xitk/xine-toolkit/label.c xine-ui-0.9.8/src/xitk/xine-toolkit/label.c
--- xine-ui-0.9.8-old/src/xitk/xine-toolkit/label.c	Sat Feb 23 11:55:27 2002
+++ xine-ui-0.9.8/src/xitk/xine-toolkit/label.c	Sat Feb 23 11:58:14 2002
@@ -28,6 +28,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <pthread.h>
+#include <sched.h>
 #include <unistd.h>
 
 #include "Imlib-light/Imlib.h"
@@ -216,6 +217,8 @@
   } while(w->running && private_data->anim_running);
   
   pthread_exit(NULL);
+
+  return NULL;
 }
 
 /*
diff -ru xine-ui-0.9.8-old/src/xitk/xine-toolkit/tips.c xine-ui-0.9.8/src/xitk/xine-toolkit/tips.c
--- xine-ui-0.9.8-old/src/xitk/xine-toolkit/tips.c	Sat Feb 23 11:55:27 2002
+++ xine-ui-0.9.8/src/xitk/xine-toolkit/tips.c	Sat Feb 23 12:04:25 2002
@@ -27,6 +27,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <pthread.h>
+#include <sched.h>
 #include <inttypes.h>
 #include <unistd.h>
 
@@ -110,6 +111,8 @@
   disptips = NULL;
 
   pthread_exit(NULL);
+
+  return NULL;
 }
 
 /*
@@ -240,6 +243,8 @@
   tp->w->tips_thread = 0;
 
   pthread_exit(NULL);
+
+  return NULL;
 }
 
 /*
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020224051830.3C28D9D2>