[MPlayer-users] Re: PATCH for problems compiling CVS on MacOS X 10.3.2
Peter Spam
pspam at mac.com
Wed Mar 3 09:44:11 CET 2004
Still having problems with mencoder & mp3 (libmp3lame), but at least
mencoder now compiles with the patch below:
--- main/mp3lib/sr1.c_orig Wed Mar 3 00:28:51 2004
+++ main/mp3lib/sr1.c Wed Mar 3 00:34:45 2004
@@ -87,7 +87,8 @@
static int bitsleft;
unsigned char *pcm_sample; /* outbuffer address */
-int pcm_point = 0; /* outbuffer offset */
+//int pcm_point = 0; /* outbuffer offset */
+extern int pcm_point; /* outbuffer offset */
static struct frame fr;
On Mar 2, 2004, at 6:43 PM, Peter Spam wrote:
> I was able to get a bit further by doing a "unsetenv CFLAGS" before
> compiling. Here's where it bails now:
>
> gcc -I../libvo/ -I../../libvo -O4 -mcpu=7450 -mtune=7450 -faltivec
> -pipe -ffast-math -fomit-frame-pointer -no-cpp-precomp -DSYS_DARWIN
> -Wl,-bind_at_load -DCONFIG_DARWIN -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -Ilibmpdemux -Iloader -Ilibvo
> -I/usr/X11R6/include -I/usr/X11R6/include/freetype2
> -I/usr/X11R6/include -o mencoder mencoder.o mp_msg-mencoder.o
> cpudetect.o codec-cfg.o spudec.o playtree.o playtreeparser.o
> asxparser.o vobsub.o subreader.o sub_cc.o find_sub.o m_config.o
> m_option.o parser-cfg.o m_struct.o unrarlib.o libao2/afmt.o
> divx4_vbr.o libvo/aclib.o libvo/osd.o libvo/sub.o libvo/font_load.o
> libvo/font_load_ft.o xvid_vbr.o parser-mecmd.o
> libmpcodecs/libmpencoders.a -lmp3lame libmpcodecs/libmpcodecs.a
> mp3lib/libMP3.a liba52/liba52.a libmpeg2/libmpeg2.a libaf/libaf.a
> libmpdemux/libmpdemux.a input/libinput.a postproc/libswscale.a
> osdep/libosdep.a -Llibmpdvdkit2 -lmpdvdkit libavcodec/libavcodec.a
> -lmp3lame -lxvidcore -lm -lz -L/usr/X11R6/lib -lfreetype
> -ltinfo -framework Carbon -framework QuickTime -framework
> CoreAudio -Llibmpflac -lmpflac libfaad2/libfaad2.a -liconv
> -lm
> ld: multiple definitions of symbol _pcm_point
> /usr/local/lib/libmp3lame.dylib(common.o) definition of _pcm_point
> mp3lib/libMP3.a(sr1.o) definition of _pcm_point in section
> (__DATA,__data)
> ld: warning multiple definitions of symbol _alloc_1
> mp3lib/libMP3.a(sr1.o) definition of _alloc_1 in section
> (__DATA,__data)
> /usr/local/lib/libmp3lame.dylib(layer2.o) definition of _alloc_1
> ld: warning multiple definitions of symbol _alloc_0
> mp3lib/libMP3.a(sr1.o) definition of _alloc_0 in section
> (__DATA,__data)
> /usr/local/lib/libmp3lame.dylib(layer2.o) definition of _alloc_0
> ld: warning multiple definitions of symbol _alloc_2
> mp3lib/libMP3.a(sr1.o) definition of _alloc_2 in section
> (__DATA,__data)
> /usr/local/lib/libmp3lame.dylib(layer2.o) definition of _alloc_2
> ld: warning multiple definitions of symbol _alloc_3
> mp3lib/libMP3.a(sr1.o) definition of _alloc_3 in section
> (__DATA,__data)
> /usr/local/lib/libmp3lame.dylib(layer2.o) definition of _alloc_3
> ld: warning multiple definitions of symbol _alloc_4
> mp3lib/libMP3.a(sr1.o) definition of _alloc_4 in section
> (__DATA,__data)
> /usr/local/lib/libmp3lame.dylib(layer2.o) definition of _alloc_4
> ld: warning multiple definitions of symbol _bandInfo
> mp3lib/libMP3.a(sr1.o) definition of _bandInfo in section
> (__DATA,__data)
> /usr/local/lib/libmp3lame.dylib(layer3.o) definition of _bandInfo
> ld: warning multiple definitions of symbol _init_layer3
> mp3lib/libMP3.a(sr1.o) definition of _init_layer3 in section
> (__TEXT,__text)
> /usr/local/lib/libmp3lame.dylib(layer3.o) definition of _init_layer3
> ld: warning multiple definitions of symbol _pnts
> mp3lib/libMP3.a(sr1.o) definition of _pnts in section (__DATA,__data)
> /usr/local/lib/libmp3lame.dylib(tabinit.o) definition of _pnts
> ld: warning multiple definitions of symbol _make_decode_tables
> mp3lib/libMP3.a(sr1.o) definition of _make_decode_tables in section
> (__TEXT,__text)
> /usr/local/lib/libmp3lame.dylib(tabinit.o) definition of
> _make_decode_tables
> ld: warning multiple definitions of symbol _dct64
> mp3lib/libMP3.a(sr1.o) definition of _dct64 in section (__TEXT,__text)
> /usr/local/lib/libmp3lame.dylib(dct64_i386.o) definition of _dct64
> make: *** [mencoder] Error 1
> (34) G4 6:42pm ~/mpl/new/main>
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-users
More information about the MPlayer-users
mailing list