[MPlayer-users] Can't compile latest MPLayer CVS

Christian Roche christian_roche at noos.fr
Fri Oct 29 21:57:19 CEST 2004


Hi again,

I submitted this problem some times ago but seem to have had no answer. Is my 
question ridiculy obvious ? I think I thorougly read the documentation, I 
can't see my mistake. What puzzles me is that I found nothing similar on the 
archive or google... Any help ? Here's the description:

I encounter a bug when compiling the latest CVS MPlayer snapshot (with CVS
 for libavcodec and libavformat included) :

cd main
cvs update -r HEAD
./configure --enable-gui --disable-tv --disable-inet6 --disable-esd --cc=gcc
make
...
>make[1]: Entering directory `/usr/src/site-local/MPlayer/main/libao2'
>gcc -c -I../libvo -I../../libvo -I/usr/X11R6/include -fno-PIC -O4 
-march=athlon-4 -mcpu=athlon-4 -pipe -ffast-math -fomit-frame-pointer 
-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.. -I/usr/include/kde/artsc -pthread 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   
-I/usr/include/SDL-D_REENTRANT -I/usr/X11R6/include -I/usr/include/gtk-1.2 
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include   -o 
ao_pcm.o ao_pcm.c> ao_pcm.c:55: error: initializer element is not constant
> ao_pcm.c:55: error: (near initialization for `wavhdr.riff')
> ao_pcm.c:58: error: initializer element is not constant
> ao_pcm.c:58: error: (near initialization for `wavhdr.wave')
> ao_pcm.c:59: error: initializer element is not constant
etc, etc...

My config:
System: Fedora Core 2

> uname -a
Linux jimi 2.6.8.1 #1 Tue Aug 24 00:54:37 CEST 2004 i686 athlon i386 GNU/Linux

> ls -l /lib/libc[.-]*
-rwxr-xr-x  1 root root 1.4M May 11 15:20 /lib/libc-2.3.3.so*
lrwxr-xr-x  1 root root   13 May 22 00:24 /lib/libc.so.6 -> libc-2.3.3.so*

> gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-shared --enable-threads=posix 
--disable-checking --disable-libunwind-exceptions --with-system-zlib 
--enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)

> ld -v
GNU ld version 2.15.90.0.3 20040415

> as --version
GNU assembler 2.15.90.0.3 20040415
This assembler was configured for a target of `i386-redhat-linux'.

> cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 7
model name      : AMD Duron(TM)
stepping        : 1
cpu MHz         : 1300.668
cache size      : 64 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow
bogomips        : 2555.90

> grep ^# config.h
#ifndef MPLAYER_CONFIG_H
#define MPLAYER_CONFIG_H 1
#define USE_I18N 1
#ifndef MAP_FAILED
# define MAP_FAILED     ((void *) -1)
#endif
#define USE_SETLOCALE 1
#undef RUNTIME_CPUDETECT
#undef DYNAMIC_PLUGINS
#define restrict __restrict
#if (__GNUC__ * 100 + __GNUC_MINOR__ >= 300)
# define attribute_used __attribute__((used))
#else
# define attribute_used
#endif
#define PREFIX "/usr/local"
#define USE_OSD 1
#define USE_SUB 1
#define ENABLE_SIGHANDLER 1
#undef MP_DEBUG
#define USE_DVDREAD 1
#define USE_MPDVDKIT 2
#undef DVD_STRUCT_IN_DVD_H
#define DVD_STRUCT_IN_LINUX_CDROM_H 1
#undef DVD_STRUCT_IN_SYS_CDIO_H
#undef DVD_STRUCT_IN_SYS_DVDIO_H
#undef DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H
#undef HAVE_BSD_DVD_STRUCT
#define HAVE_LINUX_DVD_STRUCT 1
#undef HAVE_OPENBSD_DVD_STRUCT
#undef DARWIN_DVD_IOCTL
#undef SOLARIS_USCSI
#undef HPUX_SCTL_IO
#define HAVE_STDDEF_H 1
#define MPLAYER_DATADIR "/usr/local/share/mplayer"
#define MPLAYER_CONFDIR "/usr/local/etc/mplayer"
#define MPLAYER_LIBDIR "/usr/local/lib"
#define USE_STREAM_CACHE 1
#define USE_DIVX
#define NEW_DECORE 1
#define DECORE_DIVX5 1
#undef HAVE_XVID3
#define HAVE_XVID4 1
#undef DECORE_XVID
#undef ENCORE_XVID
#undef HAVE_X264
#define HAVE_LIBDV095 1
#define HAVE_MENCODER
#define HAVE_DIVX4ENCORE 1
#define HAVE_MP3LAME 396
#define CONFIG_MP3LAME 396
#undef USE_MP1E
#define AVI_SYNC_BPS 1
#define USE_FAKE_MONO 1
#define HAVE_AUDIO_SELECT 1
#define USE_ICONV 1
#define USE_LANGINFO 1
#define HAVE_RTC 1
#define MAX_OUTBURST 65536
#define OUTBURST 512
#define HAVE_SYS_SOUNDCARD_H 1
#undef HAVE_SOUNDCARD_H
#define HAVE_SYS_SYSINFO_H 1
#define HAVE_FTELLO 1
#ifndef HAVE_FTELLO
#include <stdio.h>
#include <sys/types.h>
#endif
#define HAVE_MALLOC_H 1
#define HAVE_MEMALIGN 1
#ifndef HAVE_MEMALIGN
# define memalign(a,b) malloc(b)
#endif
#define HAVE_ALLOCA_H 1
#define HAVE_SYS_MMAN_H 1
#define HAVE_LIBDL 1
#undef HAVE_LIBKSTAT
#define HAVE_ZLIB 1
#ifdef HAVE_ZLIB
#define CONFIG_ZLIB 1
#endif
#define HAVE_SHM 1
#define HAVE_SCANDIR 1
#define HAVE_STRSEP 1
#undef HAVE_STRLCPY
#ifndef HAVE_STRLCPY
#endif
#undef HAVE_STRLCAT
#ifndef HAVE_STRLCAT
#endif
#define HAVE_FSEEKO 1
#ifndef HAVE_FSEEKO
#include <stdio.h>
#include <sys/types.h>
#endif
#define HAVE_LOCALTIME_R 1
#define HAVE_VSSCANF 1
#define HAVE_SWAB 1
#undef HAVE_NO_POSIX_SELECT
#define HAVE_GETTIMEOFDAY 1
#define HAVE_GLOB 1
#define HAVE_PTHREADS 1
#undef HAVE_LIRC
#undef HAVE_LIRCC
#define MPEG12_POSTPROC 1
#define FF_POSTPROCESS 1
#undef HAVE_ODIVX_POSTPROCESS
#define USE_WIN32DLL 1
#define WIN32_PATH "/usr/local/lib/codecs"
#define USE_DIRECTSHOW 1
#undef MACOSX
#undef USE_MACSHLB
#define WIN32_LOADER 1
#define USE_LIBAVCODEC 1
#undef USE_LIBAVCODEC_SO
#define USE_LIBAVFORMAT 1
#undef CONFIG_WIN32
#define CONFIG_RISKY 1
#define CONFIG_DECODERS 1
#define CONFIG_ENCODERS 1
#define CONFIG_MPEGAUDIO_HP 1
#define USE_MP3LIB 1
#define USE_LIBA52 1
#undef CONFIG_DTS
#define USE_LIBMPEG2 1
#undef USE_LIBFAME
#define USE_XANIM 1
#define XACODEC_PATH "/usr/local/lib/codecs"
#define USE_REALCODECS 1
#define REALCODEC_PATH "/usr/local/lib/codecs"
#undef STREAMING_LIVE_DOT_COM
#define USE_FASTMEMCPY 1
#define USE_UNRARLIB 1
#define HAVE_NEW_GUI 1
#define USE_OSS_AUDIO 1
#define PATH_DEV_DSP "/dev/dsp"
#define PATH_DEV_MIXER "/dev/mixer"
#undef HAVE_ALSA5
#undef HAVE_ALSA9
#define HAVE_ALSA1X 1
#define USE_ARTS 1
#undef USE_ESD
#undef HAVE_ESD_LATENCY
#undef HAVE_SYS_ASOUNDLIB_H
#define HAVE_ALSA_ASOUNDLIB_H 1
#undef USE_SUN_AUDIO
#undef USE_SGI_AUDIO
#undef HAVE_WIN32WAVEOUT
#undef HAVE_NAS
#undef FAST_OSD
#undef FAST_OSD_TABLE
#undef USE_TV
#define USE_EDL
#undef HAVE_TV_V4L
#undef HAVE_TV_V4L2
#undef HAVE_TV_BSDBT848
#define WORDS_BIGENDIAN 1
#define ARCH_X86 1
#ifdef ARCH_POWERPC
#define ARCH_PPC 1
#endif
#ifdef ARCH_ARMV4L
#define ARCH_ARM 1
#endif
#define __CPU__ 686
#define MP_WORDSIZE 32
#define TARGET_LINUX 1
#define HAVE_VCD 1
#ifdef sun
#define	DEFAULT_CDROM_DEVICE	"/vol/dev/aliases/cdrom0"
#define DEFAULT_DVD_DEVICE	DEFAULT_CDROM_DEVICE
#elif defined(HPUX)
#define DEFAULT_CDROM_DEVICE    "/dev/cdrom"
#define DEFAULT_DVD_DEVICE     "/dev/dvd"
#elif defined(WIN32)
#define DEFAULT_CDROM_DEVICE    "D:"
#define DEFAULT_DVD_DEVICE	"D:"
#elif defined(SYS_DARWIN)
#define DEFAULT_CDROM_DEVICE    "/dev/disk1"
#define DEFAULT_DVD_DEVICE	"/dev/rdiskN"
#elif defined(__OpenBSD__)
#define DEFAULT_CDROM_DEVICE	"/dev/rcd0a"
#define DEFAULT_DVD_DEVICE	DEFAULT_CDROM_DEVICE
#else
#define DEFAULT_CDROM_DEVICE    "/dev/cdrom"
#define DEFAULT_DVD_DEVICE	"/dev/dvd"
#endif
#define HAVE_LRINTF 1
#define HAVE_INTTYPES_H 1
#define HAVE_NANOSLEEP 1
#undef LIBSMBCLIENT
#undef USE_TERMCAP
#define HAVE_TERMIOS 1
#undef HAVE_TERMIOS_H
#define HAVE_SYS_TERMIOS_H 1
#define HAVE_PNG 1
#define HAVE_JPEG 1
#define HAVE_PNM
#define HAVE_MD5SUM
#define HAVE_GIF 1
#define HAVE_GIF_4 1
#undef HAVE_GIF_TVT_HACK
#define HAVE_FREETYPE
#define HAVE_FONTCONFIG
#undef USE_FRIBIDI
#undef HAVE_ENCA
#define USE_LIBLZO 1
#define USE_LIBMAD 1
#define HAVE_OGGVORBIS 1
#undef TREMOR
#undef HAVE_OGGTHEORA
#define HAVE_MATROSKA 1
#define HAVE_FAAD 1
#define USE_INTERNAL_FAAD 1
#define FAADVERSION 21
#define MPLAYER_NETWORK 1
#define HAVE_FTP 1
#undef HAVE_WINSOCK2
#undef USE_ATON
#define HAVE_CDDA
#define CONFIG_VIDIX 1
#undef HAVE_JOYSTICK
#define USE_QTX_CODECS 1
#undef HAVE_MENU
#define USE_SORTSUB 1
#undef HAVE_XMMS
#define XMMS_INPUT_PLUGIN_DIR ""
#undef HAVE_AF_INET6
#define HAVE_GETHOSTBYNAME2 1
#define HAVE_3DNOW 1	// only define if you have 3DNOW (AMD k6-2, AMD Athlon, 
iDT WinChip, etc.)
#define HAVE_3DNOWEX 1	// only define if you have 3DNOWEX (AMD Athlon, etc.)
#define HAVE_MMX 1	// only define if you have MMX (newer x86 chips, not 
P54C/PPro)
#define HAVE_MMX2 1	// only define if you have MMX2 (Athlon/PIII/4/CelII)
#define HAVE_SSE 1	// only define if you have SSE (Intel Pentium III/4 or 
Celeron II)
#undef HAVE_SSE2	// only define if you have SSE2 (Intel Pentium 4)
#undef HAVE_MLIB  // Sun mediaLib, available only on solaris
#ifdef HAVE_MLIB
#define LIBMPEG2_MLIB 1
#endif
#define SCREEN_SIZE_X 1
#define SCREEN_SIZE_Y 1
#define HAVE_X11 1
#define HAVE_XV 1
#undef HAVE_XVMC
#define HAVE_XF86VM 1
#define HAVE_XINERAMA 1
#define HAVE_GL 1
#define HAVE_DGA 1
#define HAVE_DGA2 1
#define HAVE_SDL 1
#undef BUGGY_SDL
#undef HAVE_DIRECTX
#undef HAVE_GGI
#undef HAVE_3DFX
#undef HAVE_TDFXFB
#undef HAVE_TDFX_VID
#undef HAVE_DIRECTFB
#undef HAVE_ZR
#undef HAVE_BL
#undef HAVE_MGA
#undef HAVE_XMGA
#define HAVE_FBDEV 1
#undef HAVE_DXR2
#undef HAVE_DXR3
#undef HAVE_DVB
#undef HAS_DVBIN_SUPPORT 
#undef HAVE_SVGALIB
#define HAVE_VESA 1
#define HAVE_XDPMS 1
#undef HAVE_AA
#undef HAVE_CACA
#define HAVE_TGA 1
#undef HAVE_TOOLAME
#define HAVE_XSHAPE 1
#if defined(HAVE_GL) || defined(HAVE_X11) || defined(HAVE_XV)
#define X11_FULLSCREEN 1
#endif
#endif /* MPLAYER_CONFIG_H */

> cat config.mak
# -------- Generated by configure -----------

LANG = C
MAN_LANG =  en
TARGET_OS = Linux
DESTDIR =
prefix = $(DESTDIR)/usr/local
BINDIR = $(DESTDIR)/usr/local/bin
DATADIR = $(DESTDIR)/usr/local/share/mplayer
MANDIR = $(DESTDIR)/usr/local/man
CONFDIR = $(DESTDIR)/usr/local/etc/mplayer
LIBDIR = $(DESTDIR)/usr/local/lib
#AR = ar
CC = gcc
HOST_CC = gcc
AWK = gawk
RANLIB = true
INSTALL = install
# OPTFLAGS = -O4   -march=athlon-4 -mcpu=athlon-4 -pipe -fomit-frame-pointer 
-ffast-math
EXTRA_INC =  -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 
-I/usr/lib/glib/include -I/usr/X11R6/include
OPTFLAGS = -I../libvo -I../../libvo -I/usr/X11R6/include -fno-PIC -O4 
-march=athlon-4 -mcpu=athlon-4 -pipe -ffast-math -fomit-frame-pointer 
-D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(EXTRA_INC)
STRIPBINARIES = yes
HELP_FILE = help/help_mp-en.h

PRG = mplayer
PRG_MENCODER = mencoder



MPLAYER_NETWORK = yes
STREAMING_LIVE_DOT_COM = no
MPLAYER_NETWORK_LIB =  -lnsl
DVBIN = no
VIDIX = yes
SHARED_PP = no
CONFIG_PP = yes
CONFIG_RISKY = yes
CONFIG_MP3LAME = yes
LIBMENU = no
I18NLIBS = 
MATROSKA = yes

OPENDIVX = no

MP3LIB = yes
LIBA52 = yes
LIBMPEG2 = yes

UNRARLIB = yes
HAVE_FFPOSTPROCESS = yes
PNG = yes
JPEG = yes
GIF = yes

EXTRA_LIB = 
Z_LIB =   -lz
HAVE_MLIB = no
WIN32_LIB = 
STATIC_LIB = 
ENCA_LIB = 
HAVE_PTHREADS = yes
MATH_LIB = -lm

X11_INC = -I/usr/X11R6/include
X11DIR = -L/usr/X11R6/lib -lXext -lX11 -lnsl

HAVE_XVMC_ACCEL = no

# for libavcodec:
SRC_PATH=..
LIBPREF=lib
LIBSUF=.a
SLIBPREF=lib
SLIBSUF=.so

# video output
X_LIB = -lGL -lXxf86dga -lXv  -lXxf86vm -lXinerama -L/usr/X11R6/lib -lXext 
-lX11 -lnsl -lnsl
GGI_LIB = 
MLIB_LIB =  
MLIB_INC = 
DXR2_INC = 
DVB_INC = 
PNG_LIB = -lpng -lz
JPEG_LIB = -ljpeg
GIF_LIB = -lungif
SDL_LIB = -L/usr/lib -lSDL -lpthread
SVGA_LIB = 
AA_LIB = 
CACA_INC = 
CACA_LIB = 

# audio output
ALSA_LIB = -lasound -ldl -lpthread
NAS_LIB = 
ARTS_LIB = -L/usr/lib -ldl -lartsc -lpthread -lgmodule-2.0 -ldl -lgthread-2.0 
-lglib-2.0
ARTS_INC = -I/usr/include/kde/artsc -pthread -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include
ESD_LIB = 
ESD_INC = 
JACK_LIB = 
JACK_INC = 
SGIAUDIO_LIB = 

# input/demuxer/codecs
TERMCAP_LIB = 
LIRC_LIB = 
LIRCC_LIB = 
DVDREAD_LIB = -Llibmpdvdkit2 -lmpdvdkit
DVDKIT = no
DVDKIT2 = yes
DVDKIT_SHARED = no
SDL_INC = -I/usr/include/SDL -D_REENTRANT
W32_DEP = loader/libloader.a
W32_LIB = loader/libloader.a
DS_DEP = loader/dshow/libDS_Filter.a loader/dmo/libDMO_Filter.a
DS_LIB = loader/dshow/libDS_Filter.a loader/dmo/libDMO_Filter.a
AV_DEP = libavcodec/libavcodec.a libavformat/libavformat.a
AV_LIB = libavcodec/libavcodec.a libavformat/libavformat.a
CONFIG_LIBAVFORMAT = yes
ZORAN = no
FAME = no
FAME_LIB = 
MP1E_DEP = 
MP1E_LIB = 
ARCH_LIB =   -lpthread -ldl -rdynamic 
XVID = yes
XVID_INC = 
XVID_LIB =  -lxvidcore -lm
X264 = no
X264_INC = 
X264_LIB = 
CONFIG_DTS = no
DTS_INC = 
DTS_LIB = 
DECORE_LIB = -ldivxdecore -lmp3lame -lvorbis -logg
MENCODER = yes
ENCORE_LIB =  -ldivxencore -lmp3lame -lvorbis -logg
DIRECTFB_INC = 
DIRECTFB_LIB = 
CDPARANOIA_INC = -I/usr/include/cdda
CDPARANOIA_LIB =  -lcdda_interface -lcdda_paranoia
FREETYPE_INC = -I/usr/include/freetype2
FREETYPE_LIB = -lfreetype -lz
FONTCONFIG_INC =  
FONTCONFIG_LIB = -lfontconfig  
FRIBIDI_INC = 
FRIBIDI_LIB = 
LIBLZO_LIB= -llzo
MAD_LIB = -lmad
VORBIS_LIB = -lvorbis -logg -ldv
THEORA_LIB = 
FAAD_LIB = 
INTERNAL_FAAD = yes
SMBSUPPORT_LIB = 
XMMS_PLUGINS = no
XMMS_LIB = 
MACOSX = no
MACOSX_FRAMEWORKS = 
TOOLAME=no
TOOLAME_EXTRAFLAGS=
TOOLAME_LIB=

# --- Some stuff for autoconfigure ----
TARGET_ARCH_X86 = yes
TARGET_WIN32 = no
TARGET_CPU=686
TARGET_MMX = yes
TARGET_MMX2 = yes
TARGET_3DNOW = yes
TARGET_3DNOWEX = yes
TARGET_SSE = yes
TARGET_ALTIVEC = 
TARGET_VIS = 

# --- GUI stuff ---
GTKLIB =  -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib 
-ldl -lXi -lXext -lX11 -lm
GLIBLIB =   -L/usr/lib -lglib
GTK_LIBS =   $(GTKLIB) $(GLIBLIB)
GUI = yes
DEBUG = -DDEBUG

> cat libao2/config.mak
include ../config.mak
OPTIONAL_SRCS =  ao_sdl.c ao_oss.c ao_arts.c ao_alsa.c
OPTIONAL_OBJS = ao_sdl.o ao_oss.o ao_arts.o ao_alsa.o




More information about the MPlayer-users mailing list