Subject: multimedia/vls compile failure
To: None <tech-pkg@NetBSD.org>
From: Rhialto <rhialto@azenomei.knuffel.net>
List: tech-pkg
Date: 05/18/2004 20:38:11
Hi tech-pkg,
when I compiled vls on my Alpha with NetBSD 1.6.2 and pth-2.0.0 as
thread library, I had to make the following changes.
There were duplicate typedefs (probably nobody compiled this on a 64-bit
machine before, since there were a whole lot of them), and a header file
which I don't appear to have (or need) <semaphore.h>.
--- src/core/common.h.dist Mon Feb 3 13:26:39 2003
+++ src/core/common.h Tue May 18 19:57:20 2004
@@ -72,6 +72,7 @@
#endif
// Basic types definitions
+#if 0 /* duplicate of better definitions below */
typedef signed char s8;
typedef signed short s16;
typedef signed int s32;
@@ -90,14 +91,7 @@
typedef unsigned long long u64;
#endif
-// Byte type
-typedef u8 byte;
-
-// Handles
-typedef void* handle;
-
-// Counter for statistics and profiling
-typedef unsigned long count;
+#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
@@ -130,6 +124,15 @@
typedef signed long long s64;
# endif
#endif
+
+// Byte type
+typedef u8 byte;
+
+// Handles
+typedef void* handle;
+
+// Counter for statistics and profiling
+typedef unsigned long count;
#if defined( WIN32)
typedef int ssize_t;
--- src/core/thread.cpp.dist Tue May 18 20:00:17 2004
+++ src/core/thread.cpp Tue May 18 19:59:24 2004
@@ -32,7 +32,7 @@
#ifdef PTHREAD_COND_T_IN_PTHREAD_H
#include <pthread.h>
-#include <semaphore.h>
+/* #include <semaphore.h> */
#include <errno.h>
#elif defined WIN32
#include <windows.h>
--- src/core/core.h.dist Wed May 15 00:10:08 2002
+++ src/core/core.h Tue May 18 20:01:35 2004
@@ -51,7 +51,7 @@
#ifdef PTHREAD_COND_T_IN_PTHREAD_H
#include <pthread.h> // For... thread.h
-#include <semaphore.h> // For thread.h
+/* #include <semaphore.h> */ // For thread.h
#endif
#ifdef HAVE_DLFCN_H
-Olaf.
--
___ Olaf 'Rhialto' Seibert
\X/ rhialto/at/xs4all.nl -- Cetero censeo "authored" delendum esse.