archimedes ~ # ebuild /usr/portage/media-video/mplayer/mplayer-1.0.20060217.ebuild merge
cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -march=k8 -mtune=k8 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I. -I.. -I/usr/kde/3.5/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/X11R6/include -o ao_openal.o ao_openal.c
ao_openal.c: In function 'init':
ao_openal.c:61: error: 'NULL' undeclared (first use in this function)
ao_openal.c:61: error: (Each undeclared identifier is reported only once
ao_openal.c:61: error: for each function it appears in.)
If I #define NULL 0 near the top of /var/tmp/portage/mplayer-1.0.20060217/work/mplayer-1.0.20060217/libao2/ao_openal.c mplayer compiles successfully.
This is fixed in the CVS version upstream, we'll just have to wait for another snapshot.
Predictably, this only occurs when USE="openal" is set.
*** Bug 124123 has been marked as a duplicate of this bug. ***
Is the bug still present in newer versions?
I have not encountered this bug since mplayer-1.0.20060217.