Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Feb 2004 12:16:54 -0800
From:      Keith Davis <shadowcrest@comcast.net>
To:        freebsd-ports@freebsd.org
Subject:   Xine fails to compile 
Message-ID:  <4037BCB6.8080606@comcast.net>

next in thread | raw e-mail | index | archive | help
if cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../../readline 
-I../../readline -I../../src -I../../src -I../../src/common 
-I../../src/common -I../../src/xitk/xine-toolkit 
-I../../src/xitk/xine-toolkit -I/usr/X11R6/include    
-I/usr/local/include -I/usr/X11R6/include  -I/usr/X11R6/include 
-D_THREAD_SAFE -I/usr/local/include  -I../../src/xitk/xine-toolkit 
-DNDEBUG -Wall -D_FILE_OFFSET_BITS=64 -pipe -fomit-frame-pointer 
-falign-functions=4 -falign-loops=4 -falign-jumps=4  
-mpreferred-stack-boundary=2 -fexpensive-optimizations -fschedule-insns2 
-fno-strict-aliasing -ffast-math -funroll-loops -finline-functions 
-D_REENTRANT  -D_THREAD_SAFE -O -pipe -MT download.o -MD -MP -MF 
".deps/download.Tpo"  -c -o download.o `test -f 'download.c' || echo 
'./'`download.c;  then mv -f ".deps/download.Tpo" ".deps/download.Po";  
else rm -f ".deps/download.Tpo"; exit 1;  fi
download.c: In function `network_download':
download.c:103: `FALSE' undeclared (first use in this function)
download.c:103: (Each undeclared identifier is reported only once
download.c:103: for each function it appears in.)
download.c:108: `TRUE' undeclared (first use in this function)
*** Error code 1

Stop in /usr/ports/multimedia/xine/work/xine-ui-0.9.23/src/xitk.
*** Error code 1

Stop in /usr/ports/multimedia/xine/work/xine-ui-0.9.23/src/xitk.

Here's a patch
--- /root/download.c    Sat Feb 21 12:10:33 2004
+++ download.c  Sat Feb 21 12:13:00 2004
@@ -34,6 +34,14 @@
 #include <curl/easy.h>
 #endif

+#ifndef TRUE
+#define TRUE 1
+#endif
+
+#ifndef FALSE
+#define FALSE 0
+#endif
+
 #include "common.h"

 extern gGui_t   *gGui;
~
~



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