[MPlayer-dev-eng] still problems with compiling on SunOS

pl p_l at tfz.net
Sun Dec 30 19:17:57 CET 2001


Hi,

On Fri, Dec 28, 2001 at 07:56:43PM +0200, Arpi wrote:

> > ld: warning: symbol `quant_store' has differing sizes:
> >         (file libmpeg2/libmpeg2.a(decode.o) value=0x8a04; file opendivx/libdecore.a(mp4_decoder.o) value=0x1c54);
> >         libmpeg2/libmpeg2.a(decode.o) definition taken
> strange. could you look at it? there shouldn't co-exists 2 definition of
> this

I'm still looking why it gets defined twice with 2 different sizes :/

The array gets defined in libmpeg2/libmpeg2.a under both OS but it's
defined another time with a different size in opendivx/*.a under SunOS.

Btw, grepping shows:

./libavcodec/avcodec.h:#define MBC 48
./libmpeg2/mpeg2_internal.h:#define MPEG2_MBC 120
./opendivx/mp4_decoder.h:#define MBC                             48

./libavcodec/avcodec.h:#define MBR 36
./libmpeg2/mpeg2_internal.h:#define MPEG2_MBR 72
./opendivx/mp4_decoder.h:#define MBR                             36

./libavcodec/avcodec.h:extern int quant_store[MBR+1][MBC+1]; // [Review]
./libmpeg2/decode.c:int quant_store[MPEG2_MBR+1][MPEG2_MBC+1]; // [Review]
./libmpeg2/slice.c:extern int quant_store[MPEG2_MBR+1][MPEG2_MBC+1]; // [Review]
./opendivx/global.h:EXTERN int quant_store[MBR+1][MBC+1]; // [Review]

Is this wanted behavior ?


There's also another error (still under this SunOS):

Undefined                       first referenced
 symbol                             in file
inet_pton                           libmpdemux/libmpdemux.a(network.o)

It's not available on this box so attached is the glibc version of the
function.  I think it should go into libmpdemux but maybe not as
inet_pton.c (a compatibility file ?).  Please add it.

I'm adding a configure test for inet_pton() soon.

-- 
Best regards,
  pl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: inet_pton.c
Type: text/x-csrc
Size: 5118 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20011230/18f68de7/attachment.c>


More information about the MPlayer-dev-eng mailing list