[XviD-devel] [Future PATCH] I need testers for unified Makefile

ptk9417 xvid-devel@xvid.org
Tue, 04 Feb 2003 01:35:28 -0500


> Btw, does someone know why XviD refuses to link on MacOSX. The linker
> outputs lot of errors related to multiples symbol definitions. Any
> MacOSX tester ?
>
> -- 
> Edouard Gomez


Configuring with:
./configure --host=none

Gives:
ns2 ../../src/utils/ratecontrol.c -o ../../src/utils/ratecontrol.o
gcc -c -DARCH_IS_GENERIC -DARCH_IS_32BIT -DARCH_IS_BIG_ENDIAN  -Wall 
-O3 -fPIC -fomit-frame-pointer -ffast-math -funroll-loops 
-fschedule-insns -fschedule-insns2 ../../src/utils/timer.c -o 
../../src/utils/timer.o
ar rcs libxvidcore.a ../../src/decoder.o ../../src/divx4.o 
../../src/encoder.o ../../src/xvid.o ../../src/bitstream/bitstream.o 
../../src/bitstream/cbp.o ../../src/bitstream/mbcoding.o 
../../src/dct/fdct.o ../../src/dct/idct.o ../../src/image/colorspace.o 
../../src/image/image.o ../../src/image/interpolate8x8.o 
../../src/motion/motion_comp.o ../../src/motion/motion_est.o 
../../src/motion/sad.o ../../src/prediction/mbprediction.o 
../../src/quant/adapt_quant.o ../../src/quant/quant_h263.o 
../../src/quant/quant_matrix.o ../../src/quant/quant_mpeg4.o 
../../src/utils/emms.o ../../src/utils/mbtransquant.o 
../../src/utils/mem_align.o ../../src/utils/mem_transfer.o 
../../src/utils/ratecontrol.o ../../src/utils/timer.o
ranlib: file: libxvidcore.a(timer.o) has no symbols
gcc  ../../src/decoder.o ../../src/divx4.o ../../src/encoder.o 
../../src/xvid.o ../../src/bitstream/bitstream.o 
../../src/bitstream/cbp.o ../../src/bitstream/mbcoding.o 
../../src/dct/fdct.o ../../src/dct/idct.o ../../src/image/colorspace.o 
../../src/image/image.o ../../src/image/interpolate8x8.o 
../../src/motion/motion_comp.o ../../src/motion/motion_est.o 
../../src/motion/sad.o ../../src/prediction/mbprediction.o 
../../src/quant/adapt_quant.o ../../src/quant/quant_h263.o 
../../src/quant/quant_matrix.o ../../src/quant/quant_mpeg4.o 
../../src/utils/emms.o ../../src/utils/mbtransquant.o 
../../src/utils/mem_align.o ../../src/utils/mem_transfer.o 
../../src/utils/ratecontrol.o ../../src/utils/timer.o  -o libxvidcore.so
/usr/bin/ld: Undefined symbols:
_main
make: *** [libxvidcore.so] Error 1
[dual:xvidcore.stable/build/generic] paul% ls -l
total 1504
-rw-r--r--  1 paul  staff    4282 Feb  1 20:30 Makefile
-rwxr-xr-x  1 paul  staff   41134 Feb  1 12:32 config.guess
-rw-r--r--  1 paul  staff   16025 Feb  4 00:22 config.log
-rwxr-xr-x  1 paul  staff   21478 Feb  4 00:22 config.status
-rwxr-xr-x  1 paul  staff   29763 Feb  1 12:32 config.sub
-rwxr-xr-x  1 paul  staff  138307 Feb  2 12:18 configure
-rw-r--r--  1 paul  staff    8754 Feb  2 12:18 configure.in
-rwxr-xr-x  1 paul  staff    5599 Feb  1 12:31 install-sh
-rw-r--r--  1 paul  staff  452728 Feb  4 00:23 libxvidcore.a
-rw-r--r--  1 paul  staff      66 Feb  1 20:18 libxvidcore.def
-rwxr-xr-x  1 paul  staff    6480 Feb  1 12:31 missing
-rwxr-xr-x  1 paul  staff     722 Feb  1 12:31 mkinstalldirs
-rw-r--r--  1 paul  staff    2105 Feb  4 00:22 platform.inc
-rw-r--r--  1 paul  staff    2208 Feb  1 19:46 platform.inc.in
-rw-r--r--  1 paul  staff    2336 Feb  1 12:31 sources.inc

Kinda hard to see... sorry..
	the static lib builds correctly.  the shared lib borks.. i ran into 
this same problem a few months back.. The same results with gcc 2.95.2 
and 3.1 included with OSX 10.2.3.  I did get the shared lib workin back 
then.. but alas, forgot how i did it.. I would play with it again, but 
have a test in the mornin.  There was a performance hit with the shared 
lib.. mostally because of PIC i believe.  I have to build with 
--host=none, because the assembly format changed.  I re-wrote a few of 
the altivec routines from assembly to C a few months back.. but i never 
really tested em.  If there is intrest, i can look at the code again 
and try to get them into a submittable form.  There has been some 
possibly useful altivec stuff happening on the ffmpeg side.  Might be 
worth lookin into..

dust.. aka  ptkme..