Subject: libmpeg3 build failure on Mac OS X
To: None <tech-pkg@NetBSD.org>
From: Holger Amann <keeney@fehu.org>
List: tech-pkg
Date: 06/07/2005 19:14:33
Hi,
I'm running pkgsrc-current on Mac OS X 10.4.1 .

libmpeg3 fails to build:

dump.c:54: warning: incompatible implicit declaration of built-in
function 'strcpy'
gcc -c `./c_flags`  libmpeg3.c -o work/libmpeg3.o
gcc -c `./c_flags`  mpeg3atrack.c -o work/mpeg3atrack.o
gcc -c `./c_flags`  mpeg3cat.c -o work/mpeg3cat.o
gcc -c `./c_flags`  mpeg3css.c -o work/mpeg3css.o
gcc -c `./c_flags`  mpeg3demux.c -o work/mpeg3demux.o
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

there are different endian.h:

/usr/include/i386/endian.h
/usr/include/machine/endian.h
/usr/include/ppc/endian.h

but none in /usr/include/sys and no bswap.h at all.

Regards, Holger