I did a 'emerge --update world' and the mplayer compile ended like
this:

>cc -c -I../libvo -I../../libvo -I/usr/X11R6/include -fno-PIC -O2 
>-mcpu=pentium4 -pipe -frename-registers -fno-pie -fno-pie -D_REENTRANT 
>-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gtk-1.2 
>-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I.. 
>-I../loader  -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 
>-I/usr/lib/glib/include -I/usr/X11R6/include -I../libavcodec -I../libavformat  
> -I/usr/src/linux/include -o stream_vcd.o stream_vcd.c
>In file included from /usr/src/linux/include/asm/byteorder.h:57,
>                 from /usr/src/linux/include/linux/cdrom.h:14,
>                 from vcd_read.h:7,
>                 from stream_vcd.c:25:
>/usr/src/linux/include/linux/byteorder/little_endian.h:43: error: syntax error 
>before "__cpu_to_le64p"
>/usr/src/linux/include/linux/byteorder/little_endian.h: In function 
>`__cpu_to_le64p':
>/usr/src/linux/include/linux/byteorder/little_endian.h:45: error: `__le64' 
>undeclared (first use in this function)

The relevant bits of /etc/make.conf are:

>CFLAGS="-O2 -mcpu=pentium4 -fomit-frame-pointer -pipe"
>CHOST="i686-pc-linux-gnu"
>CXXFLAGS="${CFLAGS}"
>MAKEOPTS="-j3"
>
>USE="-kde -gnome alsa oss avi cdr dvb dvd dvdr encode java mmx quicktime samba 
>sse sse2 truetype usb xine xv xvid"

I don't recall seeing anything like this on the list over the last few
weeks.

I saw a mail this morning about not using headers from /usr/src/linux,
but this seems to be doing just that. Could that be the cause of the
problem? I see that there are differences between
/usr/include/linux/byteorder/little_endian.h and
/usr/src/linux/include/linux/byteorder/little_endian.h, and the diff
listing shows these very macros which are failing in the compile.

If this is the problem, how do I make mplayer build against
/usr/include/linux rather than /usr/src/linux/include/linux?



-- 
gentoo-user@gentoo.org mailing list

Reply via email to