-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
I tried to compile madplay 0.15b without mmap( ./configure --disable-mmap ). Unfortunately the following error occurred:
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Iintl -DLOCALEDIR="/usr/local/share/ locale" -Wall -march=i486 -g -O2 -MT player.o -MD -MP -MF ".deps/ player.Tpo" \ -c -o player.o `test -f 'player.c' || echo './'`player.c; \ then mv -f ".deps/player.Tpo" ".deps/player.Po"; \ else rm -f ".deps/player.Tpo"; exit 1; \ fi player.c: In function `map_file': player.c:302: warning: implicit declaration of function `mmap' player.c:302: error: `PROT_READ' undeclared (first use in this function) player.c:302: error: (Each undeclared identifier is reported only once player.c:302: error: for each function it appears in.) player.c:302: error: `MAP_SHARED' undeclared (first use in this function) player.c:302: warning: assignment makes pointer from integer without a cast player.c:303: error: `MAP_FAILED' undeclared (first use in this function) player.c:307: warning: implicit declaration of function `madvise' player.c:307: error: `MADV_SEQUENTIAL' undeclared (first use in this function) player.c: In function `unmap_file': player.c:320: warning: implicit declaration of function `munmap' make[2]: ** [player.o] Erro 1 make[2]: Leaving directory `/home/rafael/unicamp/iniciacao/madplay-0.15.0b' make[1]: ** [all-recursive] Erro 1 make[1]: Leaving directory `/home/rafael/unicamp/iniciacao/madplay-0.15.0b' make: ** [all] Erro 2
The system is a Debian unstable. Does someone knows what is wrong?
Thanks.
On Tuesday, September 23, 2003, at 05:54 PM, Rafael Avila de Espíndola wrote:
I tried to compile madplay 0.15b without mmap( ./configure --disable-mmap ). Unfortunately the following error occurred:
...
Does someone knows what is wrong?
A curious oversight; the attached patch ought to cure it.
Thanks for reporting the problem.