[MPlayer-dev-eng] [PATCH] multiple definitions of _memcpy
Diego Biurrun
diego at biurrun.de
Sun Jun 10 22:44:49 CEST 2007
On Sun, Jun 10, 2007 at 10:18:25PM +0200, Guillaume POIRIER wrote:
>
> On 6/10/07, Chris Roccati <roccati at pobox.com> wrote:
> > Hello,
> > in the current SVN, compiled under MacOS X 10.4.9, PPC the following
> > warning appears:
> >
> > /usr/bin/ld: warning multiple definitions of symbol _memcpy
> > libvo/libosd.a(aclib.o) definition of _memcpy in section (__TEXT,__text)
> > /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libm.dylib
> > (bcopy.So) definition of _memcpy
> >
> > This appears to be caused by libvo/aclib.c compiling fast_memcpy() as
> > memcpy().
> > The following patch undefines fast_memcpy before the function
> > definition, in the same way as mem2agpcpy is undefined.
>
> I'm not sure if this is the way to fix this problem, but it indeed
> fixes my problem detailed here:
> http://lists.mplayerhq.hu/pipermail/mplayer-advusers/2007-June/001676.html
It looks rather safe to me anyway so I would say apply it.
Diego
More information about the MPlayer-dev-eng
mailing list