Subject: Re: libmpeg3 build failure on Mac OS X
To: Holger Amann <>
From: Hubert Feyrer <>
List: tech-pkg
Date: 06/08/2005 00:16:33
On Tue, 7 Jun 2005, Holger Amann wrote:
> gcc -c `./c_flags`  mpeg3ifo.c -o work/mpeg3ifo.o
> mpeg3ifo.c:7:24: error: sys/endian.h: No such file or directory
> mpeg3ifo.c:8:27: error: machine/bswap.h: No such file or directory
> gnumake: *** [work/mpeg3ifo.o] Error 1
> *** Error code 2

The codes comes from pkgsrc's patch-ac. Can you replace patch-ac with the 
patch below, run "make makepatchsum" and retry?
(Pure guessing, I don't have access to a MacOS X box).

  - Hubert

--- snip ---

--- mpeg3ifo.c.orig	2001-05-20 05:05:26.000000000 +0200
+++ mpeg3ifo.c
@@ -1,10 +1,18 @@
-#include <byteswap.h>
  #include <dirent.h>
  #include <fcntl.h>
  #include <stdlib.h>
  #include <string.h>
  #include <sys/types.h>

+#ifdef __NetBSD__
+#include <sys/endian.h>
+#include <machine/bswap.h>
+#define bswap_16(x) bswap16(x)
+#define bswap_32(x) bswap32(x)
+#include <byteswap.h>
  #include "ifo.h"
  #include "mpeg3private.h"
  #include "mpeg3protos.h"
--- snip ---

Genervt von Viren und von Viren versandten Spam-Mails?  ->
Fed up from viruses & virus-originated spam mail?       ->