[MPlayer-users] Re: compile error: mplayer/libavcodec

Nilmoni Deb ndeb at ece.cmu.edu
Tue Nov 5 07:28:02 CET 2002


Well , the fix was only temporary as in the end, it failed anyway:


gcc -O4 -march=athlon -mcpu=athlon -pipe -ffast-math -fomit-frame-pointer
-D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Ilibmpdemux
-Iloader -Ilibvo -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
-I/usr/lib/glib/include -I/usr/X11R6/include   -I/opt/sdl//include/SDL
-D_REENTRANT  -o mplayer mplayer.o mp_msg.o cpudetect.o codec-cfg.o
cfgparser.o my_profile.o spudec.o playtree.o playtreeparser.o asxparser.o
vobsub.o subreader.o sub_cc.o find_sub.o unrarlib.o mixer.o libvo/libvo.a
libao2/libao2.a vidix/libvidix.a Gui/libgui.a libmpcodecs/libmpcodecs.a
mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a loader/libloader.a
loader/dshow/libDS_Filter.a libaf/libaf.a libmpdemux/libmpdemux.a
input/libinput.a postproc/libpostproc.a postproc/libswscale.a
linux/libosdep.a -Llibmpdvdkit2 -lmpdvdkit libavcodec/libavcodec.a
-lpng -lz -lz -ljpeg      -lnsl   -L/usr/X11R6/lib -lgtk -lgdk -rdynamic
-lgmodule -lglib -ldl -lXi -lXext -lX11 -lm -lglib -L/opt/sdl//lib
-Wl,-rpath,/opt/sdl//lib -lSDL -lpthread   -lGL -lXxf86dga -lXv -lXxf86vm
-lXinerama -L/usr/X11R6/lib -lXext -lX11 -lnsl  -lnsl       -L/usr/lib
-ldl -lartsc -lpthread      -lpthread -ldl -rdynamic  -lm
libavcodec/libavcodec.a(mpegvideo.o): In function `lrintf':
/home/ndeb/APPLICATIONS/movie_player/mplayer/main/libavcodec/dsputil.h:277:
multiple definition of `lrintf'
libavcodec/libavcodec.a(utils.o):/home/ndeb/APPLICATIONS/movie_player/mplayer/main/libavcodec/dsputil.h:277:
first defined here
libavcodec/libavcodec.a(h263.o): In function `lrintf':
/home/ndeb/APPLICATIONS/movie_player/mplayer/main/libavcodec/dsputil.h:277:
multiple definition of `lrintf'
libavcodec/libavcodec.a(utils.o):/home/ndeb/APPLICATIONS/movie_player/mplayer/main/libavcodec/dsputil.h:277:
first defined here
libavcodec/libavcodec.a(jrevdct.o): In function `lrintf':
/home/ndeb/APPLICATIONS/movie_player/mplayer/main/libavcodec/dsputil.h:277:
multiple definition of `lrintf'
libavcodec/libavcodec.a(utils.o):/home/ndeb/APPLICATIONS/movie_player/mplayer/main/libavcodec/dsputil.h:277:
first defined here
libavcodec/libavcodec.a(jfdctfst.o): In function `lrintf':
/home/ndeb/APPLICATIONS/movie_player/mplayer/main/libavcodec/dsputil.h:277:
multiple definition of `lrintf'
libavcodec/libavcodec.a(utils.o):/home/ndeb/APPLICATIONS/movie_player/mplayer/main/libavcodec/dsputil.h:277:
first defined here

On Tue, 5 Nov 2002, Nilmoni Deb wrote:

> 
> I deleted the word "static" in line 277 of libavcodec/dsputil.h .
> That fixed the compile problem. But I have no idea if thats the correct
> fix.
> 
> thanks
> - Nil
> 
> On Tue, 5 Nov 2002, Nilmoni Deb wrote:
> 
> > 
> > Using gcc-3.2 on latest mplayer/ffmpeg cvs. Here's the error:
> > 
> > gcc -O4 -march=athlon -mcpu=athlon -pipe -ffast-math -fomit-frame-pointer
> > -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -g
> > -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
> > -D_GNU_SOURCE -c -o utils.o utils.c
> > In file included from utils.c:20:
> > dsputil.h:277: warning: static declaration for `lrintf' follows non-static
> > dsputil.h: In function `lrintf':
> > dsputil.h:279: internal error: Segmentation fault
> > Please submit a full bug report,
> > with preprocessed source if appropriate.
> > See <URL:https://qa.mandrakesoft.com/> for instructions.
> > make[1]: *** [utils.o] Error 1
> > make[1]: Leaving directory
> > `/home/ndeb/APPLICATIONS/movie_player/mplayer/main/libavcodec'
> > make: *** [libavcodec/libavcodec.a] Error 2
> > 
> > 
> > 
> > thanks
> > - Nil
> > 
> > 
> 
> 




More information about the MPlayer-users mailing list