[MPlayer-users] Build errors when compiling on solaris

john doe meleth at freebox.com
Mon Feb 4 17:11:02 CET 2002


Solaris 2.6
SunOS wnaw405 5.6 Generic_105181-28 sun4u sparc SUNW,Ultra-5_10
gcc version 2.95.2
GNU ld 2.11.2
GNU assembler version 2.11.2 

Goddamn webmail client decided to type out the files inside the mail, so beware of spam to follow. I get the same error on both 0.60 and the snapshot.

---error below


                      In file included from yuv4mpeg.h:32,
                                       from yuv4mpeg_ratio.c:27:
                      stream.h:33: parse error before `off_t'
                      stream.h:33: warning: no semicolon at end of struct or union
                      stream.h:37: parse error before `start_pos'
                      stream.h:37: warning: data definition has no type or storage class
                      stream.h:45: parse error before `}'
                      stream.h:45: warning: data definition has no type or storage class
                      stream.h:48: parse error before `*'
                      stream.h:56: parse error before `*'
                      stream.h:57: parse error before `*'
                      stream.h:61: parse error before `*'
                      stream.h: In function `stream_read_char':
                      stream.h:62: `s' undeclared (first use in this function)
                      stream.h:62: (Each undeclared identifier is reported only once
                      stream.h:62: for each function it appears in.)
                      stream.h: At top level:
                      stream.h:70: parse error before `*'
                      stream.h: In function `stream_read_word':
                      stream.h:72: `s' undeclared (first use in this function)
                      stream.h: At top level:
                      stream.h:77: parse error before `*'
                      stream.h: In function `stream_read_dword':
                      stream.h:79: `s' undeclared (first use in this function)
                      stream.h: At top level:
                      stream.h:88: parse error before `*'
                      stream.h: In function `stream_read_word_le':
                      stream.h:90: `s' undeclared (first use in this function)
                      stream.h: At top level:
                      stream.h:95: parse error before `*'
                      stream.h: In function `stream_read_dword_le':
                      stream.h:97: `s' undeclared (first use in this function)
                      stream.h: At top level:
                      stream.h:104: parse error before `*'
                      stream.h: In function `stream_read_qword':
                      stream.h:106: `s' undeclared (first use in this function)
                      stream.h: At top level:
                      stream.h:117: parse error before `*'
                      stream.h: In function `stream_read':
                      stream.h:118: `total' undeclared (first use in this function)
                      stream.h:121: `s' undeclared (first use in this function)
                      stream.h:128: `mem' undeclared (first use in this function)
                      stream.h: At top level:
                      stream.h:134: parse error before `*'
                      stream.h: In function `stream_eof':
                      stream.h:135: `s' undeclared (first use in this function)
                      stream.h: At top level:
                      stream.h:138: parse error before `stream_tell'
                      stream.h:138: parse error before `*'
                      stream.h: In function `stream_tell':
                      stream.h:139: `s' undeclared (first use in this function)
                      stream.h: At top level:
                      stream.h:142: parse error before `*'
                      stream.h: In function `stream_seek':
                      stream.h:146: `pos' undeclared (first use in this function)
                      stream.h:146: `s' undeclared (first use in this function)
                      stream.h:147: `off_t' undeclared (first use in this function)
                      stream.h:147: parse error before `x'
                      stream.h:148: `x' undeclared (first use in this function)
                      stream.h: At top level:
                      stream.h:158: parse error before `*'
                      stream.h: In function `stream_skip':
                      stream.h:159: `len' undeclared (first use in this function)
                      stream.h:159: `s' undeclared (first use in this function)
                      stream.h: At top level:
                      stream.h:176: parse error before `*'
                      stream.h:177: parse error before `*'
                      stream.h:177: warning: data definition has no type or storage class
                      stream.h:178: parse error before `*'
                      stream.h:179: parse error before `*'
                      stream.h:179: warning: data definition has no type or storage class
                      stream.h:180: parse error before `*'
                      stream.h:180: warning: data definition has no type or storage class
                      In file included from yuv4mpeg_ratio.c:27:
                      yuv4mpeg.h:286: parse error before `y4m_read'
                      yuv4mpeg.h:286: parse error before `*'
                      yuv4mpeg.h:286: warning: data definition has no type or storage class
                      yuv4mpeg.h:307: parse error before `*'
                      yuv4mpeg.h:325: parse error before `*'
                      yuv4mpeg.h:334: parse error before `*'
                      make[1]: *** [yuv4mpeg_ratio.o] Error 1
                      make[1]: Leaving directory
                      `/home/qabjoln/temp/MPlayer-20020204/libmpdemux'
                      make: *** [libmpdemux/libmpdemux.a] Error 2

---

/* -------- This file has been automatically generated by configure ---
                      ------
                         Note: Any changes in it will be lost when you run configure again. */

                      #define USR_PREFIX "/home/qabjoln/gnu"

                      /* define this to use simple idct with patched libavcodec */
                      #define SIMPLE_IDCT 1

                      #define USE_OSD 1
                      #define USE_SUB 1

                      /* Toggles debugging informations */
                      #undef MP_DEBUG

                      /* Indicates is Ogle's libdvdread is available for DVD playback */
                      #undef USE_DVDREAD

                      /* Common data directory (for fonts, etc) */
                      #define DATADIR "/home/qabjoln/gnu/share/mplayer"
                      #define CONFDIR "/home/qabjoln/gnu/share/mplayer"
                      #define LIBDIR "/home/qabjoln/gnu/lib/mplayer"

                      /* Define this to compile stream-caching support, it can be enabled via
                         -cache <kilobytes> */
                      #define USE_STREAM_CACHE 1

                      /* Define to include support for OpenDivx/Divx4Linux */
                      #undef USE_DIVX

                      /* Define for using new DivX4Linux library, instead of open-source 
                      OpenDivX */
                      /* You have to change DECORE_LIBS in config.mak too! */
                      #undef NEW_DECORE

                      /* If build mencoder */
                      #define HAVE_MENCODER

                      /* Indicates if Divx4linux encore is available
                         Note: for mencoder */
                      #undef HAVE_DIVX4ENCORE

                      /* Indicates if libmp3lame is available
                         Note: for mencoder */
                      #undef HAVE_MP3LAME

                      /* Define libmp1e for realtime mpeg encoding (for DXR3 and DVB cards) */
                      #undef USE_MP1E

                      /* Define this to enable avg. byte/sec-based AVI sync method by default:
                         (use -bps or -nobps commandline option for run-time method selection)
                         -bps gives better sync for vbr mp3 audio, it is now default */
                      #define AVI_SYNC_BPS 1

                      /* Undefine this if you do not want to select mono audio (left or right)
                         with a stereo MPEG layer 2/3 audio stream. The command-line option
                         -stereo has three possible values (0 for stereo, 1 for left-only, 2 
                      for
                         right-only), with 0 being the default.
                         */
                      #define USE_FAKE_MONO 1

                      /* Undefine this if your soundcard driver has no working select().
                         If you have kernel Oops, player hangups, or just no audio, you should
                         try to recompile MPlayer with this option disabled! */
                      #define HAVE_AUDIO_SELECT 1

                      /* define this to use iconv(3) function to codepage conversions */
                      #undef USE_ICONV

                      /* define this to use RTC (/dev/rtc) for video timers (LINUX only) */
                      #undef HAVE_RTC

                      /* set up max. outburst. use 65536 for ALSA 0.5, for others 16384 is 
                      enough */
                      #define MAX_OUTBURST 65536

                      /* set up audio OUTBURST. Do not change this! */
                      #define OUTBURST 512

                      /* Define this if your system has the header file for the OSS sound 
                      interface */
                      #undef HAVE_SYS_SOUNDCARD_H

                      /* Define this if your system has the "malloc.h" header file */
                      #define HAVE_MALLOC_H 1

                      /* memalign is mapped to malloc if unsupported */
                      #define HAVE_MEMALIGN 1
                      #ifndef HAVE_MEMALIGN
                      # define memalign(a,b) malloc(b)
                      #endif

                      /* Define this if your system has the "alloca.h" header file */
                      #define HAVE_ALLOCA_H 1

                      /* Define this if your system has the "sys/mman.h" header file */
                      #define HAVE_SYS_MMAN_H 1

                      /* Define this if you have the elf dynamic linker -ldl library */
                      #define HAVE_LIBDL 1

                      /* Define this if you have the kstat kernel statistics library */
                      #define HAVE_LIBKSTAT 1

                      /* Define this if you have zlib */
                      #define HAVE_ZLIB 1

                      /* Define this if you have shm support */
                      #define HAVE_SHM 1

                      /* Define this if your system has vsscanf */
                      #undef HAVE_VSSCANF

                      /* LIRC (remote control, see www.lirc.org) support: */
                      #undef HAVE_LIRC

                      /* DeCSS support using libcss */
                      #undef HAVE_LIBCSS

                      /* Define this to enable MPEG 1/2 image postprocessing (requires FAST 
                      cpu!) */
                      #define MPEG12_POSTPROC 1

                      /* Define this to enable image postprocessing in libavcodec (requires 
                      FAST cpu!) */
                      #define FF_POSTPROCESS 1

                      /* Define to include support for OpenDivx postprocessing */
                      #undef HAVE_ODIVX_POSTPROCESS

                      /* Win32 DLL support */
                      #undef USE_WIN32DLL

                      /* DirectShow support */
                      #undef USE_DIRECTSHOW

                      /* ffmpeg's libavcodec support (requires libavcodec source) */
                      #define USE_LIBAVCODEC 1
                      #undef USE_LIBAVCODEC_SO

                      /* Use libavcodec's decoders */
                      #define CONFIG_DECODERS 1
                      /* Use libavcodec's encoders */
                      #define CONFIG_ENCODERS 1

                      /* XAnim DLL support */
                      #undef USE_XANIM
                      /* Default search path */
                      #undef XACODEC_PATH

                      /* Use 3dnow/mmxext/sse/mmx optimized fast memcpy() [maybe buggy... 
                      signal 4]*/
                      #undef USE_FASTMEMCPY

                      /* gui support, please do not edit this option */
                      #define HAVE_NEW_GUI 1
                      #define PREFIX "/home/qabjoln/gnu"

                      /* Audio output drivers */
                      #undef USE_OSS_AUDIO
                      #undef HAVE_ALSA5
                      #undef HAVE_ALSA9
                      #define USE_SUN_AUDIO 1
                      #undef USE_SGI_AUDIO
                      #undef HAVE_NAS

                      /* Enable fast OSD/SUB renderer (looks ugly, but uses less CPU power) */
                      #undef FAST_OSD
                      #undef FAST_OSD_TABLE

                      /* Enable TV Interface support */
                      #undef USE_TV

                      /* Enable Video 4 Linux TV interface support */
                      #undef HAVE_TV_V4L

                      /* Define if your processor stores words with the most significant
                         byte first (like Motorola and SPARC, unlike Intel and VAX).  */
                      #define WORDS_BIGENDIAN 1

                      #define ARCH_SPARC 1

                      /* Define this for Cygwin build for win32 */


                      /* Define this to any prefered value from 386 up to infinity with step 
                      100 */
                      #define __CPU__ sparc

                      #undef TARGET_LINUX

                      #define HAVE_VCD 1

                      #ifdef sun
                      #define DEFAULT_CDROM_DEVICE    "/vol/dev/aliases/cdrom0"
                      #define DEFAULT_DVD_DEVICE      DEFAULT_CDROM_DEVICE
                      #else
                      #define DEFAULT_CDROM_DEVICE    "/dev/cdrom"
                      #define DEFAULT_DVD_DEVICE      "/dev/dvd"
                      #endif


                      /*---------------------------------------------------------------------
                      -------
                      **
                      ** NOTE: Instead of modifying these definitions here, use the
                      **       --enable/--disable options of the ./configure script!
                      **       See ./configure --help for details.
                      **
                      *----------------------------------------------------------------------
                      -----*/

                      /* nanosleep support */
                      #define HAVE_NANOSLEEP 1

                      /* termcap flag for getch2.c */
                      #define USE_TERMCAP 1

                      /* termios flag for getch2.c */
                      #define HAVE_TERMIOS 1
                      #undef HAVE_TERMIOS_H
                      #define HAVE_SYS_TERMIOS_H 1

                      /* enable PNG support */
                      #define HAVE_PNG 1

                      /* libmad support */
                      #undef USE_LIBMAD

                      /* enable OggVorbis support */
                      #define HAVE_OGGVORBIS 1

                      /* enable streaming */
                      #undef STREAMING

                      /* enables / disables vidix usage */
                      #define CONFIG_VIDIX 1

                      /* enables / disables new input */
                      #undef HAVE_NEW_INPUT

                      /* enables / disables new input joystick support */
                      #undef HAVE_JOYSTICK

                      /* Extension defines */
                      #undef HAVE_3DNOW       // only define if you have 3DNOW (AMD k6-2, AMD 
                      Athlon, iDT WinChip, etc.)
                      #undef HAVE_3DNOWEX     // only define if you have 3DNOWEX (AMD Athlon, 
                      etc.)
                      #undef HAVE_MMX // only define if you have MMX (newer x86 chips, not 
                      P54C/PPro)
                      #undef HAVE_MMX2        // only define if you have MMX2 (Athlon/PIII/4/CelII)
                      #undef HAVE_SSE // 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)

                      #ifdef HAVE_MMX
                      #define USE_MMX_IDCT 1
                      #endif

                      #define HAVE_MLIB 1  // Sun mediaLib, available only on solaris

                      /* libmpeg2 uses a different feature test macro for mediaLib */
                      #ifdef HAVE_MLIB
                      #define LIBMPEG2_MLIB 1
                      #endif

                      /* libvo options */
                      #define SCREEN_SIZE_X 1
                      #define SCREEN_SIZE_Y 1
                      #define HAVE_X11 1
                      #undef HAVE_XV
                      #undef HAVE_XF86VM
                      #undef HAVE_XINERAMA
                      #define HAVE_GL 1
                      #undef HAVE_DGA
                      #undef HAVE_DGA2
                      #define HAVE_SDL 1
                      /* defined for SDLlib with keyrepeat bugs (before 1.2.1) */
                      #undef BUGGY_SDL
                      #undef HAVE_GGI
                      #undef HAVE_3DFX
                      #undef HAVE_TDFXFB
                      #undef HAVE_DIRECTFB
                      #undef HAVE_ZR
                      #undef HAVE_MGA
                      #undef HAVE_XMGA
                      #undef HAVE_SYNCFB
                      #undef HAVE_FBDEV
                      #undef USE_CONVERT2FB
                      #undef HAVE_DXR3
                      #undef HAVE_DVB
                      #undef HAVE_SVGALIB
                      #undef HAVE_XDPMS
                      #undef HAVE_AA

                      /* used by GUI: */
                      #define HAVE_XSHAPE 1

                      #if defined(HAVE_GL) || defined(HAVE_X11) || defined(HAVE_XV)
                      #define X11_FULLSCREEN 1
                      #endif

---
# -------- Generated by configure -----------

                      LANG = C
                      TARGET_OS = SunOS
                      prefix = /home/qabjoln/gnu
                      DATADIR = /home/qabjoln/gnu/share/mplayer
                      CONFDIR = /home/qabjoln/gnu/share/mplayer
                      AR = ar
                      CC = gcc
                      AWK = gawk
                      # OPTFLAGS = -O4    -mcpu=v8 -pipe -fomit-frame-pointer -ffast-math
                      OPTFLAGS = -O4  -mcpu=v8 -pipe -ffast-math -fomit-frame-pointer
                      EXTRA_INC =  -I/home/qabjoln/gnu/include/gtk-1.2 -
                      I/home/qabjoln/gnu/include/glib-1.2 -
                      I/home/qabjoln/gnu/lib/glib/include -I/usr/openwin/include
                      WIN32_PATH = -DWIN32_PATH=\"\"

                      STREAMING = no
                      STREAMING_LIB = 
                      VIDIX = yes

                      OPENDIVX = no

                      VO2 = no

                      EXTRA_LIB = 
                      Z_LIB =   -lz
                      HAVE_MLIB = yes
                      STATIC_LIB = 

                      X11_INC = 
                      X11DIR = -L/usr/openwin/lib -lX11 -lXext -lsocket -lnsl -lresolv

                      # video output
                      X_LIB = -L/usr/openwin/lib -lX11 -lXext -lsocket -lnsl -lresolv -
                      lGL      -lsocket -lnsl -lresolv
                      GGI_LIB = 
                      MLIB_LIB =   -L/home/qabjoln/gnu/lib -R/home/qabjoln/gnu/lib -lmlib 
                      MLIB_INC =  -I/home/qabjoln/gnu/include 
                      PNG_LIB = -lpng -lz
                      SDL_LIB = -L/home/qhengra/gnu/lib -R/home/qhengra/gnu/lib -lSDL -
                      lpthread -lposix4
                      SVGA_LIB = 
                      AA_LIB = 

                      # audio output
                      ALSA_LIB = 
                      NAS_LIB = 
                      MAD_LIB = 
                      VORBIS_LIB = -lvorbis -logg
                      SGIAUDIO_LIB = 

                      # input
                      TERMCAP_LIB = -ltermcap
                      LIRC_LIB = 
                      CSS_USE = no
                      CSS_LIB = 
                      SDL_INC = -I/home/qhengra/gnu/include -I/home/qhengra/gnu/include/SDL -
                      D_REENTRANT
                      W32_DEP = 
                      W32_LIB = 
                      DS_DEP = 
                      DS_LIB = 
                      AV_DEP = libavcodec/libavcodec.a
                      AV_LIB = -Llibavcodec -lavcodec
                      MP1E_DEP = 
                      MP1E_LIB = 
                      ARCH_LIB =  -lposix4 -lkstat  -lpthread   
                      DIVX4LINUX = no
                      DECORE_LIB = 
                      MENCODER = yes
                      ENCORE_LIB =   
                      DIRECTFB_LIB = 

                      # --- Some stuff for autoconfigure ----
                      TARGET_ARCH_SPARC = yes
                      TARGET_CYGWIN = no
                      TARGET_CPU=sparc
                      TARGET_MMX = 
                      TARGET_MMX2 = 
                      TARGET_3DNOW = 
                      TARGET_3DNOWEX = 
                      TARGET_SSE = 

                      BINUTILS = no

                      # --- GUI stuff ---
                      GTKLIB =  -L/home/qabjoln/gnu/lib -L/usr/openwin/lib -
                      R/usr/openwin/lib -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -
                      lsocket -lnsl -lm
                      GLIBLIB =   -L/home/qabjoln/gnu/lib -lglib
                      GTK_LIBS =   $(GTKLIB) $(GLIBLIB)
                      GUI = yes
                      DEBUG = -DDEBUG

---
include ../config.mak
                      OPTIONAL_SRCS =  vo_x11.c vo_gl.c vo_gl2.c vo_png.c vo_sdl.c vo_xvidix.c
                      OPTIONAL_OBJS = vo_x11.o vo_gl.o vo_gl2.o vo_png.o vo_sdl.o vo_xvidix.o


__________________________________________________
FreeBox - The World's Finest Web Mail Solution
Get your own FREE email at http://www.freebox.com/




More information about the MPlayer-users mailing list