[MPlayer-users] [MacOS X] Problems compiling CVS-040925 on MacOS X 10.3.5, gcc 3.3 20030304

Peter Spam pspam at mac.com
Sun Sep 26 08:24:39 CEST 2004


1) If you compile in both libMP3 and libmp3lame, the dct64 will collide 
[I just renamed dct to dct_ in mp3lib/dct64.c]
2) -rdynamic will cause building to fail (see log below) [changing 
-rdynamic to -dynamic worked for me]


Thanks,
Peter

gcc -I../libvo -I../../libvo -I/usr/X11R6/include -O4 -mcpu=7450 
-mtune=7450 -faltivec -pipe -ffast-math -fomit-frame-pointer 
-DSYS_DARWIN -DCONFIG_DARWIN -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
  -Ilibmpdemux -Iloader -Ilibvo -I/usr/X11R6/include 
-I/usr/X11R6/include/freetype2   -I/sw/include/SDL -D_THREAD_SAFE 
-I/usr/X11R6/include    -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 edl.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 
libavformat/libavformat.a   -ldv    -lmp3lame  -lxvidcore -lm   -lz    
-L/Users/pete/Devel/mpl/main/x264 -lx264 -lm -L/usr/X11R6/lib 
-lfreetype -ltinfo     -framework Carbon -framework QuickTime 
-framework CoreAudio   -L/usr/X11R6/lib -lfontconfig    
libfaad2/libfaad2.a      -rdynamic -liconv  -lm
gcc: unrecognized option `-rdynamic'
gcc: unrecognized option `-rdynamic'
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
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



--- configure_orig      Sat Sep 25 23:04:56 2004
+++ configure   Sat Sep 25 23:05:01 2004
@@ -6149,9 +6149,9 @@
  # Dynamic linking flags
  # (FIXME: 'echocheck "dynamic linking"' above and modify here 
accordingly)
  _ld_dl_dynamic=''
-bsd && _ld_dl_dynamic='-rdynamic'
+bsd && _ld_dl_dynamic='-dynamic'
  if test "$_real" = yes || test "$_xanim" = yes && not win32 && not qnx 
  ; then
-  _ld_dl_dynamic='-rdynamic'
+  _ld_dl_dynamic='-dynamic'
  fi

  _ld_arch="$_ld_arch $_ld_pthread $_ld_dl $_ld_dl_dynamic"

--- mp3lib/dct64.c_orig Sat Sep 25 23:00:07 2004
+++ mp3lib/dct64.c      Sat Sep 25 23:00:09 2004
@@ -305,7 +305,7 @@
   * the call via dct64 is a trick to force GCC to use
   * (new) registers for the b1,b2 pointer to the bufs[xx] field
   */
-void dct64(real *a,real *b,real *c)
+void dct64_(real *a,real *b,real *c)
  {
    real bufs[0x40];
    dct64_1(a,b,bufs,bufs+0x20,c);




More information about the MPlayer-users mailing list