[XviD-devel] MacOSX developers needed

Edouard Gomez ed.gomez at free.fr
Sat Feb 8 01:14:39 CET 2003


Hello,

my work on 0.9.1 tree is nearly finished now. However i would like the
MacOSX part to be working for this release. So i need the help from
people who know how to build dynlibs on this system.

Basically, the ./configure script is configuring the sources with that
(i added an option --disable-assembly in order to avoid gcc clash on ppc
assembly):

FEATURES=
ARCHITECTURE=-DARCH_IS_GENERIC
BUS=-DARCH_IS_32BIT
ENDIANNESS=-DARCH_IS_BIG_ENDIAN

CFLAGS=$(ARCHITECTURE) $(BUS) $(ENDIANNESS) $(FEATURES) -Wall -O2 -fPIC \
       -fomit-\frame-pointer -ffast-math -funroll-loops -fschedule-insns \
       -fschedule-insns2

SHARED_EXTENSION=dylib
STATIC_EXTENSION=a
OBJECT_EXTENSION=o

OS_LDFLAGS=-dynamiclib

And the final linking stage uses:

$(STATIC_LIB): $(OBJECTS)
        ar rc $(STATIC_LIB) $(OBJECTS)

$(SHARED_LIB): $(OBJECTS)
        $(CC) $(LDFLAGS) $(OBJECTS) -o $(SHARED_LIB) $(OS_LDFLAGS)

But i obtain that errors:

ld: common symbols not allowed with MH_DYLIB output format
../../src/quant/quant_mpeg4.o definition of common _dequant4_inter (size4)
../../src/quant/quant_mpeg4.o definition of common _dequant4_intra (size4)
../../src/quant/quant_h263.o definition of common _dequant_inter (size4)
../../src/quant/quant_h263.o definition of common _dequant_intra (size4)
../../src/utils/emms.o definition of common _emms (size 4)
../../src/dct/idct.o definition of common _idct (size 4)
../../src/image/interpolate8x8.o definition of common _interpolate8x8_halfpel_h (size 4)
../../src/image/interpolate8x8.o definition of common _interpolate8x8_halfpel_hv (size 4)
../../src/image/interpolate8x8.o definition of common _interpolate8x8_halfpel_v (size 4)
../../src/utils/mem_transfer.o definition of common _transfer8x8_copy (size 4)
../../src/utils/mem_transfer.o definition of common _transfer_16to8add (size 4)
../../src/utils/mem_transfer.o definition of common _transfer_16to8copy (size 4)
../../src/motion/motion_est.o definition of common _Halfpel8_Refine (size 4)
../../src/bitstream/cbp.o definition of common _calc_cbp (size 4)
../../src/motion/sad.o definition of common _dev16 (size 4)
[...]
/usr/bin/libtool: internal link edit command failed
make: *** [libxvidcore.dylib] Error 1

I wonder why the linker is complaining about common definitions of these
symbols. As we all (should) know, the code is error free (of this kind
at least) for ages. So what i am supposed to do to avoid these errors.

PS: the tested platform is the macosx server edition on sourceforge
    compile farm.

bash-2.05a$ uname -a
Darwin usf-cf-ppc-macosx-1 5.5 Darwin Kernel Version 5.5: Thu May 30
14:51:26 PDT 2002; root:xnu/xnu-201.42.3.obj~1/RELEASE_PPC  Power
Macintosh powerpc

-- 
Edouard Gomez
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://edu.bnhof.de/pipermail/xvid-devel/attachments/20030208/e02ba701/attachment.bin


More information about the XviD-devel mailing list