[MPlayer-cygwin] Problems compiling libaf / missing mman.h

Stefan Gürtler Stefan.guertler at stud.tum.de
Sun Sep 21 13:15:03 CEST 2003


Hi
I have problems compiling libaf under Mingw. Any hints how to fix this?


make -C libaf
make[1]: Entering directory `/home/Stefan/MPlayer-cvs/main/libaf'
gcc -c -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-poi
nter                                              -D_LARGEFILE_SOURCE -D_FIL
E_OFFSET_BITS=64 -I. -Wall  -D_IO_H_ -o af.o af.c
af.c: In function `af_create':
af.c:93: warning: implicit declaration of function `strsep'
gcc -c -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-poi
nter                                              -D_LARGEFILE_SOURCE -D_FIL
E_OFFSET_BITS=64 -I. -Wall  -D_IO_H_ -o af_mp.o af_mp
.c
gcc -c -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-poi
nter                                              -D_LARGEFILE_SOURCE -D_FIL
E_OFFSET_BITS=64 -I. -Wall  -D_IO_H_ -o af_dummy.o af
_dummy.c
gcc -c -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-poi
nter                                              -D_LARGEFILE_SOURCE -D_FIL
E_OFFSET_BITS=64 -I. -Wall  -D_IO_H_ -o af_delay.o af
_delay.c
gcc -c -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-poi
nter                                              -D_LARGEFILE_SOURCE -D_FIL
E_OFFSET_BITS=64 -I. -Wall  -D_IO_H_ -o af_channels.o
af_channels.c
gcc -c -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-poi
nter                                              -D_LARGEFILE_SOURCE -D_FIL
E_OFFSET_BITS=64 -I. -Wall  -D_IO_H_ -o af_format.o a
f_format.c
gcc -c -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-poi
nter                                              -D_LARGEFILE_SOURCE -D_FIL
E_OFFSET_BITS=64 -I. -Wall  -D_IO_H_ -o af_resample.o
af_resample.c
af_resample.c: In function `control':
af_resample.c:203: warning: unsigned int format, different type arg (arg 3)
gcc -c -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-poi
nter                                              -D_LARGEFILE_SOURCE -D_FIL
E_OFFSET_BITS=64 -I. -Wall  -D_IO_H_ -o window.o wind
ow.c
gcc -c -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-poi
nter                                              -D_LARGEFILE_SOURCE -D_FIL
E_OFFSET_BITS=64 -I. -Wall  -D_IO_H_ -o filter.o filt
er.c
gcc -c -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-poi
nter                                              -D_LARGEFILE_SOURCE -D_FIL
E_OFFSET_BITS=64 -I. -Wall  -D_IO_H_ -o af_volume.o a
f_volume.c
gcc -c -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-poi
nter                                              -D_LARGEFILE_SOURCE -D_FIL
E_OFFSET_BITS=64 -I. -Wall  -D_IO_H_ -o af_equalizer.
o af_equalizer.c
gcc -c -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-poi
nter                                              -D_LARGEFILE_SOURCE -D_FIL
E_OFFSET_BITS=64 -I. -Wall  -D_IO_H_ -o af_tools.o af
_tools.c
gcc -c -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-poi
nter                                              -D_LARGEFILE_SOURCE -D_FIL
E_OFFSET_BITS=64 -I. -Wall  -D_IO_H_ -o af_comp.o af_
comp.c
gcc -c -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-poi
nter                                              -D_LARGEFILE_SOURCE -D_FIL
E_OFFSET_BITS=64 -I. -Wall  -D_IO_H_ -o af_gate.o af_
gate.c
gcc -c -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-poi
nter                                              -D_LARGEFILE_SOURCE -D_FIL
E_OFFSET_BITS=64 -I. -Wall  -D_IO_H_ -o af_pan.o af_p
an.c
gcc -c -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-poi
nter                                              -D_LARGEFILE_SOURCE -D_FIL
E_OFFSET_BITS=64 -I. -Wall  -D_IO_H_ -o af_surround.o
af_surround.c
gcc -c -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-poi
nter                                              -D_LARGEFILE_SOURCE -D_FIL
E_OFFSET_BITS=64 -I. -Wall  -D_IO_H_ -o af_sub.o af_s
ub.c
gcc -c -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-poi
nter                                              -D_LARGEFILE_SOURCE -D_FIL
E_OFFSET_BITS=64 -I. -Wall  -D_IO_H_ -o af_export.o a
f_export.c
af_export.c:16:22: sys/mman.h: No such file or directory
af_export.c: In function `control':
af_export.c:64: warning: implicit declaration of function `munmap'
af_export.c:67: warning: implicit declaration of function `close'
af_export.c:87: warning: implicit declaration of function `open'
af_export.c:99: warning: implicit declaration of function `write'
af_export.c:103: warning: implicit declaration of function `mmap'
af_export.c:103: error: `PROT_READ' undeclared (first use in this function)
af_export.c:103: error: (Each undeclared identifier is reported only once
af_export.c:103: error: for each function it appears in.)
af_export.c:103: error: `PROT_WRITE' undeclared (first use in this function)
af_export.c:103: error: `MAP_SHARED' undeclared (first use in this function)
af_export.c:103: warning: assignment makes pointer from integer without a
cast
af_export.c:112: warning: implicit declaration of function `msync'
af_export.c:112: error: `MS_ASYNC' undeclared (first use in this function)
af_export.c: In function `uninit':
af_export.c:163: warning: unused variable `i'
make[1]: *** [af_export.o] Error 1
make[1]: Leaving directory `/home/Stefan/MPlayer-cvs/main/libaf'
make: *** [libaf/libaf.a] Error 2

Stefan at J5U7R1 ~/MPlayer-cvs/main

That mman.h should be in msys/1.0/mingw/include/sys, next to types.h right?
(seem includes in af.export.c)
I have searched the whole /sys/1.0/ folder for the missing mman.h, but there
is no. Where to get it from?

Yours
Stefan


My setup:
I've updated source from cvs today, I am using MinGW-3.1.0-1.exe,
MSYS-1.0.9.exe and I have updated gcc to the latest Version available on
Mingw.org (gcc-core-3.3.1-20030804-1.tar.gz).
$ gcc -v
Reading specs from
D:/STEFAN/MSYS/1.0/mingw/bin/../lib/gcc-lib/mingw32/3.3.1/specs
Configured with:
../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --tar
get=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-language
s=c,c++,f77,objc,ada,java --disable-win32-registry --disable-shared --enable
-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-jav
a-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchro
nization
Thread model: win32
gcc version 3.3.1 (mingw special 20030804-1)

Do I have to update binutils, too? Do i have to update all the other parts
of the gcc (ada, java, objc etc), too?



More information about the MPlayer-cygwin mailing list